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] |
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/mt8188/include/platform_def.h b/plat/mediatek/mt8188/include/platform_def.h index 0a7ae6d..71a4e97 100644 --- a/plat/mediatek/mt8188/include/platform_def.h +++ b/plat/mediatek/mt8188/include/platform_def.h
@@ -107,7 +107,13 @@ #define CIRQ_SPI_START (96) /******************************************************************************* - * MM IOMMU & SMI related constants + * MM IOMMU related constants + ******************************************************************************/ +#define VDO_SECURE_IOMMU_BASE (IO_PHYS + 0x0c028000 + 0x4000) +#define VPP_SECURE_IOMMU_BASE (IO_PHYS + 0x04018000 + 0x4000) + +/******************************************************************************* + * SMI larb constants ******************************************************************************/ #define SMI_LARB_0_BASE (IO_PHYS + 0x0c022000) #define SMI_LARB_1_BASE (IO_PHYS + 0x0c023000)