[PATCH 1/2] arm64:mach-k3 am625_init: Correct boot mode detection

Tom Rini trini at konsulko.com
Wed Jan 11 03:16:44 CET 2023


On Tue, Dec 20, 2022 at 06:38:18PM +0000, Martyn Welch wrote:

> The boot mode detection assumes that BOOT_DEVICE_MMC2 should always
> result in MMCSD_MODE_FS, but MMCSD_MODE_RAW is also a valid option for
> this port.
> 
> The current logic also avoids looking at the bootmode pin strapping,
> which should be the primary means of determining whether a device is
> being booted in MMCSD_MODE_EMMCBOOT mode.
> 
> Switch around the logic to check the boot mode to determine whether the
> eMMC boot mode is expected or MMC/SD boot mode. From there we can look
> at the boot mode config if in MMC/SD boot mode to determine whether to
> attempt RAW or FS based booting.
> 
> This change allows U-Boot to also be successfully booted from RAW
> offsets in addition to from a filesystem.
> 
> Signed-off-by: Martyn Welch <martyn.welch at collabora.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230110/2123d952/attachment.sig>


More information about the U-Boot mailing list