summaryrefslogtreecommitdiffstats
path: root/include/soc
diff options
context:
space:
mode:
authorChengci.Xu <chengci.xu@mediatek.com>2023-06-02 11:02:24 +0200
committerJoerg Roedel <jroedel@suse.de>2023-08-07 14:15:48 +0200
commit946e719ce621fc409001bc05c942d08a37b9052e (patch)
tree0a0f1d3a7f18ba32976a9f956a7d16a98447a76a /include/soc
parentiommu/mediatek: Adjust mtk_iommu_config flow (diff)
downloadlinux-946e719ce621fc409001bc05c942d08a37b9052e.tar.xz
linux-946e719ce621fc409001bc05c942d08a37b9052e.zip
iommu/mediatek: Add enable IOMMU SMC command for INFRA masters
Prepare for MT8188. In MT8188, the register which enables IOMMU for INFRA masters are in the secure world for security concerns, therefore we add a SMC command for INFRA masters to enable IOMMU in ATF. Signed-off-by: Chengci.Xu <chengci.xu@mediatek.com> Signed-off-by: Yong Wu <yong.wu@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com> Link: https://lore.kernel.org/r/20230602090227.7264-5-yong.wu@mediatek.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/mediatek/smi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/soc/mediatek/smi.h b/include/soc/mediatek/smi.h
index dfd8efca5e60..000eb1cf68b7 100644
--- a/include/soc/mediatek/smi.h
+++ b/include/soc/mediatek/smi.h
@@ -13,6 +13,7 @@
enum iommu_atf_cmd {
IOMMU_ATF_CMD_CONFIG_SMI_LARB, /* For mm master to en/disable iommu */
+ IOMMU_ATF_CMD_CONFIG_INFRA_IOMMU, /* For infra master to enable iommu */
IOMMU_ATF_CMD_MAX,
};