Kconfig 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. menu "NAND"
  3. config MTD_NAND_CORE
  4. tristate
  5. source "drivers/mtd/nand/onenand/Kconfig"
  6. source "drivers/mtd/nand/raw/Kconfig"
  7. source "drivers/mtd/nand/spi/Kconfig"
  8. menu "ECC engine support"
  9. config MTD_NAND_ECC
  10. bool
  11. select MTD_NAND_CORE
  12. config MTD_NAND_ECC_SW_HAMMING
  13. bool "Software Hamming ECC engine"
  14. default y if MTD_RAW_NAND
  15. select MTD_NAND_ECC
  16. help
  17. This enables support for software Hamming error
  18. correction. This correction can correct up to 1 bit error
  19. per chunk and detect up to 2 bit errors. While it used to be
  20. widely used with old parts, newer NAND chips usually require
  21. more strength correction and in this case BCH or RS will be
  22. preferred.
  23. config MTD_NAND_ECC_SW_HAMMING_SMC
  24. bool "NAND ECC Smart Media byte order"
  25. depends on MTD_NAND_ECC_SW_HAMMING
  26. default n
  27. help
  28. Software ECC according to the Smart Media Specification.
  29. The original Linux implementation had byte 0 and 1 swapped.
  30. config MTD_NAND_ECC_SW_BCH
  31. bool "Software BCH ECC engine"
  32. select BCH
  33. select MTD_NAND_ECC
  34. default n
  35. help
  36. This enables support for software BCH error correction. Binary BCH
  37. codes are more powerful and cpu intensive than traditional Hamming
  38. ECC codes. They are used with NAND devices requiring more than 1 bit
  39. of error correction.
  40. config MTD_NAND_ECC_MXIC
  41. bool "Macronix external hardware ECC engine"
  42. depends on HAS_IOMEM
  43. select MTD_NAND_ECC
  44. help
  45. This enables support for the hardware ECC engine from Macronix.
  46. config MTD_NAND_ECC_MEDIATEK
  47. tristate "Mediatek hardware ECC engine"
  48. depends on HAS_IOMEM
  49. depends on ARCH_MEDIATEK || COMPILE_TEST
  50. select MTD_NAND_ECC
  51. help
  52. This enables support for the hardware ECC engine from Mediatek.
  53. endmenu
  54. endmenu