]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Convert CONFIG_MXC_NAND_HWECC to Kconfig
authorTom Rini <trini@konsulko.com>
Fri, 2 Dec 2022 21:42:37 +0000 (16:42 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 22 Dec 2022 15:31:48 +0000 (10:31 -0500)
This converts the following to Kconfig:
   CONFIG_MXC_NAND_HWECC

Signed-off-by: Tom Rini <trini@konsulko.com>
configs/m53menlo_defconfig
drivers/mtd/nand/raw/Kconfig
include/configs/m53menlo.h

index b70d10433d7dbed277a64cfab6b9070b84b76f06..70df2b5fd24329c93b156b848dc8f5deba2448a5 100644 (file)
@@ -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
index 25b829f11cdb1d1e035268de0a98f2e5e1781cd4..1e4e5c9206710c2d397fe03f6d894c8f7e2b1fb9 100644 (file)
@@ -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
index 189b2113f751ea1775bcb3a483ca7b22e424b047..d42ad9acb40d2f83b331846539e74a08ce02e79d 100644 (file)
@@ -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
 
 /*