[U-Boot] [PATCH v3 13/25] spi: kirkwood_spi.c: Change KW_SPI_BASE to MVEBU_SPI_BASE
Jagan Teki
jagannadh.teki at gmail.com
Wed Sep 24 14:49:28 CEST 2014
I have taken first 5 patches (spi) and Tom take the rest.
On 2 September 2014 17:33, Stefan Roese <sr at denx.de> wrote:
> 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 <sr at denx.de>
>
> Acked-by: Prafulla Wadaskar <prafulla at marvell.com>
> Reviewed-by: Jagannadha Sutradharudu Teki <jaganna at xilinx.com>
> Tested-by: Luka Perkov <luka at openwrt.org>
> ---
>
> Changes in v3:
> - Added Acked-by from Prafulla to all Kirkwood patches
> - Added Tested-by from Luka
> - Added Reviewed-by from Jagannadha
>
> Changes in v2: None
>
> arch/arm/include/asm/arch-kirkwood/soc.h | 2 +-
> drivers/spi/kirkwood_spi.c | 3 ++-
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/include/asm/arch-kirkwood/soc.h b/arch/arm/include/asm/arch-kirkwood/soc.h
> index 332cc24..4ef32c7 100644
> --- a/arch/arm/include/asm/arch-kirkwood/soc.h
> +++ b/arch/arm/include/asm/arch-kirkwood/soc.h
> @@ -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))
> diff --git a/drivers/spi/kirkwood_spi.c b/drivers/spi/kirkwood_spi.c
> index ce2ba96..e7b0982 100644
> --- a/drivers/spi/kirkwood_spi.c
> +++ b/drivers/spi/kirkwood_spi.c
> @@ -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];
> --
> 2.1.0
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
--
Jagan.
More information about the U-Boot
mailing list