iommu/mediatek: Add support for Dimensity 1200 MT6893 MM IOMMU
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 10 Apr 2025 14:40:08 +0000 (16:40 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 17 Apr 2025 14:41:11 +0000 (16:41 +0200)
commitf6a1e89ab6e3001156849944bc6a2dc71ccdad7e
tree43ddaffee6f5e5df53bccb072f38869d47e3f5b8
parent52edd094750a0a08cb54321df07d9cddbdd2b17c
iommu/mediatek: Add support for Dimensity 1200 MT6893 MM IOMMU

Add support for the two MM IOMMUs found in the MediaTek Dimensity
1200 (MT6893) SoC, used for display, camera, imgsys and vpu.

Since the MT6893 SoC is almost fully compatible with MT8192, also
move the mt8192_larb_region_msk before the newly introduced mt6893
platform data, as the larb regions from mt8192 are fully reused.

Note that the only difference with MT8192 is that MT6893 needs the
SHARE_PGTABLE flag.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Yong Wu <yong.wu@mediatek.com>
Link: https://lore.kernel.org/r/20250410144008.475888-3-angelogioacchino.delregno@collabora.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/mtk_iommu.c