From 03fb08d4aef8c342b583e148d1b5c4d289c5572f Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Mon, 7 Apr 2025 20:59:51 +0200 Subject: env: Introduce support for MTD Introduce support for env in generic MTD. Currently we only support SPI flash based on the lagacy sf cmd that assume SPI flash are always NOR. This is not the case as to SPI controller also NAND can be attached. To support also these flash scenario, add support for storing and reading ENV from generic MTD device by adding an env driver that base entirely on the MTD api. Introduce a new kconfig CONFIG_ENV_IS_IN_MTD and CONFIG_ENV_MTD_DEV to define the name of the MTD device as exposed by mtd list. Signed-off-by: Christian Marangi --- include/env_internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/env_internal.h b/include/env_internal.h index c1c0727e4d0..ee939ba4293 100644 --- a/include/env_internal.h +++ b/include/env_internal.h @@ -113,6 +113,7 @@ enum env_location { ENVL_ONENAND, ENVL_REMOTE, ENVL_SPI_FLASH, + ENVL_MTD, ENVL_UBI, ENVL_NOWHERE, -- cgit v1.3.1