[U-Boot] [v4 05/10] stv0991: enable cadence qspi controller & spi flash

Vikas Manocha vikas.manocha at st.com
Fri Jul 3 03:29:41 CEST 2015


This patch does all the board configurations required to use the qspi
controller & attached spi flash memory.

Signed-off-by: Vikas Manocha <vikas.manocha at st.com>
---

Changes in v4:
- Moved SPI configs in arch/arm/Kconfig
Changes in v3: Rebased to spi-next-dev
Changes in v2: None

 arch/arm/Kconfig          |    3 +++
 include/configs/stv0991.h |   15 +++++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 192d9cf..7495279 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -227,6 +227,9 @@ config TARGET_STV0991
 	select CPU_V7
 	select DM
 	select DM_SERIAL
+	select DM_SPI
+	select SPI_FLASH
+	select DM_SPI_FLASH
 
 config TARGET_X600
 	bool "Support x600"
diff --git a/include/configs/stv0991.h b/include/configs/stv0991.h
index 718ef40..887f31a 100644
--- a/include/configs/stv0991.h
+++ b/include/configs/stv0991.h
@@ -75,4 +75,19 @@
 #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 */
-- 
1.7.9.5



More information about the U-Boot mailing list