zynq-common: Add SPL SPI offset, size configs
authorSiva Durga Prasad Paladugu <sivadur@xilinx.com>
Mon, 14 Sep 2015 07:29:08 +0000 (12:59 +0530)
committerJagan Teki <jteki@openedev.com>
Sun, 25 Oct 2015 14:47:03 +0000 (20:17 +0530)
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. These macros defines the device tree offset, size
and the kernel image offset in flash respectively.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
include/configs/zynq-common.h

index acb8670b333d704c06b8130027868b8283233a24..ca5ef04302347a27fb17d722227b4561ba3b6f65 100644 (file)
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SPL_SPI_FLASH_SUPPORT
 #define CONFIG_SYS_SPI_U_BOOT_OFFS     0x100000
+#define CONFIG_SYS_SPI_ARGS_OFFS       0x200000
+#define CONFIG_SYS_SPI_ARGS_SIZE       0x80000
+#define CONFIG_SYS_SPI_KERNEL_OFFS     (CONFIG_SYS_SPI_ARGS_OFFS + \
+                                       CONFIG_SYS_SPI_ARGS_SIZE)
 #endif
 
 /* for booting directly linux */