Skip to content

Commit

Permalink
spi: kirkwood_spi.c: Change KW_SPI_BASE to MVEBU_SPI_BASE
Browse files Browse the repository at this point in the history
This makes is possible to use this SPI driver from other MVEBU SoC's as well.
As the upcoming Armada XP support will do.

Signed-off-by: Stefan Roese <[email protected]>
Reviewed-by: Jagannadha Sutradharudu Teki <[email protected]>
Tested-by: Luka Perkov <[email protected]>
Acked-by: Prafulla Wadaskar <[email protected]>
  • Loading branch information
stroese authored and trini committed Oct 23, 2014
1 parent d5c5132 commit 4fd7717
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/arm/include/asm/arch-kirkwood/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#define MVEBU_GPIO1_BASE (KW_REGISTER(0x10140))
#define KW_RTC_BASE (KW_REGISTER(0x10300))
#define KW_NANDF_BASE (KW_REGISTER(0x10418))
#define KW_SPI_BASE (KW_REGISTER(0x10600))
#define MVEBU_SPI_BASE (KW_REGISTER(0x10600))
#define KW_CPU_WIN_BASE (KW_REGISTER(0x20000))
#define KW_CPU_REG_BASE (KW_REGISTER(0x20100))
#define MVEBU_TIMER_BASE (KW_REGISTER(0x20300))
Expand Down
3 changes: 2 additions & 1 deletion drivers/spi/kirkwood_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
#endif
#include <asm/arch-mvebu/spi.h>

static struct kwspi_registers *spireg = (struct kwspi_registers *)KW_SPI_BASE;
static struct kwspi_registers *spireg =
(struct kwspi_registers *)MVEBU_SPI_BASE;

#ifdef CONFIG_KIRKWOOD
static u32 cs_spi_mpp_back[2];
Expand Down

0 comments on commit 4fd7717

Please sign in to comment.