aboutsummaryrefslogtreecommitdiff
path: root/plat/allwinner/common/include/platform_def.h
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2020-12-13 20:45:49 -0600
committerSamuel Holland <samuel@sholland.org>2021-07-22 20:50:24 -0500
commitab74206b605eb6e8d573de15161bb14971556714 (patch)
tree50ddcf1716d05614c391fe30523ed56370f18626 /plat/allwinner/common/include/platform_def.h
parentbc135624efdfffab220b032f7f3542541195c15c (diff)
downloadtrusted-firmware-a-ab74206b605eb6e8d573de15161bb14971556714.tar.gz
refactor(plat/allwinner): map SRAM as device memory by default
The SRAM on Allwinner platforms is shared between BL31 and coprocessor firmware. Previously, SRAM was mapped as normal memory by default. This scheme requires carveouts and cache maintenance code for proper synchronization with the coprocessor. A better scheme is to only map pages owned by BL31 as normal memory, and leave everything else as device memory. This removes the need for cache maintenance, and it makes the mapping for BL31 RW data explicit instead of magic. Signed-off-by: Samuel Holland <samuel@sholland.org> Change-Id: I820ddeba2dfa2396361c2322308c0db51b55c348
Diffstat (limited to 'plat/allwinner/common/include/platform_def.h')
-rw-r--r--plat/allwinner/common/include/platform_def.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/plat/allwinner/common/include/platform_def.h b/plat/allwinner/common/include/platform_def.h
index fa0c0abfab..e6ca6010f4 100644
--- a/plat/allwinner/common/include/platform_def.h
+++ b/plat/allwinner/common/include/platform_def.h
@@ -52,8 +52,8 @@
#define CACHE_WRITEBACK_SHIFT 6
#define CACHE_WRITEBACK_GRANULE (1 << CACHE_WRITEBACK_SHIFT)
-#define MAX_STATIC_MMAP_REGIONS 5
-#define MAX_MMAP_REGIONS (3 + MAX_STATIC_MMAP_REGIONS)
+#define MAX_STATIC_MMAP_REGIONS 4
+#define MAX_MMAP_REGIONS (5 + MAX_STATIC_MMAP_REGIONS)
#define PLAT_CSS_SCP_COM_SHARED_MEM_BASE \
(SUNXI_SRAM_A2_BASE + SUNXI_SRAM_A2_SIZE - 0x200)