Commit 8a45b0ba87649b1bad459fb235a843f5588a8251
Committed by
Andreas Bießmann
1 parent
7ca6f36325
Exists in
v2017.01-smarct4x
and in
48 other branches
arm: atmel: sama5d3: add spi spl boot support
Add SPI SPL boot support for sama5d3xek board. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Showing 4 changed files with 17 additions and 0 deletions Side-by-side Diff
arch/arm/cpu/at91-common/spl.c
arch/arm/include/asm/arch-at91/spl.h
board/atmel/sama5d3xek/sama5d3xek.c
include/configs/sama5d3xek.h
... | ... | @@ -258,6 +258,8 @@ |
258 | 258 | #define CONFIG_SPL_SERIAL_SUPPORT |
259 | 259 | |
260 | 260 | #define CONFIG_SPL_BOARD_INIT |
261 | +#define CONFIG_SYS_MONITOR_LEN (512 << 10) | |
262 | + | |
261 | 263 | #ifdef CONFIG_SYS_USE_MMC |
262 | 264 | #define CONFIG_SPL_LDSCRIPT arch/arm/cpu/at91-common/u-boot-spl.lds |
263 | 265 | #define CONFIG_SPL_MMC_SUPPORT |
... | ... | @@ -267,6 +269,15 @@ |
267 | 269 | #define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img" |
268 | 270 | #define CONFIG_SPL_FAT_SUPPORT |
269 | 271 | #define CONFIG_SPL_LIBDISK_SUPPORT |
272 | + | |
273 | +#elif CONFIG_SYS_USE_SERIALFLASH | |
274 | +#define CONFIG_SPL_SPI_SUPPORT | |
275 | +#define CONFIG_SPL_SPI_FLASH_SUPPORT | |
276 | +#define CONFIG_SPL_SPI_LOAD | |
277 | +#define CONFIG_SPL_SPI_BUS 0 | |
278 | +#define CONFIG_SPL_SPI_CS 0 | |
279 | +#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x8400 | |
280 | + | |
270 | 281 | #endif |
271 | 282 | |
272 | 283 | #endif |