Patchwork [U-Boot,2/3] zynq: Enable CONFIG_ZYNQ_QSPI

login
register
mail settings
Submitter Jagannadha Sutradharudu Teki
Date Aug. 3, 2013, 8:45 p.m.
Message ID <a3d58803-e3c6-48a4-8c3c-775471cdd5bf@TX2EHSMHS031.ehs.local>
Download mbox | patch
Permalink /patch/264442/
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Comments

Jagannadha Sutradharudu Teki - Aug. 3, 2013, 8:45 p.m.
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.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

Patch

diff --git a/include/configs/zynq.h b/include/configs/zynq.h
index d93aaea..d310864 100644
--- a/include/configs/zynq.h
+++ b/include/configs/zynq.h
@@ -82,6 +82,16 @@ 
 # define CONFIG_CMD_SF
 #endif
 
+/* QSPI */
+#ifdef CONFIG_ZYNQ_QSPI
+# define CONFIG_SF_DEFAULT_SPEED	30000000
+# define CONFIG_SPI_FLASH
+# define CONFIG_SPI_FLASH_SPANSION
+# define CONFIG_SPI_FLASH_STMICRO
+# define CONFIG_SPI_FLASH_WINBOND
+# define CONFIG_CMD_SF
+#endif
+
 /* Enable the PL to be downloaded */
 #define CONFIG_FPGA
 #define CONFIG_FPGA_XILINX