[RFC PATCH 2/3] arm: mstar: Add option for loading the SPL from the IPL
Daniel Palmer
daniel at 0x0f.com
Mon Sep 14 14:04:40 CEST 2020
The boot process for MStar/Sigmastar Arm v7 SoCs involves
a small boot rom, then an "IPL" which does hardware setup
and loads another loader called "IPL Cust" that does more
customer specific setup and that then finally loads maybe
u-boot, Linux or an RTOS kernel.
At the moment DDR init isn't implemented in our SPL so we
need to let the boot rom run the standard IPL to do that
for us and then have it load the SPL so we can take over.
We probably can't just load u-boot proper from the IPL
because we are limited to loading ~48KB.
This option will be used by boot0 to add the right magic
string that the IPL expects for IPL Cust instead of the
IPL string the boot rom wants so we can use the IPL
until u-boot gets DDR init support.
Signed-off-by: Daniel Palmer <daniel at 0x0f.com>
---
arch/arm/mach-mstar/Kconfig | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm/mach-mstar/Kconfig b/arch/arm/mach-mstar/Kconfig
index ead9e126cc..a278c042e2 100644
--- a/arch/arm/mach-mstar/Kconfig
+++ b/arch/arm/mach-mstar/Kconfig
@@ -1,10 +1,22 @@
menu "MStar/SigmaStar v7 options"
depends on ARCH_MSTARV7
+config MSTAR_IPL
+ bool "u-boot is being loaded by the vendor IPL"
+ help
+ Say y here if you are loading u-boot via the vendor
+ IPL. Note that the image can only be 48KB or less
+ for the IPL to load it so this only really applies
+ to a SPL/TPL.
+
endmenu
if ARCH_MSTARV7
+config SPL_TEXT_BASE
+ default 0x23c00000 if MSTAR_IPL
+ default 0xa0000000
+
config DEBUG_UART_BASE
default 0x1f221000
--
2.27.0
More information about the U-Boot
mailing list