[U-Boot] [PATCH v2 4/6] zynqmp: Add SPI driver support for ZynqMP

Jagan Teki jagannadh.teki at gmail.com
Mon Apr 20 14:45:33 CEST 2015


On 20 April 2015 at 13:06, Michal Simek <michal.simek at xilinx.com> wrote:
> From: Siva Durga Prasad Paladugu <siva.durga.paladugu at xilinx.com>
>
> Added the SPI driver support for ZynqMP
> The controller is same as zynq SPI controller
>
> Signed-off-by: Siva Durga Prasad Paladugu <sivadur at xilinx.com>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
> Changes in v2:
> - Remove CMD_SPI from header based on Jagan's comment
>
>  arch/arm/include/asm/arch-zynqmp/hardware.h | 3 +++
>  include/configs/xilinx_zynqmp.h             | 7 +++++++
>  2 files changed, 10 insertions(+)
>
> diff --git a/arch/arm/include/asm/arch-zynqmp/hardware.h b/arch/arm/include/asm/arch-zynqmp/hardware.h
> index 1fedb1bb4b94..c9dc49d78317 100644
> --- a/arch/arm/include/asm/arch-zynqmp/hardware.h
> +++ b/arch/arm/include/asm/arch-zynqmp/hardware.h
> @@ -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
>
> diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h
> index 54bca6d47b72..1d8eaa76dfe7 100644
> --- a/include/configs/xilinx_zynqmp.h
> +++ b/include/configs/xilinx_zynqmp.h
> @@ -71,6 +71,13 @@
>  #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
> --
> 2.3.5

Applied u-boot-spi/master

thanks!
-- 
Jagan.


More information about the U-Boot mailing list