diff options
author | Michal Simek | 2019-04-29 09:39:09 -0700 |
---|---|---|
committer | Michal Simek | 2019-10-08 09:11:14 +0200 |
commit | aef149e9dd3d8a99840b0a7e5af06565cde3ad74 (patch) | |
tree | 877de880ae32768d680e900a7f55cedc13d09733 /board | |
parent | a69814c815b9a1a027f461ef26dbe7b2b8e258e4 (diff) |
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 <michal.simek@xilinx.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/xilinx/versal/board.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c index 2b4edd8738b..5718e1aa7e4 100644 --- a/board/xilinx/versal/board.c +++ b/board/xilinx/versal/board.c @@ -9,6 +9,7 @@ #include <malloc.h> #include <asm/io.h> #include <asm/arch/hardware.h> +#include <asm/arch/sys_proto.h> #include <dm/device.h> #include <dm/uclass.h> #include <versalpl.h> @@ -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; } |