]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: imx9: support env in fat and ext4
authorOleksandr Suvorov <oleksandr.suvorov@foundries.io>
Tue, 11 Apr 2023 17:27:41 +0000 (20:27 +0300)
committerStefano Babic <sbabic@denx.de>
Tue, 11 Jul 2023 12:40:02 +0000 (14:40 +0200)
commitd31ffce81db8a5a5687cf13d00cf9ecf2805f658
treeafd74b8070e20c4a50ee5d4f4955f9c945f5bb77
parent04e08e3c549d065bd49e3d5c23a944a4e0da0a0a
ARM: imx9: support env in fat and ext4

Change boot device logic to also allow environment stored in fat and
in ext4 when booting from SD or eMMC.

As the boot device check for SD and for eMMC was depending on
ENV_IS_IN_MMC being defined, change the ifdef blocks at
env_get_location to use IS_ENABLED instead for all modes, returning
NOWHERE when no valid mode is found.

This solution is based on (with added SPL support):
Link: https://lore.kernel.org/all/20211020191626.3648540-1-ricardo@foundries.io/
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx9/soc.c