[PATCH v8 07/12] mach-snapdragon: Kconfig: changes / additions to support SPL
Tom Rini
trini at konsulko.com
Tue May 19 19:22:25 CEST 2026
On Sat, May 16, 2026 at 08:19:56PM +0200, michael.srba at seznam.cz wrote:
> From: Michael Srba <Michael.Srba at seznam.cz>
>
> Select SUPPORT_SPL so SPL build can be enabled, disable SYSRESET_PSCI in SPL.
> (SPL runs in EL3, so if SPL itself doesn't provide PSCI, nothing else will.)
>
> Also select (SPL_)OF_LIVE and DM_EVENT/SPL_EVENT, which are needed to fix up
> upstream dt to make usb work.
>
> Mirror u-boot proper selections like GPIO and pinctrl to ensure consistent
> behavior, and select SPL_SPRINTF, SPL_LIBCOMMON_SUPPORT etc for similar
> reasons.
>
> Signed-off-by: Michael Srba <Michael.Srba at seznam.cz>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> ---
> arch/arm/Kconfig | 33 ++++++++++++++++++++++++++++++++-
> arch/arm/mach-snapdragon/Kconfig | 10 ++++++++++
> 2 files changed, 42 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 850768282ce..255d2035cdc 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -1136,6 +1136,7 @@ config ARCH_SNAPDRAGON
> bool "Qualcomm Snapdragon SoCs"
> select ARM64
> select DM
> + select DM_EVENT if USB_DWC3_GENERIC
> select DM_GPIO
> select DM_SERIAL
> select DM_RESET
After looking in to what's going on here more, this should be:
select EVENT if OF_LIVE
And is a standalone bug fix. The event in question here lives in
arch/arm/mach-snapdragon/of_fixup.c and is for both USB things and
OP-TEE things (so USB_DWC3_GENERIC is wrong), but desired even if U-Boot
doesn't use USB as the linux kernel will consume this device tree, if I
recall correctly. But next, this only fires on EVT_OF_LIVE_BUILT and not
one of EVT_DM_POST_INIT_[FR] which is what DM_EVENT gates.
All of that said, what exactly is the failure to build you saw in your
series, without the above? I do worry there's something else further
going on here. Thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260519/749c9ed4/attachment.sig>
More information about the U-Boot
mailing list