* [PATCH u-boot v2019.04-aspeed-openbmc v1 1/2] ast2600: spl: Fixes boot from RAM device
@ 2021-06-23 3:57 Troy Lee
2021-06-23 3:57 ` [PATCH u-boot v2019.04-aspeed-openbmc v1 2/2] ast2600: Provide u-boot FIT image boot from RAM offset Troy Lee
0 siblings, 1 reply; 2+ messages in thread
From: Troy Lee @ 2021-06-23 3:57 UTC (permalink / raw)
To: leetroy, openbmc, joel
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 <troy_lee@aspeedtech.com>
---
arch/arm/mach-aspeed/ast2600/spl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-aspeed/ast2600/spl.c b/arch/arm/mach-aspeed/ast2600/spl.c
index 778b326755..c759a7575d 100644
--- a/arch/arm/mach-aspeed/ast2600/spl.c
+++ b/arch/arm/mach-aspeed/ast2600/spl.c
@@ -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;
}
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH u-boot v2019.04-aspeed-openbmc v1 2/2] ast2600: Provide u-boot FIT image boot from RAM offset
2021-06-23 3:57 [PATCH u-boot v2019.04-aspeed-openbmc v1 1/2] ast2600: spl: Fixes boot from RAM device Troy Lee
@ 2021-06-23 3:57 ` Troy Lee
0 siblings, 0 replies; 2+ messages in thread
From: Troy Lee @ 2021-06-23 3:57 UTC (permalink / raw)
To: leetroy, openbmc, joel
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 <troy_lee@aspeedtech.com>
---
include/configs/evb_ast2600_spl.h | 1 +
include/configs/evb_ast2600a1_spl.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/include/configs/evb_ast2600_spl.h b/include/configs/evb_ast2600_spl.h
index a39988820a..f4f1b46d89 100644
--- a/include/configs/evb_ast2600_spl.h
+++ b/include/configs/evb_ast2600_spl.h
@@ -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
diff --git a/include/configs/evb_ast2600a1_spl.h b/include/configs/evb_ast2600a1_spl.h
index a39988820a..f4f1b46d89 100644
--- a/include/configs/evb_ast2600a1_spl.h
+++ b/include/configs/evb_ast2600a1_spl.h
@@ -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
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-23 3:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-23 3:57 [PATCH u-boot v2019.04-aspeed-openbmc v1 1/2] ast2600: spl: Fixes boot from RAM device Troy Lee
2021-06-23 3:57 ` [PATCH u-boot v2019.04-aspeed-openbmc v1 2/2] ast2600: Provide u-boot FIT image boot from RAM offset Troy Lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).