All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/9] spl: ufs: add UFS boot support for Qualcomm Snapdragon in SPL
@ 2026-10-19 10:48 Balaji Selvanathan
  2026-10-19 10:48 ` [PATCH v4 1/9] spl: ufs: rename SPL_UFS_SUPPORT config to SPL_UFS Balaji Selvanathan
                   ` (8 more replies)
  0 siblings, 9 replies; 17+ messages in thread
From: Balaji Selvanathan @ 2026-10-19 10:48 UTC (permalink / raw)
  To: u-boot, Simon Glass, Sumit Garg, u-boot-qcom
  Cc: Tom Rini, Neil Armstrong, Bhupesh Sharma, Neha Malcom Francis,
	Johan Jonker, Casey Connolly, Carlo Caione, Anshul Dalal,
	Petr Hodina, Michael Srba, Jonas Karlman, Quentin Schulz,
	Kever Yang, Varadarajan Narayanan, David Lechner,
	Heinrich Schuchardt, Alexey Charkov, Peng Fan, Daniel Golle,
	Balaji Selvanathan, Sumit Garg

On Lemans EVK, XBL hands over to U-Boot SPL, which loads the
TFA-OPTEE-U-Boot FIT image from a UFS partition. SPL_UFS
currently only works on the RK3576 boards, which load U-Boot from a
fixed sector.

This series builds the UFS/SCSI core in SPL whenever SPL_UFS is set,
adds the Qualcomm UFS host controller and QMP PHY drivers for SPL, and
lets the SPL UFS loader find U-Boot by partition name or number.

This series does not depend on my other SPL series. It is
build tested on rock-4d-rk3576 and nanopi-m5-rk3576, the two existing
SPL_UFS users.

Signed-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
---
Changes in v4:
- Drop the five non-UFS patches (GENI, pinctrl, serial,
  PMIC/SPMI) to be sent separately
- Rewrite the cover letter
- Build scsi/ and ufs/ with CONFIG_$(PHASE_)UFS and drop the
  unconditional "obj-y += ufs/"
- Add a SPL_PARTITION_GET_INFO symbol, selected by its users, instead
  of extending the defined() chain in part.h
- Move the Makefile/Kconfig patches ahead of the loader changes
- Link to v3: https://lore.kernel.org/u-boot/20260615-spl_ufs-v3-0-360bceb29596@oss.qualcomm.com/

Changes in v3:
- Simplified partition selection logic in ufs_load_image_raw_partition
- Removed spl: ufs: add SPL_UFS_FS Kconfig and filesystem boot stub
- Link to v2: https://lore.kernel.org/u-boot/20260606-spl_ufs-v2-0-72fed24ef01b@oss.qualcomm.com/

Changes in v2:
- Renamed SPL_UFS_SUPPORT to SPL_UFS for naming consistency.
- Added SPL_UFS_RAW_U_BOOT_USE_SECTOR config to clearly choose between
  sector or partition
- Refactored the codes in common/spl/spl_ufs.c to use helper functions
  to make the codes readable and clear
- Add the filesystem support in SPL UFS as a seperate patch
- Correct SPL_UFS_SUPPORT config name in lib/Makefile
- Added SPL_QCOM_GENI Kconfig and $(PHASE_) support for GENI
- Added SPL_PINCTRL_QCOM_* symbols and $(PHASE_) Makefile
- Added SPL_MSM_SERIAL and SPL_MSM_GENI_SERIAL Kconfig
- Updated Qualcomm PMIC and SPMI Makefiles to use $(PHASE_)
- Link to v1: https://lore.kernel.org/u-boot/20260409-spl_ufs_only-v1-0-f7e0e243d805@oss.qualcomm.com/

---
Balaji Selvanathan (9):
      spl: ufs: rename SPL_UFS_SUPPORT config to SPL_UFS
      lib: update charset.o build rule to use SPL_UFS
      configs: rename SPL_UFS_SUPPORT to SPL_UFS
      ufs: qcom: add SPL_UFS_QCOM Kconfig and SPL build support
      phy: qcom: add SPL_PHY_QCOM_QMP_UFS for SPL UFS boot
      spl: ufs: add Kconfig choice for U-Boot location method
      part: introduce SPL_PARTITION_GET_INFO and select it from consumers
      spl: add UFS boot mode defines to spl.h
      spl: ufs: add partition-based U-Boot loading support

 common/spl/Kconfig                 |  57 ++++++++++++--
 common/spl/Makefile                |   2 +-
 common/spl/spl_ufs.c               | 153 ++++++++++++++++++++++++++++++++-----
 configs/nanopi-m5-rk3576_defconfig |   2 +-
 configs/rock-4d-rk3576_defconfig   |   2 +-
 disk/Kconfig                       |   8 ++
 drivers/Makefile                   |   3 +-
 drivers/phy/qcom/Kconfig           |   7 ++
 drivers/phy/qcom/Makefile          |   2 +-
 drivers/scsi/Makefile              |   2 +-
 drivers/ufs/Kconfig                |  12 ++-
 drivers/ufs/Makefile               |   4 +-
 include/part.h                     |   4 +-
 include/spl.h                      |   4 +
 lib/Makefile                       |   2 +-
 15 files changed, 224 insertions(+), 40 deletions(-)
---
base-commit: 8d534cec0cc0109a37c0ded8854da03f1526dc0e
change-id: 20260615-spl_ufs-5c2c4eb327aa

Best regards,
-- 
Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2026-10-20  8:57 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.