Kconfig 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. menu "RAM/ROM/Flash chip drivers"
  2. config MTD_CFI
  3. tristate "Detect flash chips by Common Flash Interface (CFI) probe"
  4. select MTD_GEN_PROBE
  5. select MTD_CFI_UTIL
  6. help
  7. The Common Flash Interface specification was developed by Intel,
  8. AMD and other flash manufactures that provides a universal method
  9. for probing the capabilities of flash devices. If you wish to
  10. support any device that is CFI-compliant, you need to enable this
  11. option. Visit <http://www.amd.com/products/nvd/overview/cfi.html>
  12. for more information on CFI.
  13. config MTD_JEDECPROBE
  14. tristate "Detect non-CFI AMD/JEDEC-compatible flash chips"
  15. select MTD_GEN_PROBE
  16. help
  17. This option enables JEDEC-style probing of flash chips which are not
  18. compatible with the Common Flash Interface, but will use the common
  19. CFI-targetted flash drivers for any chips which are identified which
  20. are in fact compatible in all but the probe method. This actually
  21. covers most AMD/Fujitsu-compatible chips and also non-CFI
  22. Intel chips.
  23. config MTD_GEN_PROBE
  24. tristate
  25. if MTD_GEN_PROBE
  26. config MTD_CFI_ADV_OPTIONS
  27. bool "Flash chip driver advanced configuration options"
  28. help
  29. If you need to specify a specific endianness for access to flash
  30. chips, or if you wish to reduce the size of the kernel by including
  31. support for only specific arrangements of flash chips, say 'Y'. This
  32. option does not directly affect the code, but will enable other
  33. configuration options which allow you to do so.
  34. If unsure, say 'N'.
  35. if MTD_CFI_ADV_OPTIONS
  36. choice
  37. prompt "Flash cmd/query data swapping"
  38. default MTD_CFI_NOSWAP
  39. config MTD_CFI_NOSWAP
  40. bool "NO"
  41. ---help---
  42. This option defines the way in which the CPU attempts to arrange
  43. data bits when writing the 'magic' commands to the chips. Saying
  44. 'NO', which is the default when CONFIG_MTD_CFI_ADV_OPTIONS isn't
  45. enabled, means that the CPU will not do any swapping; the chips
  46. are expected to be wired to the CPU in 'host-endian' form.
  47. Specific arrangements are possible with the BIG_ENDIAN_BYTE and
  48. LITTLE_ENDIAN_BYTE, if the bytes are reversed.
  49. If you have a LART, on which the data (and address) lines were
  50. connected in a fashion which ensured that the nets were as short
  51. as possible, resulting in a bit-shuffling which seems utterly
  52. random to the untrained eye, you need the LART_ENDIAN_BYTE option.
  53. Yes, there really exists something sicker than PDP-endian :)
  54. config MTD_CFI_BE_BYTE_SWAP
  55. bool "BIG_ENDIAN_BYTE"
  56. config MTD_CFI_LE_BYTE_SWAP
  57. bool "LITTLE_ENDIAN_BYTE"
  58. endchoice
  59. config MTD_CFI_GEOMETRY
  60. bool "Specific CFI Flash geometry selection"
  61. help
  62. This option does not affect the code directly, but will enable
  63. some other configuration options which would allow you to reduce
  64. the size of the kernel by including support for only certain
  65. arrangements of CFI chips. If unsure, say 'N' and all options
  66. which are supported by the current code will be enabled.
  67. if MTD_CFI_GEOMETRY
  68. config MTD_MAP_BANK_WIDTH_1
  69. bool "Support 8-bit buswidth"
  70. default y
  71. help
  72. If you wish to support CFI devices on a physical bus which is
  73. 8 bits wide, say 'Y'.
  74. config MTD_MAP_BANK_WIDTH_2
  75. bool "Support 16-bit buswidth"
  76. default y
  77. help
  78. If you wish to support CFI devices on a physical bus which is
  79. 16 bits wide, say 'Y'.
  80. config MTD_MAP_BANK_WIDTH_4
  81. bool "Support 32-bit buswidth"
  82. default y
  83. help
  84. If you wish to support CFI devices on a physical bus which is
  85. 32 bits wide, say 'Y'.
  86. config MTD_MAP_BANK_WIDTH_8
  87. bool "Support 64-bit buswidth"
  88. help
  89. If you wish to support CFI devices on a physical bus which is
  90. 64 bits wide, say 'Y'.
  91. config MTD_MAP_BANK_WIDTH_16
  92. bool "Support 128-bit buswidth"
  93. help
  94. If you wish to support CFI devices on a physical bus which is
  95. 128 bits wide, say 'Y'.
  96. config MTD_MAP_BANK_WIDTH_32
  97. bool "Support 256-bit buswidth"
  98. help
  99. If you wish to support CFI devices on a physical bus which is
  100. 256 bits wide, say 'Y'.
  101. config MTD_CFI_I1
  102. bool "Support 1-chip flash interleave"
  103. default y
  104. help
  105. If your flash chips are not interleaved - i.e. you only have one
  106. flash chip addressed by each bus cycle, then say 'Y'.
  107. config MTD_CFI_I2
  108. bool "Support 2-chip flash interleave"
  109. default y
  110. help
  111. If your flash chips are interleaved in pairs - i.e. you have two
  112. flash chips addressed by each bus cycle, then say 'Y'.
  113. config MTD_CFI_I4
  114. bool "Support 4-chip flash interleave"
  115. help
  116. If your flash chips are interleaved in fours - i.e. you have four
  117. flash chips addressed by each bus cycle, then say 'Y'.
  118. config MTD_CFI_I8
  119. bool "Support 8-chip flash interleave"
  120. help
  121. If your flash chips are interleaved in eights - i.e. you have eight
  122. flash chips addressed by each bus cycle, then say 'Y'.
  123. endif # MTD_CFI_GEOMETRY
  124. config MTD_OTP
  125. bool "Protection Registers aka one-time programmable (OTP) bits"
  126. select HAVE_MTD_OTP
  127. help
  128. This enables support for reading, writing and locking so called
  129. "Protection Registers" present on some flash chips.
  130. A subset of them are pre-programmed at the factory with a
  131. unique set of values. The rest is user-programmable.
  132. The user-programmable Protection Registers contain one-time
  133. programmable (OTP) bits; when programmed, register bits cannot be
  134. erased. Each Protection Register can be accessed multiple times to
  135. program individual bits, as long as the register remains unlocked.
  136. Each Protection Register has an associated Lock Register bit. When a
  137. Lock Register bit is programmed, the associated Protection Register
  138. can only be read; it can no longer be programmed. Additionally,
  139. because the Lock Register bits themselves are OTP, when programmed,
  140. Lock Register bits cannot be erased. Therefore, when a Protection
  141. Register is locked, it cannot be unlocked.
  142. This feature should therefore be used with extreme care. Any mistake
  143. in the programming of OTP bits will waste them.
  144. endif # MTD_CFI_ADV_OPTIONS
  145. config MTD_CFI_INTELEXT
  146. tristate "Support for Intel/Sharp flash chips"
  147. select MTD_CFI_UTIL
  148. help
  149. The Common Flash Interface defines a number of different command
  150. sets which a CFI-compliant chip may claim to implement. This code
  151. provides support for one of those command sets, used on Intel
  152. StrataFlash and other parts.
  153. config MTD_CFI_AMDSTD
  154. tristate "Support for AMD/Fujitsu/Spansion flash chips"
  155. select MTD_CFI_UTIL
  156. help
  157. The Common Flash Interface defines a number of different command
  158. sets which a CFI-compliant chip may claim to implement. This code
  159. provides support for one of those command sets, used on chips
  160. including the AMD Am29LV320.
  161. config MTD_CFI_STAA
  162. tristate "Support for ST (Advanced Architecture) flash chips"
  163. select MTD_CFI_UTIL
  164. help
  165. The Common Flash Interface defines a number of different command
  166. sets which a CFI-compliant chip may claim to implement. This code
  167. provides support for one of those command sets.
  168. endif # MTD_GEN_PROBE
  169. config MTD_CFI_UTIL
  170. tristate
  171. config MTD_RAM
  172. tristate "Support for RAM chips in bus mapping"
  173. help
  174. This option enables basic support for RAM chips accessed through
  175. a bus mapping driver.
  176. config MTD_ROM
  177. tristate "Support for ROM chips in bus mapping"
  178. help
  179. This option enables basic support for ROM chips accessed through
  180. a bus mapping driver.
  181. config MTD_ABSENT
  182. tristate "Support for absent chips in bus mapping"
  183. help
  184. This option enables support for a dummy probing driver used to
  185. allocated placeholder MTD devices on systems that have socketed
  186. or removable media. Use of this driver as a fallback chip probe
  187. preserves the expected registration order of MTD device nodes on
  188. the system regardless of media presence. Device nodes created
  189. with this driver will return -ENODEV upon access.
  190. config MTD_XIP
  191. bool "XIP aware MTD support"
  192. depends on !SMP && (MTD_CFI_INTELEXT || MTD_CFI_AMDSTD) && EXPERIMENTAL && ARCH_MTD_XIP
  193. default y if XIP_KERNEL
  194. help
  195. This allows MTD support to work with flash memory which is also
  196. used for XIP purposes. If you're not sure what this is all about
  197. then say N.
  198. endmenu