commit | 2c024247a525395a24c970c214559e5f8fb02702 | [log] [tgz] |
---|---|---|
author | kiwi liu <kiwi.liu@mediatek.corp-partner.google.com> | Thu Nov 16 16:46:11 2023 +0800 |
committer | kiwi.liu <kiwi.liu@mediatek.corp-partner.google.com> | Fri Dec 01 02:53:17 2023 +0100 |
tree | 528eaaef8358761f1b82e93eb1f841eb5c380135 | |
parent | 0c3a76a2e181e80e8f6392a13373f865080bcf5d [diff] [blame] |
feat(mt8188): add secure iommu support The secure IOMMU has two secure banks: VDO and VPP. Add SiP call to report the secure bank status in debug build. About more background, please see: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/dt-bindings/memory/mediatek,mt8188-memory-port.h?id=d5cda142d649c690fb0fcf1e29f3df63fbafc442 Change-Id: I7b3319e84391fc6d7f456659f8b8c5d9d1c6ab9d Signed-off-by: Anan Sun <anan.sun@mediatek.corp-partner.google.com> Signed-off-by: Kiwi Liu <kiwi.liu@mediatek.corp-partner.google.com>
diff --git a/plat/mediatek/drivers/iommu/mt8188/mtk_iommu_plat.h b/plat/mediatek/drivers/iommu/mt8188/mtk_iommu_plat.h index a59e0c7..a3f38a5 100644 --- a/plat/mediatek/drivers/iommu/mt8188/mtk_iommu_plat.h +++ b/plat/mediatek/drivers/iommu/mt8188/mtk_iommu_plat.h
@@ -7,18 +7,13 @@ #ifndef IOMMU_PLAT_H #define IOMMU_PLAT_H -#include <mtk_iommu_priv.h> - /* mm iommu */ -#define SMI_LARB_NUM (26) -extern struct mtk_smi_larb_config *g_larb_cfg; +#define ATF_MTK_SMI_LARB_CFG_SUPPORT -/* infra iommu */ -#define MMU_DEV_NUM (1) -extern struct mtk_ifr_mst_config *g_ifr_mst_cfg; -extern uint32_t *g_ifr_mst_cfg_base; -extern uint32_t *g_ifr_mst_cfg_offs; +/* mm iommu, sec bank dump */ +#define ATF_MTK_IOMMU_CFG_SUPPORT -extern void mtk_infra_iommu_enable_protect(void); +/* infra iommu */ +#define ATF_MTK_INFRA_MASTER_CFG_SUPPORT #endif /* IOMMU_PLAT_H */