[U-Boot] [PATCH 11/34] zynq-common: Enable CONFIG_ZYNQ_QSPI

Jagannadha Sutradharudu Teki
2013-11-05T17:46:32Z

Tested qspi on zynq board with stmicro, spansion and winbond
flashes by enabling CONFIG_ZYNQ_QSPI.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
---
include/configs/zynq-common.h | 10 ++++++++++
1 file changed, 10 insertions(+)

diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index 438215b..200401c 100644
--- a/include/configs/zynq-common.h
+++ b/include/configs/zynq-common.h
@@ -79,6 +79,16 @@
# define CONFIG_CMD_SF
#endif

+/* QSPI */
+#ifdef CONFIG_ZYNQ_QSPI
+# define CONFIG_CMD_SF
+# define CONFIG_SF_DEFAULT_SPEED 30000000
+# define CONFIG_SPI_FLASH
+# define CONFIG_SPI_FLASH_STMICRO
+# define CONFIG_SPI_FLASH_SPANSION
+# define CONFIG_SPI_FLASH_WINBOND
+#endif
+
/* NOR */
#define CONFIG_SYS_NO_FLASH

--
1.8.3