]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
xilinx: common: Do not touch CONFIG_XILINX_OF_BOARD_DTB_ADDR in SPL
authorMichal Simek <michal.simek@xilinx.com>
Mon, 4 Jan 2021 10:07:28 +0000 (11:07 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 20 Jan 2021 07:34:53 +0000 (08:34 +0100)
This hook is used in full U-Boot that's why there is no reason to touch
this location from SPL. The hook was introduced for QEMU usage but none is
really running SPL on QEMU that's why it shouldn't break any usecase.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/common/board.c

index 9f651db734c7b6dc8484947d46f89685bdf926bd..df19aeadd0b2936194ce514f093cde0fe290e996 100644 (file)
@@ -324,7 +324,8 @@ void *board_fdt_blob_setup(void)
 {
        void *fdt_blob;
 
-       if (!IS_ENABLED(CONFIG_VERSAL_NO_DDR) &&
+       if (!IS_ENABLED(CONFIG_SPL_BUILD) &&
+           !IS_ENABLED(CONFIG_VERSAL_NO_DDR) &&
            !IS_ENABLED(CONFIG_VERSAL_NO_DDR)) {
                fdt_blob = (void *)CONFIG_XILINX_OF_BOARD_DTB_ADDR;