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/[email protected]/ - "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 <[email protected]> --- 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: <[email protected]> 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 <[email protected]>
