summaryrefslogtreecommitdiff
path: root/include/linux/soc/mediatek/mtk_sip_svc.h
diff options
context:
space:
mode:
authorChengci.Xu <chengci.xu@mediatek.com>2022-08-17 20:46:07 +0800
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2022-08-30 20:54:05 +0300
commit4e508b259ed02f5fa608cdd83b817a7f49c22271 (patch)
treefe616ab4fcbaa42cd115da667be36d1e8e39582b /include/linux/soc/mediatek/mtk_sip_svc.h
parent8c1561edc0692fa8e321daf2777c3c32454b5748 (diff)
memory: mtk-smi: Add enable IOMMU SMC command for MM master
For concerns about security, the register to enable/disable IOMMU of SMI LARB should only be configured in secure world. Thus, we add some SMC command for multimedia master to enable/disable MM IOMMU in ATF by setting the register of SMI LARB. This function is prepared for MT8188. Signed-off-by: Chengci.Xu <chengci.xu@mediatek.com> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20220817124608.10062-4-chengci.xu@mediatek.com
Diffstat (limited to 'include/linux/soc/mediatek/mtk_sip_svc.h')
-rw-r--r--include/linux/soc/mediatek/mtk_sip_svc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/soc/mediatek/mtk_sip_svc.h b/include/linux/soc/mediatek/mtk_sip_svc.h
index 082398e0cfb1..0761128b4354 100644
--- a/include/linux/soc/mediatek/mtk_sip_svc.h
+++ b/include/linux/soc/mediatek/mtk_sip_svc.h
@@ -22,4 +22,7 @@
ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, MTK_SIP_SMC_CONVENTION, \
ARM_SMCCC_OWNER_SIP, fn_id)
+/* IOMMU related SMC call */
+#define MTK_SIP_KERNEL_IOMMU_CONTROL MTK_SIP_SMC_CMD(0x514)
+
#endif