diff mbox series

[v3,1/3] armv8: layerscape: Enable ext4 environment storage

Message ID 20231128103457.45802-2-artur@conclusive.pl
State Changes Requested
Delegated to: Sean Anderson
Headers show
Series Conclusive WHLE-LS1 support (was: Conclusive WHLE-LS1046A support) | expand

Commit Message

Artur Rojek Nov. 28, 2023, 10:34 a.m. UTC
From: Jakub Klama <jakub@conclusive.pl>

Some boards keep their environment on MMC storage within an ext4
partition.

Signed-off-by: Jakub Klama <jakub@conclusive.pl>
Signed-off-by: Artur Rojek <artur@conclusive.pl>
Reviewed-by: Tom Rini <trini@konsulko.com>
---

v2-v3: no change

 arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
index 12d31184ad91..3775cb493732 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
@@ -857,6 +857,11 @@  enum env_location arch_env_get_location(enum env_operation op, int prio)
 		break;
 	}
 
+#ifdef CONFIG_ENV_IS_IN_EXT4
+	if (env_loc == ENVL_MMC)
+		return ENVL_EXT4;
+#endif
+
 	return env_loc;
 }
 #endif	/* CONFIG_TFABOOT */