Convert CONFIG_MXC_NAND_HWECC to Kconfig

This converts the following to Kconfig:
   CONFIG_MXC_NAND_HWECC

Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini 2022-12-02 16:42:37 -05:00
parent e52fca2236
commit 71894173bb
3 changed files with 5 additions and 1 deletions

View 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

View 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

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