Kconfig 8.2 KB

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