diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2017-08-15 01:46:17 +0300 |
---|---|---|
committer | Andy Gross <andy.gross@linaro.org> | 2017-10-12 07:48:27 +0300 |
commit | 4e659dbe2d02a56ca0df25c77e099760252a329c (patch) | |
tree | d41bd3ca1e79a6c1b19a637ea9f34030ae7deb91 /drivers/firmware/qcom_scm.c | |
parent | e691b48dcc7553b423bcbc7ddcd9f51698d093b1 (diff) | |
download | linux-4e659dbe2d02a56ca0df25c77e099760252a329c.tar.xz |
firmware: qcom: scm: Expose secure IO service
The secure IO service provides operations for reading and writing secure
memory from non-secure mode, expose this API through SCM.
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Diffstat (limited to 'drivers/firmware/qcom_scm.c')
-rw-r--r-- | drivers/firmware/qcom_scm.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c index bb16510d75ba..e18d63935648 100644 --- a/drivers/firmware/qcom_scm.c +++ b/drivers/firmware/qcom_scm.c @@ -333,6 +333,18 @@ int qcom_scm_iommu_secure_ptbl_init(u64 addr, u32 size, u32 spare) } EXPORT_SYMBOL(qcom_scm_iommu_secure_ptbl_init); +int qcom_scm_io_readl(phys_addr_t addr, unsigned int *val) +{ + return __qcom_scm_io_readl(__scm->dev, addr, val); +} +EXPORT_SYMBOL(qcom_scm_io_readl); + +int qcom_scm_io_writel(phys_addr_t addr, unsigned int val) +{ + return __qcom_scm_io_writel(__scm->dev, addr, val); +} +EXPORT_SYMBOL(qcom_scm_io_writel); + /** * qcom_scm_is_available() - Checks if SCM is available */ |