[U-Boot] [PATCH 2/3] stv0991: enable cadence qspi controller & spi flash

Vikas Manocha vikas.manocha at st.com
Thu May 28 03:42:47 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>
---
 include/configs/stv0991.h |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/include/configs/stv0991.h b/include/configs/stv0991.h
index df40361..4138b32 100644
--- a/include/configs/stv0991.h
+++ b/include/configs/stv0991.h
@@ -82,5 +82,23 @@
 #define CONFIG_OF_SEPARATE
 #define CONFIG_OF_CONTROL
 #define CONFIG_OF_LIBFDT
+
+/*
+ * QSPI support
+ */
+#ifdef CONFIG_OF_CONTROL		/* QSPI is controlled via DT */
+#define CONFIG_DM_SPI
+#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		/* SPI flash subsystem */
+#define CONFIG_SPI_FLASH_STMICRO	/* Micron/Numonyx flash */
+#define CONFIG_SPI_FLASH_WINBOND	/* WINBOND */
+#define CONFIG_CMD_SF
+#define CONFIG_DM_SPI_FLASH
+#endif
+
 #undef CONFIG_HAS_VBAR
 #endif /* __CONFIG_H */
-- 
1.7.9.5



More information about the U-Boot mailing list