diff options
| author | Vikram Mulukutla <markivx@codeaurora.org> | 2015-06-28 19:39:32 -0700 |
|---|---|---|
| committer | Rohit Vaswani <rvaswani@codeaurora.org> | 2016-03-01 12:22:20 -0800 |
| commit | eb590b4075a8e1368f4915e2e5a946c43ac87cc9 (patch) | |
| tree | bb2387508a059d45e35215ef5ba0fbc224afc4d0 /include | |
| parent | 14c22b6394bc5288a20a258e024a7bef31f52bb5 (diff) | |
soc: qcom: scm: Add LMH specific mutex lock
It is required on some hardware that the Limits Management
secure API be executed in mutual exclusion with certain
other hardware-accessing drivers. Provide a mutex to achieve
this.
Change-Id: Ie0db516e335c29b79e959a0a6e6fb76231af6bf4
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/soc/qcom/scm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/soc/qcom/scm.h b/include/soc/qcom/scm.h index 445a3ad4a555..97cea4792528 100644 --- a/include/soc/qcom/scm.h +++ b/include/soc/qcom/scm.h @@ -45,6 +45,7 @@ static char __n[PAGE_SIZE] __aligned(PAGE_SIZE); #define SCM_SIP_FNID(s, c) (((((s) & 0xFF) << 8) | ((c) & 0xFF)) | 0x02000000) #define SCM_QSEEOS_FNID(s, c) (((((s) & 0xFF) << 8) | ((c) & 0xFF)) | \ 0x32000000) +#define SCM_SVC_ID(s) (((s) & 0xFF00) >> 8) #define MAX_SCM_ARGS 10 #define MAX_SCM_RETS 3 @@ -130,6 +131,8 @@ struct scm_hdcp_req { u32 val; }; +extern struct mutex scm_lmh_lock; + #else static inline int scm_call(u32 svc_id, u32 cmd_id, const void *cmd_buf, |
