From: Tom Rini <trini@konsulko.com>
To: michael.srba@seznam.cz
Cc: u-boot@lists.denx.de, Sumit Garg <sumit.garg@kernel.org>,
u-boot-qcom@groups.io,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Simon Glass <sjg@chromium.org>,
Sughosh Ganu <sughosh.ganu@arm.com>,
Anshul Dalal <anshuld@ti.com>, Peng Fan <peng.fan@nxp.com>,
Mattijs Korpershoek <mkorpershoek@kernel.org>,
Quentin Schulz <quentin.schulz@cherry.de>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Andrew Davis <afd@ti.com>, Hrushikesh Salunke <h-salunke@ti.com>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Ye Li <ye.li@nxp.com>, Andre Przywara <andre.przywara@arm.com>,
Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>,
Leo Yu-Chi Liang <ycliang@andestech.com>,
Andrew Goodbody <andrew.goodbody@linaro.org>,
Dhruva Gole <d-gole@ti.com>,
Kaustabh Chakraborty <kauschluss@disroot.org>,
Jerome Forissier <jerome.forissier@arm.com>,
Heiko Schocher <hs@nabladev.com>,
Marek Vasut <marek.vasut+renesas@mailbox.org>,
Lukasz Majewski <lukma@denx.de>,
Mateusz Kulikowski <mateusz.kulikowski@gmail.com>,
Dinesh Maniyam <dinesh.maniyam@altera.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Patrice Chotard <patrice.chotard@foss.st.com>,
Patrick Delaunay <patrick.delaunay@foss.st.com>,
Michal Simek <michal.simek@amd.com>, Yao Zi <me@ziyao.cc>,
Peter Korsgaard <peter@korsgaard.com>,
Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>,
Casey Connolly <casey.connolly@linaro.org>,
Tingting Meng <tingting.meng@altera.com>,
Tien Fong Chee <tien.fong.chee@altera.com>,
Alice Guo <alice.guo@nxp.com>, George Chan <gchan9527@gmail.com>,
Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
Subject: Re: [PATCH 4/5] mach-snapdragon: support building SPL
Date: Mon, 6 Apr 2026 08:27:37 -0600 [thread overview]
Message-ID: <20260406142737.GN41863@bill-the-cat> (raw)
In-Reply-To: <20260404-qcom_spl-v1-4-9e6c2ac66587@seznam.cz>
[-- Attachment #1: Type: text/plain, Size: 3329 bytes --]
On Sat, Apr 04, 2026 at 01:18:19AM +0200, michael.srba@seznam.cz wrote:
> From: Michael Srba <Michael.Srba@seznam.cz>
>
> Initially sdm845 support is added, and only usb boot
> is supported for the next stage.
>
> Signed-off-by: Michael Srba <Michael.Srba@seznam.cz>
[snip]
> diff --git a/arch/arm/mach-snapdragon/Kconfig b/arch/arm/mach-snapdragon/Kconfig
> index 976c0e35fce..938e6ebd8bf 100644
> --- a/arch/arm/mach-snapdragon/Kconfig
> +++ b/arch/arm/mach-snapdragon/Kconfig
> @@ -1,6 +1,24 @@
> if ARCH_SNAPDRAGON
>
> +# SoC specific SRAM addresses
> +
> +# sdm845
> +SDM845_BOOT_IMEM_BASE := 0x14800000
> +SDM845_BOOT_IMEM_SIZE := 0x180000
> +# we may not be able to use the whole BOOT_IMEM depending on the whitelisted regions hardcoded in PBL
> +# (we could technically relocate ourselves after the fact)
> +SDM845_BOOT_IMEM_OFFSET := 0x3f000
> +SDM845_BOOT_IMEM_USABLE_SIZE := 0xc1000
> +# technically the below would work, except the memory from 0x14833000 to 0x1483F000 gets trashed
> +# between the ELF getting loaded and XBL_SEC jumping to our code
> +#SDM845_BOOT_IMEM_OFFSET := 0x16000
> +#SDM845_BOOT_IMEM_USABLE_SIZE := 0xea000
> +SDM845_OCIMEM_BASE := 0x14680000
> +SDM845_OCIMEM_SIZE := 0x00040000
> +SDM845_OCIMEM_END := $(shell, printf "0x%x\n" "$(dollar)(($(SDM845_OCIMEM_BASE) + $(SDM845_OCIMEM_SIZE) - 1))")
I didn't know Kconfig even allowed this. And I *really* don't like it,
and I think it's going in the wrong direction with respect to being able
to configure a system. If these are configurable, then they need to be
"hex" type "config" options, and then used later on. Otherwise they
should just be the evaluated value as "default ... if ..." later on,
instead.
[snip]
> +config QCOM_SPL
> + bool "Enable SPL for Snapdragon SOCs"
> + select SUPPORT_SPL
> + select ARMV8_SPL_EXCEPTION_VECTORS
> + select ENABLE_ARM_SOC_BOOT0_HOOK
> + select SPL
> + select SPL_DM
> + select SPL_DM_GPIO
> + select SPL_DM_PMIC
> + select SPL_DM_USB_GADGET
> + select SPL_ENV_SUPPORT
> + select SPL_GPIO
> + select SPL_HAS_BSS_LINKER_SECTION
> + select SPL_LIBCOMMON_SUPPORT
> + select SPL_LIBDISK_SUPPORT
> + select SPL_LIBGENERIC_SUPPORT
> + select SPL_MMC
> + select SPL_OF_REAL
> + select SPL_OF_CONTROL
> + select SPL_PINCONF
> + select SPL_PINCTRL
> + select SPL_PINCTRL_FULL
> + select SPL_PINCTRL_GENERIC
> + select SPL_PINCONF_RECURSIVE
> + select SPL_PINMUX
> + select SPL_SPRINTF
> + select SPL_STRTO
> + select SPL_USB_GADGET
This should be in the appropriate defconfig, or a config fragment if
re-used a lot. Or mirroring other platforms, as part of the stanza for
TARGET_... (or ARCH_...) as needed.
[snip]
> diff --git a/doc/board/qualcomm/spl.rst b/doc/board/qualcomm/spl.rst
> new file mode 100644
> index 00000000000..817c76b659e
> --- /dev/null
> +++ b/doc/board/qualcomm/spl.rst
> @@ -0,0 +1,70 @@
> +.. SPDX-License-Identifier: GPL-2.0+
> +.. sectionauthor:: Michael Srba <Michael.Srba@seznam.cz>
> +
> +======================================
> +Booting U-Boot SPL on Qualcomm SoCs
> +======================================
> +
> +Overview
> +----------
These are style errors that will trip up CI when it builds the docs.
Please run "make htmldocs KDOC_WERROR=1" for v2, thanks.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-04-06 16:51 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-03 23:18 [PATCH 0/5] Add SPL support for Qualcomm platforms, starting with sdm845 michael.srba
2026-04-03 23:18 ` [PATCH 1/5] Makefile: add SPL_REMAKE_ELF_LDSCRIPT feature michael.srba
2026-04-06 15:50 ` Simon Glass
2026-04-06 22:43 ` Michael Srba
2026-04-12 12:04 ` Simon Glass
2026-04-13 6:22 ` Michal Simek
2026-04-03 23:18 ` [PATCH 2/5] of_live: support in SPL michael.srba
2026-04-06 14:20 ` Tom Rini
2026-04-06 15:51 ` Simon Glass
2026-04-06 22:57 ` Michael Srba
2026-04-03 23:18 ` [PATCH 3/5] drivers: allow clk_stub and spmi " michael.srba
2026-04-06 14:21 ` Tom Rini
2026-04-06 15:52 ` Simon Glass
2026-04-03 23:18 ` [PATCH 4/5] mach-snapdragon: support building SPL michael.srba
2026-04-06 14:27 ` Tom Rini [this message]
2026-04-08 17:03 ` Michael Srba
2026-04-08 17:44 ` Tom Rini
2026-04-06 15:47 ` Simon Glass
2026-04-08 8:52 ` Casey Connolly
2026-04-03 23:18 ` [PATCH 5/5] dts: add empty .dtsi for shift-axolotl michael.srba
2026-04-06 15:53 ` Simon Glass
2026-04-06 22:54 ` Michael Srba
2026-04-06 15:48 ` [0/5] Add SPL support for Qualcomm platforms, starting with sdm845 Simon Glass
2026-04-06 23:53 ` Michael Srba
2026-04-07 8:12 ` [PATCH 0/5] " Sumit Garg
2026-04-08 18:16 ` Michael Srba
2026-04-13 10:25 ` Sumit Garg
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=20260406142737.GN41863@bill-the-cat \
--to=trini@konsulko.com \
--cc=afd@ti.com \
--cc=alice.guo@nxp.com \
--cc=alif.zakuan.yuslaimi@altera.com \
--cc=andre.przywara@arm.com \
--cc=andrew.goodbody@linaro.org \
--cc=anshuld@ti.com \
--cc=balaji.selvanathan@oss.qualcomm.com \
--cc=casey.connolly@linaro.org \
--cc=d-gole@ti.com \
--cc=dario.binacchi@amarulasolutions.com \
--cc=dinesh.maniyam@altera.com \
--cc=gchan9527@gmail.com \
--cc=h-salunke@ti.com \
--cc=hs@nabladev.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jerome.forissier@arm.com \
--cc=kauschluss@disroot.org \
--cc=lukma@denx.de \
--cc=marek.vasut+renesas@mailbox.org \
--cc=mateusz.kulikowski@gmail.com \
--cc=me@ziyao.cc \
--cc=michael.srba@seznam.cz \
--cc=michal.simek@amd.com \
--cc=mkorpershoek@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=patrice.chotard@foss.st.com \
--cc=patrick.delaunay@foss.st.com \
--cc=peng.fan@nxp.com \
--cc=peter@korsgaard.com \
--cc=quentin.schulz@cherry.de \
--cc=rayagonda.kokatanur@broadcom.com \
--cc=sjg@chromium.org \
--cc=sughosh.ganu@arm.com \
--cc=sumit.garg@kernel.org \
--cc=tien.fong.chee@altera.com \
--cc=tingting.meng@altera.com \
--cc=u-boot-qcom@groups.io \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
--cc=ycliang@andestech.com \
--cc=ye.li@nxp.com \
/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