Skip to contentSkip to conversation

ast2600: spl: Fixes boot from RAM device

PATCH New Troy Lee 1 participant 2 messages Jun 23, 2021

Subsystems (3)
lore
Share & tools
lore

Troy Lee

author
#0 lore raw

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")
---
 arch/arm/mach-aspeed/ast2600/spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-aspeed/ast2600/spl.c +1 -1
index 778b326755..c759a7575d 100644
@@ -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
author
#1 lore raw

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.

---
 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
index a39988820a..f4f1b46d89 100644
@@ -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
index a39988820a..f4f1b46d89 100644
@@ -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