Skip to content

Commit

Permalink
zynq-common: Fix redefinition error with configs CMD_SF and CMD_SPI
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
  • Loading branch information
Siva Durga Prasad Paladugu authored and Michal Simek committed Aug 14, 2015
1 parent de0cb87 commit db0d4f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/configs/zynq-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -184,8 +187,6 @@
# 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

Expand Down

0 comments on commit db0d4f8

Please sign in to comment.