iommu/mediatek: mt8192: Add iova_region_larb_msk
authorYong Wu <yong.wu@mediatek.com>
Tue, 11 Apr 2023 09:31:35 +0000 (17:31 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 13 Apr 2023 09:59:25 +0000 (11:59 +0200)
commit6b1317f92874cc82719d9f38b7c298dadfc16a6b
treeeb765839ad215ff28b96cfd7463e8311782ed2ae
parentb2a6876d215b3e980d8ac89ccc704667ad266205
iommu/mediatek: mt8192: Add iova_region_larb_msk

Add iova_region_larb_msk for mt8192. We separate the 16GB iova regions
by each device's larbid/portid.
Note: larb3/6/8/10/12/15 connect nothing in this SoC.
Refer to the comment in include/dt-bindings/memory/mt8192-larb-port.h

Define a new macro MT8192_MULTI_REGION_NR_MAX to indicate
the index of mt8xxx_larb_region_msk and
"struct mtk_iommu_iova_region mt8192_multi_dom"
are the same.

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