Patchwork [U-Boot,v2,07/10] zynq: Enable CONFIG_ZYNQ_QSPI

login
register
mail settings
Submitter Jagannadha Sutradharudu Teki
Date Aug. 7, 2013, 8:09 p.m.
Message ID <33920442-1bd8-46f0-a134-dcda334c30d3@AM1EHSMHS019.ehs.local>
Download mbox | patch
Permalink /patch/265599/
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Comments

Jagannadha Sutradharudu Teki - Aug. 7, 2013, 8:09 p.m.
From: Jagannadha Sutradharudu Teki <jagannadha.sutradharudu-teki@xilinx.com>

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>
---
Changes for v2:
	- none

 include/configs/zynq.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

Patch

diff --git a/include/configs/zynq.h b/include/configs/zynq.h
index b9f381f..16cc3bc 100644
--- a/include/configs/zynq.h
+++ b/include/configs/zynq.h
@@ -81,6 +81,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