diff options
author | Andre Przywara <andre.przywara@arm.com> | 2016-04-24 22:50:20 +0100 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2016-06-02 01:29:47 +0100 |
commit | 713f17de1a768b53bb80b30d52c047f8b3c151dd (patch) | |
tree | 3f2f9c749543ed718ee5f6e2b86e8971edc3ca98 /plat/sun50iw1p1/aarch64 | |
parent | c3d213438c1cb492cbe752c57de413bd3f63904d (diff) |
sun50i: mmap: dont map the whole device area, exclude SRAM
If we soon run in SRAM, the memory mapping code maps .text & friends
anyway, so we can confine the device mapping to the actual memory
region used by devices. We exclude the SRAM/BROM regions.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'plat/sun50iw1p1/aarch64')
-rw-r--r-- | plat/sun50iw1p1/aarch64/sunxi_common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plat/sun50iw1p1/aarch64/sunxi_common.c b/plat/sun50iw1p1/aarch64/sunxi_common.c index 1e4dd3c..da5ed3d 100644 --- a/plat/sun50iw1p1/aarch64/sunxi_common.c +++ b/plat/sun50iw1p1/aarch64/sunxi_common.c @@ -56,8 +56,9 @@ plat_config_t plat_config; */ const mmap_region_t sunxi_mmap[] = { - //1G - { 0, 0, DRAM1_BASE, MT_DEVICE | MT_RW | MT_SECURE }, + // MMI/O region used by peripherals from 0x100.0000 to 0x200.0000 + { 0x1000000, 0x1000000, + 0x1000000, MT_DEVICE | MT_RW | MT_SECURE }, //2G { DRAM1_BASE, DRAM1_BASE, SUNXI_MAX_DRAM_SIZE, MT_MEMORY | MT_RW | MT_NS}, //TRUSTED dram for secure os and shared memory |