diff options
author | Martyn Welch <martyn.welch@collabora.com> | 2022-12-20 18:38:18 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-10 15:39:06 -0500 |
commit | 7c34b71a42817173f3bccf8a85e8a234cc456c8f (patch) | |
tree | 79ab3b9be78e9132d54627f4de43d6d4c278dae4 /lib/zstd/common/compiler.h | |
parent | 92a15f69d5f4dea7f2885c8e06436e50f79710cf (diff) |
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>
Diffstat (limited to 'lib/zstd/common/compiler.h')
0 files changed, 0 insertions, 0 deletions