u-boot/arch
Martyn Welch 7c34b71a42 arm64:mach-k3 am625_init: Correct boot mode detection
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@collabora.com>
2023-01-10 15:39:06 -05:00
..
arc Convert CONFIG_STANDALONE_LOAD_ADDR to Kconfig 2022-12-22 10:31:48 -05:00
arm arm64:mach-k3 am625_init: Correct boot mode detection 2023-01-10 15:39:06 -05:00
m68k Convert CONFIG_STANDALONE_LOAD_ADDR to Kconfig 2022-12-22 10:31:48 -05:00
microblaze Convert CONFIG_STANDALONE_LOAD_ADDR to Kconfig 2022-12-22 10:31:48 -05:00
mips Convert CONFIG_STANDALONE_LOAD_ADDR to Kconfig 2022-12-22 10:31:48 -05:00
nios2 Convert CONFIG_STANDALONE_LOAD_ADDR to Kconfig 2022-12-22 10:31:48 -05:00
powerpc Merge branch 'next' 2023-01-09 11:30:08 -05:00
riscv Merge branch 'next' 2023-01-09 11:30:08 -05:00
sandbox global: Migrate CONFIG_MALLOC_F_ADDR to CFG 2022-12-23 10:14:51 -05:00
sh global: Migrate CONFIG_BOARDDIR to CFG 2022-12-23 10:07:03 -05:00
x86 global: Migrate CONFIG_X86_REFCODE_RUN_ADDR to CFG 2022-12-23 10:15:13 -05:00
xtensa global: Migrate CONFIG_MAX_MEM_MAPPED to CFG 2022-12-23 10:14:51 -05:00
.gitignore
Kconfig Convert CONFIG_MONITOR_IS_IN_RAM to Kconfig 2022-12-22 10:31:48 -05:00
Kconfig.nxp Convert CONFIG_FLASH_SPANSION_S29WS_N et al to Kconfig 2022-12-22 10:31:48 -05:00
u-boot-elf.lds