Kconfig

NAND

CONFIG_MTD_NAND_CORE

  • Off
  • Module
  • Built in
Includedrivers/mtd/nand/onenand/Kconfig Open file
Includedrivers/mtd/nand/raw/Kconfig Open file
Includedrivers/mtd/nand/spi/Kconfig Open file

ECC engine support

CONFIG_MTD_NAND_ECC_SW_HAMMING Software Hamming ECC engine

On

This enables support for software Hamming error correction. This correction can correct up to 1 bit error per chunk and detect up to 2 bit errors. While it used to be widely used with old parts, newer NAND chips usually require more strength correction and in this case BCH or RS will be preferred.

If MTD_NAND_ECC_SW_HAMMING

CONFIG_MTD_NAND_ECC_SW_HAMMING_SMC NAND ECC Smart Media byte order

On

Software ECC according to the Smart Media Specification. The original Linux implementation had byte 0 and 1 swapped.

CONFIG_MTD_NAND_ECC_SW_BCH Software BCH ECC engine

On

This enables support for software BCH error correction. Binary BCH codes are more powerful and cpu intensive than traditional Hamming ECC codes. They are used with NAND devices requiring more than 1 bit of error correction.

Default

CONFIG_MTD_NAND_ECC_MXIC Macronix external hardware ECC engine

On

This enables support for the hardware ECC engine from Macronix.

End of ECC engine support
End of NAND