diff mbox series

[1/2] armv8: layerscape: Enable ext4 environment storage

Message ID 20231116131630.407502-2-artur@conclusive.pl
State Changes Requested
Delegated to: Tom Rini
Headers show
Series Conclusive WHLE-LS1046A support | expand

Commit Message

Artur Rojek Nov. 16, 2023, 1:16 p.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>
---
 arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Tom Rini Nov. 16, 2023, 3:43 p.m. UTC | #1
On Thu, Nov 16, 2023 at 02:16:29PM +0100, Artur Rojek wrote:

> 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>
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 */