ARM: imx8m: support env in fat and ext4
authorRicardo Salveti <ricardo@foundries.io>
Wed, 20 Oct 2021 19:16:26 +0000 (16:16 -0300)
committerStefano Babic <sbabic@denx.de>
Sat, 5 Feb 2022 12:38:38 +0000 (13:38 +0100)
commit89ca5a7ee1899eec5b2bb7dcfd3ff9cb78231885
tree5a9a383f9ffa3e46c054ac7749bde96d8a5cb391
parentaf602631e064a103d0254d4592784fe589c9a6bb
ARM: imx8m: 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 from 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.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/mach-imx/imx8m/soc.c