zynq: Enable CONFIG_ZYNQ_SPI
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Tue, 6 Aug 2013 19:42:06 +0000 (01:12 +0530)
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Tue, 6 Aug 2013 19:47:00 +0000 (01:17 +0530)
Tested spi on zynq board with sst flash by enabling
CONFIG_ZYNQ_SPI.

sf probe 1:1 0 0
SF: Detected SST25WF080 with page size 4 KiB, total 1 MiB

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Acked-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/configs/zynq.h

index 79fa5bb53faec013a5146271c22c87c3d8adbf0a..b9f381f645ee9a1749ee9d983c1827cbf1b98053 100644 (file)
 # define CONFIG_CPU_V6 /* Required by CONFIG_ARM_DCC */
 #endif
 
+#define CONFIG_ZYNQ_SPI
+
+/* SPI */
+#ifdef CONFIG_ZYNQ_SPI
+# define CONFIG_SPI_FLASH
+# define CONFIG_SPI_FLASH_SST
+# define CONFIG_CMD_SF
+#endif
+
 /* Enable the PL to be downloaded */
 #define CONFIG_FPGA
 #define CONFIG_FPGA_XILINX