Kconfig 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #nand
  2. menuconfig MTK_MTD_NAND
  3. tristate "MediaTek Nand Support"
  4. depends on MTD_NAND
  5. help
  6. NAND flash memory, a type of non-volatile storage device,
  7. introduced by Toshiba in 1989. With formal commands,
  8. controller can access data via devices.
  9. This configuration enable Mediatek NAND controller to perform operations
  10. on NAND devices of verious vendors.
  11. For products choosing raw NAND as booting device,this configuration must say y.
  12. Since kernel using MTD as storage device common driver,
  13. this configuration depends on MTD_NAND config.
  14. Please visit JEDEC sites for more information.
  15. config MTK_MTD_NAND_INTERRUPT_SCHEME
  16. bool "Nand Read/Write with interrupt scheme"
  17. depends on MTK_MTD_NAND
  18. default n
  19. help
  20. While performing page read/write to NAND device, controller use
  21. DMA to send/receive data to/from device. There are two schemes to
  22. wait until DMA finish its' job, polling and interrupt.
  23. Using polling may quicker, but CPU resource won't be released.
  24. Interrupt may suffer some software overhead, but CPU can be released.
  25. This configuration is for user to chose from these two scheme.
  26. Default using polling mode since DMA may not take too long.
  27. config MTK_TLC_NAND_SUPPORT
  28. tristate "Mediatek MLC NAND Support"
  29. depends on MTK_MTD_NAND
  30. help
  31. In electronics, TLC is a memory element capable of
  32. storing more than a single bit of information.
  33. TLC NAND flash is a flash memory technology using multiple levels per
  34. cell to allow more bits to be stored using the same number of transistors.
  35. The primary benefit of TLC flash memory is its lower cost per unit of storage
  36. due to the higher data density, and memory-reading software can compensate for
  37. a larger bit error rate.
  38. Thus, firmware and driver to support TLC devices need to take care of data robustness,
  39. and TLC features with extend command and storage methods.
  40. Compatible with SLC, MLC and TLC, Mediatek controller driver and firmware have
  41. implement various method to enhance data robustness.
  42. While using TLC devices as booting device, please set this configuration as
  43. y to enable TLC features.
  44. config MTK_MLC_NAND_SUPPORT
  45. tristate "Mediatek MLC NAND Support"
  46. depends on MTK_MTD_NAND
  47. help
  48. In electronics, a multi-level cell (MLC) is a memory element capable of
  49. storing more than a single bit of information.
  50. MLC NAND flash is a flash memory technology using multiple levels per
  51. cell to allow more bits to be stored using the same number of transistors.
  52. The primary benefit of MLC flash memory is its lower cost per unit of storage
  53. due to the higher data density, and memory-reading software can compensate for
  54. a larger bit error rate.
  55. Thus, firmware and driver to support MLC devices need to take care of data robustness,
  56. and MLC features with extend command and storage methods.
  57. Compatible with both SLC and MLC, Mediatek controller driver and firmware have
  58. implement various method to enhance data robustness.
  59. While using MLC devices as booting device, please set this configuration as
  60. y to enable MLC features.
  61. config MTK_COMBO_NAND_SUPPORT
  62. tristate "Mediatek COMBO NAND Support"
  63. depends on MTK_MTD_NAND
  64. help
  65. NAND memories are accessed much like block devices.
  66. Each block consists of a number of pages.
  67. Knowned that reading and programming is performed on a page basis,
  68. and erasure can only be performed on a block basis.
  69. Different devices have different block size and page size.
  70. This configuration enables the multi devices in one load feature.
  71. config MTK_FAT_ON_NAND
  72. tristate "Mediatek FAT on NAND Support"
  73. depends on MTK_MTD_NAND
  74. help
  75. Enable FAT on nand feature of Mediatek NAND driver.
  76. This will create a FAT partition on NAND device.
  77. With this configuration turns on, user can use UMS to access native storage.
  78. Without this configuration, users only use MTP to acces native storage.
  79. Please see Project config for more information of this configuration.
  80. config MTK_FACTORY_RESET_PROTECTION_SUPPORT
  81. bool "Mediatek FRP Support"
  82. depends on MTK_MTD_NAND
  83. help
  84. FRP stands for factory reset protect.
  85. This feature backup customer data after factory reset.
  86. Turn on this configuration to enable data save after factory reset.
  87. config MTK_NAND_V2
  88. bool "Mediatek NAND Driver Version 2 Support"
  89. depends on MTK_MTD_NAND
  90. help
  91. Enable mtk nand driver version 2.