[PATCH 27/41] Convert CONFIG_MXC_NAND_HWECC to Kconfig

Tom Rini trini at konsulko.com
Fri Dec 2 22:42:37 CET 2022


This converts the following to Kconfig:
   CONFIG_MXC_NAND_HWECC

Signed-off-by: Tom Rini <trini at konsulko.com>
---
 configs/m53menlo_defconfig   | 1 +
 drivers/mtd/nand/raw/Kconfig | 4 ++++
 include/configs/m53menlo.h   | 1 -
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/configs/m53menlo_defconfig b/configs/m53menlo_defconfig
index b70d10433d7d..70df2b5fd243 100644
--- a/configs/m53menlo_defconfig
+++ b/configs/m53menlo_defconfig
@@ -88,6 +88,7 @@ CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_SYS_NAND_USE_FLASH_BBT=y
 CONFIG_NAND_MXC=y
+CONFIG_MXC_NAND_HWECC=y
 CONFIG_SYS_NAND_BLOCK_SIZE=0x20000
 CONFIG_SYS_NAND_PAGE_COUNT=0x40
 CONFIG_SYS_NAND_PAGE_SIZE=0x800
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 338a3562a4ac..c98230ed35b2 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -479,6 +479,10 @@ config SYS_NAND_SIZE
 	depends on NAND_MXC && SPL_NAND_SUPPORT
 	default 268435456
 
+config MXC_NAND_HWECC
+	bool "Hardware ECC support in MXC NAND"
+	depends on NAND_MXC
+
 config NAND_MXS
 	bool "MXS NAND support"
 	depends on MX23 || MX28 || MX6 || MX7 || IMX8 || IMX8M
diff --git a/include/configs/m53menlo.h b/include/configs/m53menlo.h
index 189b2113f751..d42ad9acb40d 100644
--- a/include/configs/m53menlo.h
+++ b/include/configs/m53menlo.h
@@ -48,7 +48,6 @@
 #define CONFIG_MXC_NAND_REGS_BASE	NFC_BASE_ADDR_AXI
 #define CONFIG_MXC_NAND_IP_REGS_BASE	NFC_BASE_ADDR
 #define CFG_SYS_NAND_LARGEPAGE
-#define CONFIG_MXC_NAND_HWECC
 #endif
 
 /*
-- 
2.25.1



More information about the U-Boot mailing list