diff options
author | Stanimir Varbanov <stanimir.varbanov@linaro.org> | 2017-03-14 18:18:04 +0300 |
---|---|---|
committer | Andy Gross <andy.gross@linaro.org> | 2017-03-29 00:03:21 +0300 |
commit | b182cc4d597a6e73ff04ee1b7fb4f1a28f56ae3d (patch) | |
tree | 3e8348251be4ff06547fd086e596aac00ad8041e /drivers/firmware/qcom_scm.h | |
parent | a2c680c6ce386e9ca6cdf362e8b01789126c9bf7 (diff) | |
download | linux-b182cc4d597a6e73ff04ee1b7fb4f1a28f56ae3d.tar.xz |
firmware: qcom_scm: add two scm calls for iommu secure page table
Those two new SCM calls are needed from qcom-iommu driver in order
to initialize secure iommu page table.
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Rob Clark <robdclark@gmail.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.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/firmware/qcom_scm.h b/drivers/firmware/qcom_scm.h index 31fc732960ca..9bea691f30fb 100644 --- a/drivers/firmware/qcom_scm.h +++ b/drivers/firmware/qcom_scm.h @@ -89,5 +89,11 @@ static inline int qcom_scm_remap_error(int err) #define QCOM_SCM_RESTORE_SEC_CFG 2 extern int __qcom_scm_restore_sec_cfg(struct device *dev, u32 device_id, u32 spare); +#define QCOM_SCM_IOMMU_SECURE_PTBL_SIZE 3 +#define QCOM_SCM_IOMMU_SECURE_PTBL_INIT 4 +extern int __qcom_scm_iommu_secure_ptbl_size(struct device *dev, u32 spare, + size_t *size); +extern int __qcom_scm_iommu_secure_ptbl_init(struct device *dev, u64 addr, + u32 size, u32 spare); #endif |