summaryrefslogtreecommitdiff
path: root/include/soc
diff options
context:
space:
mode:
authorChengci.Xu <chengci.xu@mediatek.com>2022-08-17 15:46:07 +0300
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2022-08-30 20:54:05 +0300
commit4e508b259ed02f5fa608cdd83b817a7f49c22271 (patch)
treefe616ab4fcbaa42cd115da667be36d1e8e39582b /include/soc
parent8c1561edc0692fa8e321daf2777c3c32454b5748 (diff)
downloadlinux-4e508b259ed02f5fa608cdd83b817a7f49c22271.tar.xz
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/soc')
-rw-r--r--include/soc/mediatek/smi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/soc/mediatek/smi.h b/include/soc/mediatek/smi.h
index 11f7d6b59642..dfd8efca5e60 100644
--- a/include/soc/mediatek/smi.h
+++ b/include/soc/mediatek/smi.h
@@ -11,6 +11,11 @@
#if IS_ENABLED(CONFIG_MTK_SMI)
+enum iommu_atf_cmd {
+ IOMMU_ATF_CMD_CONFIG_SMI_LARB, /* For mm master to en/disable iommu */
+ IOMMU_ATF_CMD_MAX,
+};
+
#define MTK_SMI_MMU_EN(port) BIT(port)
struct mtk_smi_larb_iommu {