Skip to content

Commit f69c3ce

Browse files
committed
rockchip: rk3576: Add SCMI shared memory region to MMU mapping
Add a 64KB memory region mapping at 0x40100000 for SCMI (System Control and Management Interface) communication between U-Boot and the ARM Trusted Firmware. The region is configured with: - MT_NORMAL_NC (Non-cacheable normal memory) to ensure coherent access between the AP and SCP/firmware - PTE_BLOCK_NON_SHARE to match firmware expectations - PXN/UXN to prevent execution from this memory region This shared memory region is used for SCMI message passing on RK3576 platforms that utilize ARM-FF-A or similar firmware interfaces for clock, power domain, and other system control operations. Change-Id: 9d1957c3-d21f-41de-b9b9-acfcffce4d83 batch-02 Signed-off-by: Anton Burticica <mouse@ya.ru>
1 parent cb2e54d commit f69c3ce

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

arch/arm/mach-rockchip/rk3576/rk3576.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ static struct mm_region rk3576_mem_map[] = {
7676
.size = 0x400000000UL,
7777
.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
7878
PTE_BLOCK_INNER_SHARE
79+
}, {
80+
/* MSCH_DDR_PORT, shared 64KB for SCMI */
81+
.virt = 0x40100000UL,
82+
.phys = 0x40100000UL,
83+
.size = 0x00010000UL,
84+
.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL_NC) |
85+
PTE_BLOCK_NON_SHARE |
86+
PTE_BLOCK_PXN | PTE_BLOCK_UXN
7987
}, {
8088
/* PCIe 0+1 */
8189
.virt = 0x900000000UL,

0 commit comments

Comments
 (0)