aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware/qcom_scm.h
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@sonymobile.com>2015-09-23 15:56:12 -0400
committerAndy Gross <andy.gross@linaro.org>2016-06-24 23:53:50 -0400
commitf01e90fe34f563a5e189d4070de4a23948105642 (patch)
treefaf82fa8a27f2f04de8e3b4465cc3ecf36f1de3b /drivers/firmware/qcom_scm.h
parent3680a4a97435496ad22cd0fc9f2ba51751cc4e36 (diff)
firmware: qcom: scm: Peripheral Authentication Service
This adds the Peripheral Authentication Service (PAS) interface to the Qualcomm SCM interface. The API is used to authenticate and boot a range of external processors in various Qualcomm platforms. Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com> Signed-off-by: Andy Gross <andy.gross@linaro.org>
Diffstat (limited to 'drivers/firmware/qcom_scm.h')
-rw-r--r--drivers/firmware/qcom_scm.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/firmware/qcom_scm.h b/drivers/firmware/qcom_scm.h
index 0ea55d7fb076..1a16ff925d6d 100644
--- a/drivers/firmware/qcom_scm.h
+++ b/drivers/firmware/qcom_scm.h
@@ -40,6 +40,20 @@ extern int __qcom_scm_hdcp_req(struct device *dev,
40 40
41extern void __qcom_scm_init(void); 41extern void __qcom_scm_init(void);
42 42
43#define QCOM_SCM_SVC_PIL 0x2
44#define QCOM_SCM_PAS_INIT_IMAGE_CMD 0x1
45#define QCOM_SCM_PAS_MEM_SETUP_CMD 0x2
46#define QCOM_SCM_PAS_AUTH_AND_RESET_CMD 0x5
47#define QCOM_SCM_PAS_SHUTDOWN_CMD 0x6
48#define QCOM_SCM_PAS_IS_SUPPORTED_CMD 0x7
49extern bool __qcom_scm_pas_supported(struct device *dev, u32 peripheral);
50extern int __qcom_scm_pas_init_image(struct device *dev, u32 peripheral,
51 dma_addr_t metadata_phys);
52extern int __qcom_scm_pas_mem_setup(struct device *dev, u32 peripheral,
53 phys_addr_t addr, phys_addr_t size);
54extern int __qcom_scm_pas_auth_and_reset(struct device *dev, u32 peripheral);
55extern int __qcom_scm_pas_shutdown(struct device *dev, u32 peripheral);
56
43/* common error codes */ 57/* common error codes */
44#define QCOM_SCM_V2_EBUSY -12 58#define QCOM_SCM_V2_EBUSY -12
45#define QCOM_SCM_ENOMEM -5 59#define QCOM_SCM_ENOMEM -5