From 1465d055f9d7a81edacf30c9d20a1b51dfcbfa8d Mon Sep 17 00:00:00 2001 From: Jagannadha Sutradharudu Teki Date: Mon, 29 Jul 2013 23:45:16 +0530 Subject: spi: Add zynq spi controller driver Zynq spi controller driver supports 2 buses and 3 chipselects on each bus. Signed-off-by: Jagannadha Sutradharudu Teki Acked-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- arch/arm/include/asm/arch-zynq/hardware.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch') diff --git a/arch/arm/include/asm/arch-zynq/hardware.h b/arch/arm/include/asm/arch-zynq/hardware.h index 25f0e3d..081624e 100644 --- a/arch/arm/include/asm/arch-zynq/hardware.h +++ b/arch/arm/include/asm/arch-zynq/hardware.h @@ -17,6 +17,8 @@ #define ZYNQ_SDHCI_BASEADDR1 0xE0101000 #define ZYNQ_I2C_BASEADDR0 0xE0004000 #define ZYNQ_I2C_BASEADDR1 0xE0005000 +#define ZYNQ_SPI_BASEADDR0 0xE0006000 +#define ZYNQ_SPI_BASEADDR1 0xE0007000 /* Reflect slcr offsets */ struct slcr_regs { -- cgit v1.1 From 07a16f2a9cb6cbb0fbce72e649c7be214d7f801a Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Thu, 8 Aug 2013 18:58:11 +0530 Subject: microblaze: Call spi_init function Initialization spi. Signed-off-by: Michal Simek Acked-by: Stephan Linz Signed-off-by: Jagannadha Sutradharudu Teki --- arch/microblaze/lib/board.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'arch') diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c index 8267191..f7182f2 100644 --- a/arch/microblaze/lib/board.c +++ b/arch/microblaze/lib/board.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -147,6 +148,10 @@ void board_init_f(ulong not_used) } #endif +#ifdef CONFIG_SPI + spi_init(); +#endif + /* relocate environment function pointers etc. */ env_relocate(); -- cgit v1.1