]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynqmp: Support SPL_SPI_LOAD only if SPL spi flash support present
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Wed, 18 Jan 2017 10:33:26 +0000 (16:03 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 18 Jan 2017 10:42:11 +0000 (11:42 +0100)
Support SPL_SPI_LOAD only if SPL spi flash support present
This fixes the issue of compilation failures on dc1 and dc2.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/configs/xilinx_zynqmp.h

index 7727bda2aaf4341c004bce9c1f0c69eff7dd455d..5ff51593a21d4dbf4f5ba6c4743de3de1f2c2ab1 100644 (file)
 #define CONFIG_SPL_BOARD_INIT
 #define CONFIG_SPL_RAM_DEVICE
 
-#define CONFIG_SPL_SPI_LOAD
-#define CONFIG_SYS_SPI_KERNEL_OFFS     0x80000
-#define CONFIG_SYS_SPI_ARGS_OFFS       0xa0000
-#define CONFIG_SYS_SPI_ARGS_SIZE       0xa0000
+#if defined(CONFIG_SPL_SPI_FLASH_SUPPORT)
+# define CONFIG_SPL_SPI_LOAD
+# define CONFIG_SYS_SPI_KERNEL_OFFS    0x80000
+# define CONFIG_SYS_SPI_ARGS_OFFS      0xa0000
+# define CONFIG_SYS_SPI_ARGS_SIZE      0xa0000
 
-#define CONFIG_SYS_SPI_U_BOOT_OFFS     0x140000
+# define CONFIG_SYS_SPI_U_BOOT_OFFS    0x140000
+#endif
 
 /* u-boot is like dtb */
 #define CONFIG_SPL_FS_LOAD_ARGS_NAME   "u-boot.bin"