]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: exynos: Map iRAM APM area for Exynos850 SoC
authorSam Protsenko <semen.protsenko@linaro.org>
Sat, 25 May 2024 21:53:30 +0000 (16:53 -0500)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 28 May 2024 02:54:07 +0000 (11:54 +0900)
This iRAM APM area is needed for I3C access to PMIC via APM block.
Without this mapping any access to APM iRAM leads to "Synchronous Abort"
exception.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/mach-exynos/mmu-arm64.c

index 30e522804fbf379822f2af34a8cc8f1f92a36816..4c154950f73b0d92a90cf1b3b4139b425c38b78d 100644 (file)
@@ -101,6 +101,14 @@ struct mm_region *mem_map = exynos7880_mem_map;
 
 static struct mm_region exynos850_mem_map[] = {
        {
+               /* iRAM */
+               .virt = 0x02000000UL,
+               .phys = 0x02000000UL,
+               .size = SZ_2M,
+               .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRE) |
+                        PTE_BLOCK_NON_SHARE |
+                        PTE_BLOCK_PXN | PTE_BLOCK_UXN
+       }, {
                /* Peripheral block */
                .virt = 0x10000000UL,
                .phys = 0x10000000UL,