summaryrefslogtreecommitdiffstats
path: root/board/xilinx/common
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2020-03-19 10:23:56 +0100
committerMichal Simek <michal.simek@xilinx.com>2020-04-06 12:52:45 +0200
commit453bb77d09c993a0690a045308aee9813b7dd58b (patch)
treed774d519224d5b6899239f85a011a0bf7a6e0175 /board/xilinx/common
parent98da86681e5158195314fd5df4ff605d3bb63d75 (diff)
downloadu-boot-453bb77d09c993a0690a045308aee9813b7dd58b.tar.gz
u-boot-453bb77d09c993a0690a045308aee9813b7dd58b.tar.xz
u-boot-453bb77d09c993a0690a045308aee9813b7dd58b.zip
arm64: xilinx: Never touch DDR if system has no DDR
If DDR is not mapped do not touch it. Default XILINX_OF_BOARD_DTB_ADDR is pointing to DDR. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx/common')
-rw-r--r--board/xilinx/common/board.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
index f87e2e9105..e83c692f21 100644
--- a/board/xilinx/common/board.c
+++ b/board/xilinx/common/board.c
@@ -41,12 +41,16 @@ int zynq_board_read_rom_ethaddr(unsigned char *ethaddr)
#if defined(CONFIG_OF_BOARD) || defined(CONFIG_OF_SEPARATE)
void *board_fdt_blob_setup(void)
{
- static void *fdt_blob = (void *)CONFIG_XILINX_OF_BOARD_DTB_ADDR;
+ static void *fdt_blob;
+
+#if !defined(CONFIG_VERSAL_NO_DDR) && !defined(CONFIG_ZYNQMP_NO_DDR)
+ fdt_blob = (void *)CONFIG_XILINX_OF_BOARD_DTB_ADDR;
if (fdt_magic(fdt_blob) == FDT_MAGIC)
return fdt_blob;
debug("DTB is not passed via %p\n", fdt_blob);
+#endif
#ifdef CONFIG_SPL_BUILD
/* FDT is at end of BSS unless it is in a different memory region */