Kconfig 10.0 KB

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