diff options
author | Chengci.Xu <chengci.xu@mediatek.com> | 2023-06-02 11:02:24 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2023-08-07 14:15:48 +0200 |
commit | 946e719ce621fc409001bc05c942d08a37b9052e (patch) | |
tree | 0a0f1d3a7f18ba32976a9f956a7d16a98447a76a /include/soc | |
parent | iommu/mediatek: Adjust mtk_iommu_config flow (diff) | |
download | linux-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.h | 1 |
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, }; |