[U-Boot] [PATCH] zynq-common: Define spi args offset and size
Siva Durga Prasad Paladugu
siva.durga.paladugu at xilinx.com
Thu Sep 10 11:56:18 CEST 2015
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 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
#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
More information about the U-Boot
mailing list