]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stv0991: enable cadence qspi controller & spi flash
authorVikas Manocha <vikas.manocha@st.com>
Fri, 3 Jul 2015 01:29:41 +0000 (18:29 -0700)
committerJagan Teki <jteki@openedev.com>
Fri, 3 Jul 2015 08:20:53 +0000 (13:50 +0530)
This patch does all the board configurations required to use the qspi
controller & attached spi flash memory.

Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
Reviewed-by: Jagannadh Teki <jteki@openedev.com>
arch/arm/Kconfig
include/configs/stv0991.h

index 192d9cf3f078d0beb0bdf7ae397af98c484ba02f..0d2a808fe2aa632bfbbff5ba8a2e9a53e2e59539 100644 (file)
@@ -227,6 +227,9 @@ config TARGET_STV0991
        select CPU_V7
        select DM
        select DM_SERIAL
+       select DM_SPI
+       select DM_SPI_FLASH
+       select SPI_FLASH
 
 config TARGET_X600
        bool "Support x600"
index 718ef40d50b95f7428064eb4646a65277c017005..887f31a84d1c799762c1f169e90b6c261ce8ccc3 100644 (file)
 #define CONFIG_BOOTCOMMAND                     "go 0x40040000"
 
 #define CONFIG_OF_LIBFDT
+
+/*
++ * QSPI support
++ */
+#ifdef CONFIG_OF_CONTROL               /* QSPI is controlled via DT */
+#define CONFIG_CADENCE_QSPI
+#define CONFIG_CQSPI_DECODER           0
+#define CONFIG_CQSPI_REF_CLK           ((30/4)/2)*1000*1000
+#define CONFIG_CMD_SPI
+
+#define CONFIG_SPI_FLASH_STMICRO       /* Micron/Numonyx flash */
+#define CONFIG_SPI_FLASH_WINBOND       /* WINBOND */
+#define CONFIG_CMD_SF
+#endif
+
 #endif /* __CONFIG_H */