All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] mediatek: mt8189: add UFS boot for Genio 520 and 720 SPL
@ 2026-11-06 21:35 David Lechner
  2026-11-06 21:35 ` [PATCH 1/7] tools: mtk_image: add UFS support David Lechner
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: David Lechner @ 2026-11-06 21:35 UTC (permalink / raw)
  To: Ryder Lee, Weijie Gao, Chunfeng Yun, Igor Belwon, Julien Stephan,
	GSS_MTK_Uboot_upstream, Tom Rini, Neil Armstrong, Bhupesh Sharma,
	Neha Malcom Francis, Macpaul Lin, Ilias Apalodimas
  Cc: u-boot, Carlo Caione, David Lechner

Add support for booting the Genio 520 and 720 EVKs from UFS when U-Boot
SPL replaces the platform BL2.

mkimage gains the UFS BootROM image header, and the MediaTek UFS driver
skips its secure monitor calls when running at EL3, as it does in SPL.
SPL can then load the firmware FIT from UFS. A new config fragment,
mt8189-genio-spl-ufs.config, selects the UFS boot and sets the BootROM
image header to UFS. The DDR loader that runs before SPL must also be
built for UFS.

This series depends on:
- "spl: ufs: add UFS boot support for Qualcomm" v4, which adds the
  generic SPL UFS loader:
  https://lore.kernel.org/u-boot/20261019-spl_ufs-v4-0-61432d0b258c@oss.qualcomm.com/
- "mediatek: mt8189: add U-Boot SPL boot for Genio 520 and 720" v2

Tested on the Genio 720 EVK booting from UFS.

Signed-off-by: David Lechner <dlechner@baylibre.com>
---
David Lechner (6):
      ufs: mediatek: skip SiP calls when running at EL3
      arm: dts: mediatek: prepare Genio 520 and 720 UFS for SPL
      arm: mediatek: load the next stage from UFS in SPL
      arm: mediatek: make the BootROM header info configurable
      board: mediatek: add a Genio 520/720 UFS boot config fragment
      doc: board: mediatek: describe booting Genio 520 and 720 from UFS

Fabien Parent (1):
      tools: mtk_image: add UFS support

 arch/arm/dts/mt8371-genio-common-u-boot.dtsi | 17 ++++-
 arch/arm/mach-mediatek/Kconfig               |  7 +-
 arch/arm/mach-mediatek/spl.c                 |  2 +
 board/mediatek/MAINTAINERS                   |  1 +
 board/mediatek/mt8189-genio-spl-ufs.config   | 10 +++
 doc/README.mediatek                          |  1 +
 doc/board/mediatek/mt8189-genio-evk.rst      | 39 +++++++++--
 drivers/ufs/ufs-mediatek-sip.h               |  5 ++
 tools/mtk_image.c                            | 97 ++++++++++++++++++++++++++++
 tools/mtk_image.h                            | 16 ++++-
 10 files changed, 185 insertions(+), 10 deletions(-)
---
base-commit: d1d45c926a571fb6c1e6d7105c280833646915ea
base-tree: https://git.u-boot-project.org/u-boot/u-boot.git main
change-id: 20261013-mtk-genio-720-spl-ufs-4ac6af78de70
prerequisite-message-id: <20261019-spl_ufs-v4-0-61432d0b258c@oss.qualcomm.com>
prerequisite-patch-id: 8adf07351c5a4eb61976ceeced2d0ab0eadf235d
prerequisite-patch-id: 55ead548e0a7c82c4296cc9b9fa047f110c1e306
prerequisite-patch-id: 34bbdb130ae694420b954f41a536b8eb8df77791
prerequisite-patch-id: 5a62f8304a1790b31accf47af84815bffaa92b89
prerequisite-patch-id: d2e87bf5a992d19bde372fb230f4589242f12d40
prerequisite-patch-id: 0429aaac18b3a3d564662f2b93aa3af755c880db
prerequisite-patch-id: a577a9e2266f5b16dd0bf1b8b4312952f736380d
prerequisite-patch-id: 3223b00fa7e9c330054e19f256b4e601008160f2
prerequisite-patch-id: f1cf16250799f803bde22d6dae704cc5338ec76c
prerequisite-change-id: 20261013-mtk-genio-720-spl-1620416c6224:v2
prerequisite-patch-id: f109e3e09ffe96d42ba64923f72a2081764a0837
prerequisite-patch-id: 1b7d8c90462884a830b2c4e43bbc7b7d698d7410
prerequisite-patch-id: 8f4cb6976f7c28cf7c2acf3e81ce240e47dcb113
prerequisite-patch-id: 789a3616e548a97eb48ffd62cd59f114bda6d94b
prerequisite-patch-id: 521533b5bb8d1e145d036ea7f9f9e8a7f0856e78
prerequisite-patch-id: 7debdd01277d15f23a983475c7b7bbf05af82175

Best regards,
--  
David Lechner <dlechner@baylibre.com>


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

end of thread, other threads:[~2026-11-17 14:36 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-06 21:35 [PATCH 0/7] mediatek: mt8189: add UFS boot for Genio 520 and 720 SPL David Lechner
2026-11-06 21:35 ` [PATCH 1/7] tools: mtk_image: add UFS support David Lechner
2026-11-11 19:04   ` Carlo Caione
2026-11-06 21:35 ` [PATCH 2/7] ufs: mediatek: skip SiP calls when running at EL3 David Lechner
2026-11-11 19:04   ` Carlo Caione
2026-11-16 22:40     ` David Lechner
2026-11-17  6:24       ` Carlo Caione
2026-11-17 14:36         ` David Lechner
2026-11-06 21:35 ` [PATCH 3/7] arm: dts: mediatek: prepare Genio 520 and 720 UFS for SPL David Lechner
2026-11-06 21:35 ` [PATCH 4/7] arm: mediatek: load the next stage from UFS in SPL David Lechner
2026-11-06 21:35 ` [PATCH 5/7] arm: mediatek: make the BootROM header info configurable David Lechner
2026-11-11 19:04   ` Carlo Caione
2026-11-11 20:03     ` David Lechner
2026-11-06 21:35 ` [PATCH 6/7] board: mediatek: add a Genio 520/720 UFS boot config fragment David Lechner
2026-11-06 21:35 ` [PATCH 7/7] doc: board: mediatek: describe booting Genio 520 and 720 from UFS David Lechner

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.