iommu/mediatek: Add enable IOMMU SMC command for INFRA masters
authorChengci.Xu <chengci.xu@mediatek.com>
Fri, 2 Jun 2023 09:02:24 +0000 (17:02 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 7 Aug 2023 12:15:48 +0000 (14:15 +0200)
commit946e719ce621fc409001bc05c942d08a37b9052e
tree0a0f1d3a7f18ba32976a9f956a7d16a98447a76a
parent9a89051084af8ef566f3a2127cf5baa433dea497
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>
drivers/iommu/mtk_iommu.c
include/soc/mediatek/smi.h