]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq-common: Fix redefinition error with configs CMD_SF and CMD_SPI
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Fri, 14 Aug 2015 08:58:58 +0000 (14:28 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 14 Aug 2015 12:14:16 +0000 (14:14 +0200)
Define CMD_SF and CMD_SPI configs incase of either
the ZYNQ_SPI or ZYNQ_QSPI or both. This is to avoid
the redefinition error if both ZYNQ_SPI and ZYNQ_QSPI
are enabled.

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

index 3a7bfd32c6097ebaeb967379458ee0aee84c793c..6eaa8f58f03e05ff1715bf0c62706f2f0d0d15bb 100644 (file)
@@ -75,6 +75,9 @@
 /* SPI */
 #ifdef CONFIG_ZYNQ_SPI
 # define CONFIG_SPI_FLASH_SST
+#endif
+
+#if defined(CONFIG_ZYNQ_SPI) || defined(CONFIG_ZYNQ_QSPI)
 # define CONFIG_CMD_SPI
 # define CONFIG_CMD_SF
 #endif
 # define CONFIG_SPI_FLASH_STMICRO
 # define CONFIG_SPI_FLASH_WINBOND
 # define CONFIG_SPI_FLASH_ISSI
-# define CONFIG_CMD_SPI
-# define CONFIG_CMD_SF
 # define CONFIG_SF_DUAL_FLASH
 #endif