summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoao Paulo Goncalves <joao.goncalves@toradex.com>2023-10-11 14:21:33 -0300
committerJoao Paulo Goncalves <joao.goncalves@toradex.com>2023-10-11 15:06:08 -0300
commit7234fc0743e32292de68a384c3d9880cba51d4c5 (patch)
tree96edce35f41275e1be039a866c94505c017a3a91
parent2ece87c279e798ba91f4d88c3dfb74998e2457ba (diff)
imx8: Enable env is nowhere for apalis and colibri
The downstream code will not build when the environment on MMC is not defined. This change makes it possible to use ENV_IS_NOWHERE for recovery mode without the need to enable the environment in MMC downstream. This is the same correction of commit 8bb483b3cb3d ("toradex: env: Enable env is nowhere for imx8 modules") that solve it for imx8mm/mp. The difference is that imx8 modules define the function on another file. 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/imx8/cpu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c
index 10fcada0cb..a94cd0df40 100644
--- a/arch/arm/mach-imx/imx8/cpu.c
+++ b/arch/arm/mach-imx/imx8/cpu.c
@@ -33,6 +33,10 @@
#include <asm/mach-imx/imx_vservice.h>
#include <usb/ci_udc.h>
+#ifndef CONFIG_SYS_MMC_ENV_DEV
+#define CONFIG_SYS_MMC_ENV_DEV 0
+#endif
+
DECLARE_GLOBAL_DATA_PTR;
#define BT_PASSOVER_TAG 0x504F