Kconfig 9.9 KB

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