summaryrefslogtreecommitdiff
path: root/include/configs/stv0991.h
diff options
context:
space:
mode:
authorVikas Manocha <vikas.manocha@st.com>2015-07-02 18:29:41 -0700
committerJagan Teki <jteki@openedev.com>2015-07-03 13:50:53 +0530
commite67abcaacb8271a58c1a5e5afb17475bd8c3deaf (patch)
tree7b808675a8312cea3847857ca1b4a32ee6cfb1b7 /include/configs/stv0991.h
parent54afb5002514f88c41f3d462d1e14715a40f4107 (diff)
downloadu-boot-imx-e67abcaacb8271a58c1a5e5afb17475bd8c3deaf.zip
u-boot-imx-e67abcaacb8271a58c1a5e5afb17475bd8c3deaf.tar.gz
u-boot-imx-e67abcaacb8271a58c1a5e5afb17475bd8c3deaf.tar.bz2
stv0991: enable cadence qspi controller & spi flash
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>
Diffstat (limited to 'include/configs/stv0991.h')
-rw-r--r--include/configs/stv0991.h15
1 files changed, 15 insertions, 0 deletions
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 */