From: Neil Armstrong <neil.armstrong@linaro.org>
To: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>,
u-boot@lists.u-boot-project.org, Simon Glass <sjg@chromium.org>,
Sumit Garg <sumit.garg@kernel.org>,
u-boot-qcom@groups.io
Cc: Tom Rini <trini@konsulko.com>,
Bhupesh Sharma <bhupesh.linux@gmail.com>,
Neha Malcom Francis <n-francis@ti.com>,
Johan Jonker <jbx6244@gmail.com>,
Casey Connolly <casey.connolly@linaro.org>,
Carlo Caione <ccaione@baylibre.com>,
Anshul Dalal <anshuld@ti.com>,
Petr Hodina <petr.hodina@protonmail.com>,
Michael Srba <Michael.Srba@seznam.cz>,
Jonas Karlman <jonas@kwiboo.se>,
Quentin Schulz <u-boot@0leil.net>,
Kever Yang <kever.yang@rock-chips.com>,
Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>,
David Lechner <dlechner@baylibre.com>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Alexey Charkov <alchark@flipper.net>, Peng Fan <peng.fan@nxp.com>,
Daniel Golle <daniel@makrotopia.org>
Subject: Re: [PATCH v4 6/9] spl: ufs: add Kconfig choice for U-Boot location method
Date: Tue, 20 Oct 2026 10:53:17 +0200 [thread overview]
Message-ID: <138fe2d0-fe32-4a32-b9c7-3dfd7129164d@linaro.org> (raw)
In-Reply-To: <20261019-spl_ufs-v4-6-61432d0b258c@oss.qualcomm.com>
On 10/19/26 12:49, Balaji Selvanathan wrote:
> Replace the single SPL_UFS_RAW_U_BOOT_SECTOR config with a Kconfig
> choice that lets the user select how U-Boot is located on the UFS
> LUN: by absolute sector offset or by partition.
>
> The sector-based path (SPL_UFS_RAW_U_BOOT_USE_SECTOR) retains the
> existing SPL_UFS_RAW_U_BOOT_SECTOR option with an explicit default
> of 0x0.
>
> The partition-based path (SPL_UFS_RAW_U_BOOT_USE_PARTITION) adds
> SPL_UFS_RAW_U_BOOT_PARTITION_NAME and
> SPL_UFS_RAW_U_BOOT_PARTITION_NUM, allowing U-Boot to be loaded by
> partition name (tried first) or partition number as a fallback.
> SPL_LIBDISK_SUPPORT is automatically selected when this path is
> chosen.
>
> Signed-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
> ---
> Changes in v4:
> - No changes
>
> Changes in v3:
> - No changes
>
> Changes in v2:
> - Introduce SPL_UFS_RAW_U_BOOT_USE_SECTOR to clearly select between
> sector based or partition based lookup
> ---
> common/spl/Kconfig | 46 +++++++++++++++++++++++++++++++++++++++++++---
> 1 file changed, 43 insertions(+), 3 deletions(-)
>
> diff --git a/common/spl/Kconfig b/common/spl/Kconfig
> index c837f831212..a32c5fd11e6 100644
> --- a/common/spl/Kconfig
> +++ b/common/spl/Kconfig
> @@ -1660,13 +1660,53 @@ config SPL_UFS_RAW_U_BOOT_DEVNUM
> SCSI device number, which might differ from the UFS LUN if you have
> multiple SCSI devices attached and recognized by the SPL.
>
> -config SPL_UFS_RAW_U_BOOT_SECTOR
> - hex "Address on the UFS to load U-Boot from"
> +choice
> + prompt "Method for locating U-Boot on UFS"
> depends on SPL_UFS
> + default SPL_UFS_RAW_U_BOOT_USE_SECTOR
> +
> +config SPL_UFS_RAW_U_BOOT_USE_SECTOR
> + bool "UFS raw mode: by sector"
> + help
> + Use absolute sector number for specifying U-Boot location on UFS LUN.
> + When selected, SPL_UFS_RAW_U_BOOT_SECTOR specifies the sector offset.
> +
> +config SPL_UFS_RAW_U_BOOT_USE_PARTITION
> + bool "UFS raw mode: by partition"
> + select SPL_LIBDISK_SUPPORT
> + help
> + Use a partition for loading U-Boot when using UFS in raw mode.
> + You can specify either a partition name or partition number.
> +
> +endchoice
> +
> +config SPL_UFS_RAW_U_BOOT_SECTOR
> + hex "Sector offset to load U-Boot from in UFS raw mode"
> + depends on SPL_UFS_RAW_U_BOOT_USE_SECTOR
> default 0x800 if ARCH_ROCKCHIP
> + default 0x0
> help
> - Address on the block device to load U-Boot from.
> + Absolute sector offset on the UFS LUN to load U-Boot from.
> Units: UFS sectors (1 sector = 4096 bytes).
> + Note: Setting this to 0x0 will load from the start of the LUN.
> +
> +config SPL_UFS_RAW_U_BOOT_PARTITION_NAME
> + string "Partition name to load U-Boot from"
> + depends on SPL_UFS_RAW_U_BOOT_USE_PARTITION
> + help
> + Name of the partition to load U-Boot from in UFS raw mode.
> + This is tried before partition number lookup.
> + Leave empty to skip name-based lookup.
> + Example: "boot", "uefi", "dtb_a"
> +
> +config SPL_UFS_RAW_U_BOOT_PARTITION_NUM
> + int "Partition number to load U-Boot from"
> + depends on SPL_UFS_RAW_U_BOOT_USE_PARTITION
> + default 1
> + help
> + Partition number to load U-Boot from when using UFS raw mode
> + with partition support. This is used if partition name is not
> + specified or not found.
>
> config SPL_WATCHDOG
> bool "Support watchdog drivers"
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Thanks,
Neil
next prev parent reply other threads:[~2026-10-20 8:53 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-19 10:48 [PATCH v4 0/9] spl: ufs: add UFS boot support for Qualcomm Snapdragon in SPL Balaji Selvanathan
2026-10-19 10:48 ` [PATCH v4 1/9] spl: ufs: rename SPL_UFS_SUPPORT config to SPL_UFS Balaji Selvanathan
2026-10-19 10:48 ` [PATCH v4 2/9] lib: update charset.o build rule to use SPL_UFS Balaji Selvanathan
2026-10-19 10:58 ` Alexey Charkov
2026-10-19 10:48 ` [PATCH v4 3/9] configs: rename SPL_UFS_SUPPORT to SPL_UFS Balaji Selvanathan
2026-10-20 8:51 ` Neil Armstrong
2026-10-19 10:48 ` [PATCH v4 4/9] ufs: qcom: add SPL_UFS_QCOM Kconfig and SPL build support Balaji Selvanathan
2026-10-20 8:52 ` Neil Armstrong
2026-10-19 10:49 ` [PATCH v4 5/9] phy: qcom: add SPL_PHY_QCOM_QMP_UFS for SPL UFS boot Balaji Selvanathan
2026-10-20 8:52 ` Neil Armstrong
2026-10-19 10:49 ` [PATCH v4 6/9] spl: ufs: add Kconfig choice for U-Boot location method Balaji Selvanathan
2026-10-20 8:53 ` Neil Armstrong [this message]
2026-10-19 10:49 ` [PATCH v4 7/9] part: introduce SPL_PARTITION_GET_INFO and select it from consumers Balaji Selvanathan
2026-10-19 10:49 ` [PATCH v4 8/9] spl: add UFS boot mode defines to spl.h Balaji Selvanathan
2026-10-20 8:57 ` Neil Armstrong
2026-10-19 10:49 ` [PATCH v4 9/9] spl: ufs: add partition-based U-Boot loading support Balaji Selvanathan
2026-10-20 8:56 ` Neil Armstrong
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=138fe2d0-fe32-4a32-b9c7-3dfd7129164d@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=Michael.Srba@seznam.cz \
--cc=alchark@flipper.net \
--cc=anshuld@ti.com \
--cc=balaji.selvanathan@oss.qualcomm.com \
--cc=bhupesh.linux@gmail.com \
--cc=casey.connolly@linaro.org \
--cc=ccaione@baylibre.com \
--cc=daniel@makrotopia.org \
--cc=dlechner@baylibre.com \
--cc=jbx6244@gmail.com \
--cc=jonas@kwiboo.se \
--cc=kever.yang@rock-chips.com \
--cc=n-francis@ti.com \
--cc=peng.fan@nxp.com \
--cc=petr.hodina@protonmail.com \
--cc=sjg@chromium.org \
--cc=sumit.garg@kernel.org \
--cc=trini@konsulko.com \
--cc=u-boot-qcom@groups.io \
--cc=u-boot@0leil.net \
--cc=u-boot@lists.u-boot-project.org \
--cc=varadarajan.narayanan@oss.qualcomm.com \
--cc=xypron.glpk@gmx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.