From 7234fc0743e32292de68a384c3d9880cba51d4c5 Mon Sep 17 00:00:00 2001 From: Joao Paulo Goncalves Date: Wed, 11 Oct 2023 14:21:33 -0300 Subject: 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 --- arch/arm/mach-imx/imx8/cpu.c | 4 ++++ 1 file changed, 4 insertions(+) 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 #include +#ifndef CONFIG_SYS_MMC_ENV_DEV +#define CONFIG_SYS_MMC_ENV_DEV 0 +#endif + DECLARE_GLOBAL_DATA_PTR; #define BT_PASSOVER_TAG 0x504F -- cgit v1.2.3