summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2019-04-29 19:39:09 +0300
committerMichal Simek <michal.simek@xilinx.com>2019-10-08 10:11:14 +0300
commitaef149e9dd3d8a99840b0a7e5af06565cde3ad74 (patch)
tree877de880ae32768d680e900a7f55cedc13d09733 /board
parenta69814c815b9a1a027f461ef26dbe7b2b8e258e4 (diff)
downloadu-boot-aef149e9dd3d8a99840b0a7e5af06565cde3ad74.tar.xz
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.c9
1 files changed, 8 insertions, 1 deletions
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 <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;
}