]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
imx9: scmi: Add PCIE ECAM and outbound space to MMU
authorYe Li <ye.li@nxp.com>
Fri, 26 Sep 2025 12:24:18 +0000 (20:24 +0800)
committerFabio Estevam <festevam@gmail.com>
Fri, 26 Sep 2025 12:52:54 +0000 (09:52 -0300)
Add PCIE1 and PCIE2 ECAM space and outbound space to MMU pagetable,
so A55 can access them.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx9/scmi/soc.c

index 5c1e13c9842e947a9cde684f7ceae8d75218d71b..dbaa19a9e6e4c636281f6199d09d1e5af263c164 100644 (file)
@@ -257,6 +257,30 @@ static struct mm_region imx9_mem_map[] = {
                         PTE_BLOCK_OUTER_SHARE
        }, {
 #endif
+               /* PCIE2 ECAM */
+               .virt = 0x880000000UL,
+               .phys = 0x880000000UL,
+               .size = 0x10000000UL,
+               .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
+                        PTE_BLOCK_NON_SHARE |
+                        PTE_BLOCK_PXN | PTE_BLOCK_UXN
+       }, {
+               /* PCIE1 Outbound */
+               .virt = 0x900000000UL,
+               .phys = 0x900000000UL,
+               .size = 0x100000000UL,
+               .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
+                        PTE_BLOCK_NON_SHARE |
+                        PTE_BLOCK_PXN | PTE_BLOCK_UXN
+       }, {
+               /* PCIE2 Outbound */
+               .virt = 0xA00000000UL,
+               .phys = 0xA00000000UL,
+               .size = 0x100000000UL,
+               .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
+                        PTE_BLOCK_NON_SHARE |
+                        PTE_BLOCK_PXN | PTE_BLOCK_UXN
+       }, {
                /* empty entry to split table entry 5 if needed when TEEs are used */
                0,
        }, {