diff options
author | Joao Paulo Goncalves <joao.goncalves@toradex.com> | 2023-10-06 13:18:48 -0300 |
---|---|---|
committer | Joao Paulo Goncalves <joao.goncalves@toradex.com> | 2023-10-06 13:30:43 -0300 |
commit | 8bb483b3cb3d5186840b702e64ec911962f761bb (patch) | |
tree | 3ef405c77ad267422d42c4ba1a4166a382901144 | |
parent | dc27426aa417af8810c700ca207368e21f726839 (diff) |
toradex: env: Enable env is nowhere for imx8 modules
The downstream code will not build when the environment on MMC is not
defined. Additionally, when the environment on EMMC is defined
simultaneously with ENV_IS_NOWHERE, it takes priority. This change makes
it possible to use ENV_IS_NOWHERE for recovery mode without the need
to enable the environment in MMC downstream.
Upstream-Status: Inappropriate [other]
This change is specific to the downstream code, as the solution in upstream
differs.
Signed-off-by: Joao Paulo Goncalves <joao.goncalves@toradex.com>
-rw-r--r-- | arch/arm/mach-imx/mmc_env.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mmc_env.c b/arch/arm/mach-imx/mmc_env.c index 7012ae9d7b..0c2987dece 100644 --- a/arch/arm/mach-imx/mmc_env.c +++ b/arch/arm/mach-imx/mmc_env.c @@ -10,6 +10,10 @@ #include <asm/mach-imx/boot_mode.h> #include <env.h> +#ifndef CONFIG_SYS_MMC_ENV_DEV +#define CONFIG_SYS_MMC_ENV_DEV 0 +#endif + __weak int board_mmc_get_env_dev(int devno) { return devno; |