From: Daniel Palmer <daniel@0x0f.com>
To: u-boot@lists.denx.de
Subject: [RFC PATCH 2/3] arm: mstar: Add option for loading the SPL from the IPL
Date: Mon, 14 Sep 2020 21:04:40 +0900 [thread overview]
Message-ID: <20200914120441.3274829-3-daniel@0x0f.com> (raw)
In-Reply-To: <20200914120441.3274829-1-daniel@0x0f.com>
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@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
next prev parent reply other threads:[~2020-09-14 12:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-14 12:04 [RFC PATCH 0/3] Start of MStar/SigmaStar Arm v7 SoC support Daniel Palmer
2020-09-14 12:04 ` [RFC PATCH 1/3] arm: mstar: Initial MStar/SigmaStar Armv7 " Daniel Palmer
2020-09-14 12:04 ` Daniel Palmer [this message]
2020-09-14 12:04 ` [RFC PATCH 3/3] arm: mstar: Add boot0 header Daniel Palmer
2020-09-14 18:56 ` [RFC PATCH 0/3] Start of MStar/SigmaStar Arm v7 SoC support Tom Rini
2020-09-15 10:14 ` Daniel Palmer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200914120441.3274829-3-daniel@0x0f.com \
--to=daniel@0x0f.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox