diff options
| author | Prasad Sodagudi <psodagud@codeaurora.org> | 2016-02-07 11:31:51 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-25 16:03:18 -0700 |
| commit | a739b2a1f8a7ffccb1af6cc3927b3a7dece781b3 (patch) | |
| tree | f116bbec9a19342e6c601835965816352f1d221b /include | |
| parent | 30781083ea60e69950381596660b8c3b4a169be4 (diff) | |
qcom: scm: provide scm_is_secure_device() api
Add new scm_is_secure_device() API, so that
all platform drivers can check and take appropriate
action for secure and non-secure devices.
Change-Id: I5569f4aaf4bcbec2922a7745ec0fdc1ab423cc23
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/soc/qcom/scm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/soc/qcom/scm.h b/include/soc/qcom/scm.h index f6791ac9dc32..ac8b2ebadbdd 100644 --- a/include/soc/qcom/scm.h +++ b/include/soc/qcom/scm.h @@ -125,6 +125,7 @@ extern bool is_scm_armv8(void); extern int scm_restore_sec_cfg(u32 device_id, u32 spare, int *scm_ret); extern u32 scm_io_read(phys_addr_t address); extern int scm_io_write(phys_addr_t address, u32 val); +extern bool scm_is_secure_device(void); #define SCM_HDCP_MAX_REG 5 @@ -227,5 +228,10 @@ static inline int scm_io_write(phys_addr_t address, u32 val) { return 0; } + +inline bool scm_is_secure_device(void) +{ + return false; +} #endif #endif |
