Kconfig 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. menu "NAND Device Support"
  2. config DM_NAND
  3. bool "Enable driver model for NAND"
  4. depends on DM
  5. help
  6. Enable driver model for NAND. The NAND interface is then
  7. implemented by the NAND uclass. Multiple NAND devices can
  8. be attached and used. The 'nand' command works as normal.
  9. If the NAND drivers doesn't support DM, say N.
  10. config SYS_NAND_SELF_INIT
  11. bool
  12. help
  13. This option, if enabled, provides more flexible and linux-like
  14. NAND initialization process.
  15. config NAND_DENALI
  16. bool "Support Denali NAND controller"
  17. select SYS_NAND_SELF_INIT
  18. help
  19. Enable support for the Denali NAND controller.
  20. config SYS_NAND_DENALI_64BIT
  21. bool "Use 64-bit variant of Denali NAND controller"
  22. depends on NAND_DENALI
  23. help
  24. The Denali NAND controller IP has some variations in terms of
  25. the bus interface. The DMA setup sequence is completely differenct
  26. between 32bit / 64bit AXI bus variants.
  27. If your Denali NAND controller is the 64-bit variant, say Y.
  28. Otherwise (32 bit), say N.
  29. config NAND_DENALI_SPARE_AREA_SKIP_BYTES
  30. int "Number of bytes skipped in OOB area"
  31. depends on NAND_DENALI
  32. range 0 63
  33. help
  34. This option specifies the number of bytes to skip from the beginning
  35. of OOB area before last ECC sector data starts. This is potentially
  36. used to preserve the bad block marker in the OOB area.
  37. config NAND_VF610_NFC
  38. bool "Support for Freescale NFC for VF610/MPC5125"
  39. select SYS_NAND_SELF_INIT
  40. help
  41. Enables support for NAND Flash Controller on some Freescale
  42. processors like the VF610, MPC5125, MCF54418 or Kinetis K70.
  43. The driver supports a maximum 2k page size. The driver
  44. currently does not support hardware ECC.
  45. choice
  46. prompt "Hardware ECC strength"
  47. depends on NAND_VF610_NFC
  48. default SYS_NAND_VF610_NFC_45_ECC_BYTES
  49. help
  50. Select the ECC strength used in the hardware BCH ECC block.
  51. config SYS_NAND_VF610_NFC_45_ECC_BYTES
  52. bool "24-error correction (45 ECC bytes)"
  53. config SYS_NAND_VF610_NFC_60_ECC_BYTES
  54. bool "32-error correction (60 ECC bytes)"
  55. endchoice
  56. config NAND_PXA3XX
  57. bool "Support for NAND on PXA3xx and Armada 370/XP/38x"
  58. select SYS_NAND_SELF_INIT
  59. help
  60. This enables the driver for the NAND flash device found on
  61. PXA3xx processors (NFCv1) and also on Armada 370/XP (NFCv2).
  62. config NAND_SUNXI
  63. bool "Support for NAND on Allwinner SoCs"
  64. depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
  65. select SYS_NAND_SELF_INIT
  66. ---help---
  67. Enable support for NAND. This option enables the standard and
  68. SPL drivers.
  69. The SPL driver only supports reading from the NAND using DMA
  70. transfers.
  71. config NAND_ARASAN
  72. bool "Configure Arasan Nand"
  73. help
  74. This enables Nand driver support for Arasan nand flash
  75. controller. This uses the hardware ECC for read and
  76. write operations.
  77. config NAND_MXS
  78. bool "MXS NAND support"
  79. depends on MX6
  80. help
  81. This enables NAND driver for the NAND flash controller on the
  82. MXS processors.
  83. config NAND_ZYNQ
  84. bool "Support for Zynq Nand controller"
  85. select SYS_NAND_SELF_INIT
  86. help
  87. This enables Nand driver support for Nand flash controller
  88. found on Zynq SoC.
  89. comment "Generic NAND options"
  90. # Enhance depends when converting drivers to Kconfig which use this config
  91. # option (mxc_nand, ndfc, omap_gpmc).
  92. config SYS_NAND_BUSWIDTH_16BIT
  93. bool "Use 16-bit NAND interface"
  94. depends on NAND_VF610_NFC
  95. help
  96. Indicates that NAND device has 16-bit wide data-bus. In absence of this
  97. config, bus-width of NAND device is assumed to be either 8-bit and later
  98. determined by reading ONFI params.
  99. Above config is useful when NAND device's bus-width information cannot
  100. be determined from on-chip ONFI params, like in following scenarios:
  101. - SPL boot does not support reading of ONFI parameters. This is done to
  102. keep SPL code foot-print small.
  103. - In current U-Boot flow using nand_init(), driver initialization
  104. happens in board_nand_init() which is called before any device probe
  105. (nand_scan_ident + nand_scan_tail), thus device's ONFI parameters are
  106. not available while configuring controller. So a static CONFIG_NAND_xx
  107. is needed to know the device's bus-width in advance.
  108. if SPL
  109. config SYS_NAND_U_BOOT_LOCATIONS
  110. bool "Define U-boot binaries locations in NAND"
  111. help
  112. Enable CONFIG_SYS_NAND_U_BOOT_OFFS though Kconfig.
  113. This option should not be enabled when compiling U-boot for boards
  114. defining CONFIG_SYS_NAND_U_BOOT_OFFS in their include/configs/<board>.h
  115. file.
  116. config SYS_NAND_U_BOOT_OFFS
  117. hex "Location in NAND to read U-Boot from"
  118. default 0x8000 if NAND_SUNXI
  119. depends on SYS_NAND_U_BOOT_LOCATIONS
  120. help
  121. Set the offset from the start of the nand where u-boot should be
  122. loaded from.
  123. config SYS_NAND_U_BOOT_OFFS_REDUND
  124. hex "Location in NAND to read U-Boot from"
  125. default SYS_NAND_U_BOOT_OFFS
  126. depends on SYS_NAND_U_BOOT_LOCATIONS
  127. help
  128. Set the offset from the start of the nand where the redundant u-boot
  129. should be loaded from.
  130. config SPL_NAND_DENALI
  131. bool "Support Denali NAND controller for SPL"
  132. help
  133. This is a small implementation of the Denali NAND controller
  134. for use on SPL.
  135. endif
  136. endmenu