Skip to contentSkip to conversation

arm: exynos: Map iRAM APM area for Exynos850 SoC

PATCH In review Sam Protsenko 2 participants 2 messages May 25, 2024 – May 31, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: exynos: Map iRAM APM area for Exynos850 SoC

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.

---
 arch/arm/mach-exynos/mmu-arm64.c | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/mach-exynos/mmu-arm64.c +8 -0
index 30e522804fbf..4c154950f73b 100644
@@ -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,
Signature · 1 line
2.39.2
#1 lore raw

Hi,

Quoted 30 lines · Sam Protsenko

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.

---
 arch/arm/mach-exynos/mmu-arm64.c | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/mach-exynos/mmu-arm64.c +8 -1
index 30e522804fbf..4c154950f73b 100644
@@ -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,
--
Quoted 3 lines

2.39.2

applied to u-boot-samsung.

Signature · 2 lines
Thanks,
Minkyu Kang.