2019-05-19 20:07:45 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2020-05-29 08:25:07 +08:00
|
|
|
|
|
|
|
menu "NAND"
|
|
|
|
|
2018-02-06 06:02:05 +08:00
|
|
|
config MTD_NAND_CORE
|
|
|
|
tristate
|
|
|
|
|
2018-02-19 00:05:16 +08:00
|
|
|
source "drivers/mtd/nand/onenand/Kconfig"
|
2018-02-06 06:02:04 +08:00
|
|
|
source "drivers/mtd/nand/raw/Kconfig"
|
2018-06-22 20:28:23 +08:00
|
|
|
source "drivers/mtd/nand/spi/Kconfig"
|
2020-05-29 08:25:07 +08:00
|
|
|
|
2020-08-27 16:51:56 +08:00
|
|
|
menu "ECC engine support"
|
|
|
|
|
|
|
|
config MTD_NAND_ECC
|
|
|
|
bool
|
|
|
|
depends on MTD_NAND_CORE
|
|
|
|
|
2020-09-30 07:01:15 +08:00
|
|
|
config MTD_NAND_ECC_SW_HAMMING
|
|
|
|
bool
|
|
|
|
|
|
|
|
config MTD_NAND_ECC_SW_HAMMING_SMC
|
|
|
|
bool "NAND ECC Smart Media byte order"
|
|
|
|
depends on MTD_NAND_ECC_SW_HAMMING
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Software ECC according to the Smart Media Specification.
|
|
|
|
The original Linux implementation had byte 0 and 1 swapped.
|
|
|
|
|
2020-09-30 07:01:06 +08:00
|
|
|
config MTD_NAND_ECC_SW_BCH
|
|
|
|
bool "Software BCH ECC engine"
|
|
|
|
select BCH
|
|
|
|
select MTD_NAND_ECC
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
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.
|
|
|
|
|
2020-08-27 16:51:56 +08:00
|
|
|
endmenu
|
|
|
|
|
2020-05-29 08:25:07 +08:00
|
|
|
endmenu
|