ast2600: spl: Fixes boot from RAM device
Subsystems (3)
PATCH 1/2 ast2600: spl: Fixes boot from RAM device
Reporting a BOOT_DEVICE_RAM can leverage common/spl/spl_ram.c to bring up u-boot.bin by memory offset 0x00010000.
Fixes 13dd0b0f7273 ("ast2600: spl: Support common boot loader features")
Signed-off-by Troy Lee <[email protected]>
--- arch/arm/mach-aspeed/ast2600/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-aspeed/ast2600/spl.c +1 -1
@@ -66,7 +66,7 @@ u32 spl_boot_device(void)case AST_BOOTMODE_EMMC :return BOOT_DEVICE_MMC1 ;case AST_BOOTMODE_SPI : -return BOOT_DEVICE_SPI ; +return BOOT_DEVICE_RAM ;case AST_BOOTMODE_UART :return BOOT_DEVICE_UART ; }
Signature · 1 line
2.17.1
PATCH 2/2 ast2600: Provide u-boot FIT image boot from RAM offset
If BOOT_DEVICE_RAM is selected, CONFIG_SPL_LOAD_FIT_ADDRESS will be required in loader spl/spl_ram.c, and the offset is 64KiB.
Signed-off-by Troy Lee <[email protected]>
--- include/configs/evb_ast2600_spl.h | 1 + include/configs/evb_ast2600a1_spl.h | 1 + 2 files changed, 2 insertions(+)
include/configs/evb_ast2600_spl.h +1 -0
@@ -29,6 +29,7 @@#define CONFIG_SPL_STACK 0x10016000#define CONFIG_SPL_BSS_START_ADDR 0x90000000#define CONFIG_SPL_BSS_MAX_SIZE 0x00100000 +#define CONFIG_SPL_LOAD_FIT_ADDRESS 0x00010000#define CONFIG_SUPPORT_EMMC_BOOT
include/configs/evb_ast2600a1_spl.h +1 -0
@@ -29,6 +29,7 @@#define CONFIG_SPL_STACK 0x10016000#define CONFIG_SPL_BSS_START_ADDR 0x90000000#define CONFIG_SPL_BSS_MAX_SIZE 0x00100000 +#define CONFIG_SPL_LOAD_FIT_ADDRESS 0x00010000#define CONFIG_SUPPORT_EMMC_BOOT
Signature · 1 line
2.17.1