From aef149e9dd3d8a99840b0a7e5af06565cde3ad74 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Mon, 29 Apr 2019 09:39:09 -0700 Subject: arm64: versal: Enable memory mapping via DT Code reads DT and setup MMU table based on memory node. This will ensure that only DT needs to be changed. Signed-off-by: Michal Simek --- board/xilinx/versal/board.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'board') diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c index 2b4edd8738..5718e1aa7e 100644 --- a/board/xilinx/versal/board.c +++ b/board/xilinx/versal/board.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -194,7 +195,13 @@ int board_late_init(void) int dram_init_banksize(void) { - fdtdec_setup_memory_banksize(); + int ret; + + ret = fdtdec_setup_memory_banksize(); + if (ret) + return ret; + + mem_map_fill(); return 0; } -- cgit v1.2.3