diff mbox

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

Message ID 1441878978-31108-1-git-send-email-sivadur@xilinx.com
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Siva Durga Prasad Paladugu Sept. 10, 2015, 9:56 a.m. UTC
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.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
---
- This patch is based on u-boot-spi/master branch
---
 include/configs/zynq-common.h | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Jagan Teki Sept. 13, 2015, 4:03 p.m. UTC | #1
Hi Siva,

On 10 September 2015 at 15:26, Siva Durga Prasad Paladugu
<siva.durga.paladugu@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@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!
diff mbox

Patch

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
 
 #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