]> git.baikalelectronics.ru Git - uboot.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)
commit27a4aa9d1fcfb7c045dd3cee8328729e55a46287
treeafd74b8070e20c4a50ee5d4f4955f9c945f5bb77
parentfd74b3760a1e52ea2209a7f1620ccbc61a693236
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