]> git.sur5r.net Git - u-boot/commitdiff
zynqmp: Add SPI driver support for ZynqMP
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Wed, 15 Apr 2015 06:18:48 +0000 (11:48 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 29 Apr 2015 09:19:04 +0000 (11:19 +0200)
Added the SPI driver support for ZynqMP
The controller is same as zynq SPI controller

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
arch/arm/include/asm/arch-zynqmp/hardware.h
include/configs/xilinx_zynqmp.h

index 1fedb1bb4b94de04029b27205cdd6d5b363abf2c..c9dc49d783173db819352c218153e4a472a93ee4 100644 (file)
@@ -11,6 +11,9 @@
 #define ZYNQ_SERIAL_BASEADDR0  0xFF000000
 #define ZYNQ_SERIAL_BASEADDR1  0xFF001000
 
+#define ZYNQ_SPI_BASEADDR0     0xFF040000
+#define ZYNQ_SPI_BASEADDR1     0xFF050000
+
 #define ZYNQ_I2C_BASEADDR0     0xFF020000
 #define ZYNQ_I2C_BASEADDR1     0xFF030000
 
index 54bca6d47b72709c0c9657595a7ada9a84bd089b..1d8eaa76dfe7cee4998e03e06306cb29c4307fc8 100644 (file)
 #define CONFIG_CMD_ELF
 #define CONFIG_MP
 
+/* SPI */
+#ifdef CONFIG_ZYNQ_SPI
+# define CONFIG_SPI_FLASH
+# define CONFIG_SPI_FLASH_SST
+# define CONFIG_CMD_SF
+#endif
+
 #if defined(CONFIG_ZYNQ_SDHCI0) || defined(CONFIG_ZYNQ_SDHCI1)
 # define CONFIG_MMC
 # define CONFIG_GENERIC_MMC