[U-Boot] [PATCH] zynq-common: Define spi args offset and size

Jagan Teki jteki at openedev.com
Sun Sep 13 18:03:59 CEST 2015


Hi Siva,

On 10 September 2015 at 15:26, Siva Durga Prasad Paladugu
<siva.durga.paladugu at xilinx.com> wrote:
> Define CONFIG_SYS_SPI_ARGS_OFFS, CONFIG_SYS_SPI_ARGS_SIZE
> and CONFIG_SYS_SPI_KERNEL_OFFS which will be used in SPL
> spi mode.

Please add proper description about memory allots of SPI-SPL configs.

>
> Signed-off-by: Siva Durga Prasad Paladugu <sivadur at xilinx.com>
> ---
> - This patch is based on u-boot-spi/master branch
> ---
>  include/configs/zynq-common.h | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
> index f6dd03b..7e7bb7f 100644
> --- a/include/configs/zynq-common.h
> +++ b/include/configs/zynq-common.h
> @@ -340,6 +340,8 @@
>
>  /* Address in RAM where the parameters must be copied by SPL. */
>  #define CONFIG_SYS_SPL_ARGS_ADDR       0x10000000
> +#define CONFIG_SYS_SPI_ARGS_OFFS       0x1100000
> +#define CONFIG_SYS_SPI_ARGS_SIZE       0x80000

These needs to defined it in SPI-SPL so add them in SPL part of
CONFIG_ZYNQ_QSPI, that is only reasonable place as SPI-SPL variant in
zynq boards used for qspi connected flash's. Any comments please
share.

>
>  #define CONFIG_SPL_FS_LOAD_ARGS_NAME           "system.dtb"
>  #define CONFIG_SPL_FS_LOAD_KERNEL_NAME         "uImage"
> @@ -359,6 +361,8 @@
>
>  /* for booting directly linux */
>  #define CONFIG_SPL_OS_BOOT
> +#define CONFIG_SYS_SPI_KERNEL_OFFS     (CONFIG_SYS_SPI_ARGS_OFFS + \
> +                                        CONFIG_SYS_SPI_ARGS_SIZE)
>
>  /* SP location before relocation, must use scratch RAM */
>  #define CONFIG_SPL_TEXT_BASE   0x0
> --
> 2.1.1
>

thanks!
-- 
Jagan | openedev.


More information about the U-Boot mailing list