Kconfig 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. # $Id: Kconfig,v 1.11 2005/11/07 11:14:19 gleixner Exp $
  2. menuconfig MTD
  3. tristate "Memory Technology Device (MTD) support"
  4. depends on HAS_IOMEM
  5. help
  6. Memory Technology Devices are flash, RAM and similar chips, often
  7. used for solid state file systems on embedded devices. This option
  8. will provide the generic support for MTD drivers to register
  9. themselves with the kernel and for potential users of MTD devices
  10. to enumerate the devices which are present and obtain a handle on
  11. them. It will also allow you to select individual drivers for
  12. particular hardware and users of MTD devices. If unsure, say N.
  13. if MTD
  14. config MTD_DEBUG
  15. bool "Debugging"
  16. help
  17. This turns on low-level debugging for the entire MTD sub-system.
  18. Normally, you should say 'N'.
  19. config MTD_DEBUG_VERBOSE
  20. int "Debugging verbosity (0 = quiet, 3 = noisy)"
  21. depends on MTD_DEBUG
  22. default "0"
  23. help
  24. Determines the verbosity level of the MTD debugging messages.
  25. config MTD_CONCAT
  26. tristate "MTD concatenating support"
  27. help
  28. Support for concatenating several MTD devices into a single
  29. (virtual) one. This allows you to have -for example- a JFFS(2)
  30. file system spanning multiple physical flash chips. If unsure,
  31. say 'Y'.
  32. config MTD_PARTITIONS
  33. bool "MTD partitioning support"
  34. help
  35. If you have a device which needs to divide its flash chip(s) up
  36. into multiple 'partitions', each of which appears to the user as
  37. a separate MTD device, you require this option to be enabled. If
  38. unsure, say 'Y'.
  39. Note, however, that you don't need this option for the DiskOnChip
  40. devices. Partitioning on NFTL 'devices' is a different - that's the
  41. 'normal' form of partitioning used on a block device.
  42. config MTD_REDBOOT_PARTS
  43. tristate "RedBoot partition table parsing"
  44. depends on MTD_PARTITIONS
  45. ---help---
  46. RedBoot is a ROM monitor and bootloader which deals with multiple
  47. 'images' in flash devices by putting a table one of the erase
  48. blocks on the device, similar to a partition table, which gives
  49. the offsets, lengths and names of all the images stored in the
  50. flash.
  51. If you need code which can detect and parse this table, and register
  52. MTD 'partitions' corresponding to each image in the table, enable
  53. this option.
  54. You will still need the parsing functions to be called by the driver
  55. for your particular device. It won't happen automatically. The
  56. SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for
  57. example.
  58. config MTD_REDBOOT_DIRECTORY_BLOCK
  59. int "Location of RedBoot partition table"
  60. depends on MTD_REDBOOT_PARTS
  61. default "-1"
  62. ---help---
  63. This option is the Linux counterpart to the
  64. CYGNUM_REDBOOT_FIS_DIRECTORY_BLOCK RedBoot compile time
  65. option.
  66. The option specifies which Flash sectors holds the RedBoot
  67. partition table. A zero or positive value gives an absolute
  68. erase block number. A negative value specifies a number of
  69. sectors before the end of the device.
  70. For example "2" means block number 2, "-1" means the last
  71. block and "-2" means the penultimate block.
  72. config MTD_REDBOOT_PARTS_UNALLOCATED
  73. bool "Include unallocated flash regions"
  74. depends on MTD_REDBOOT_PARTS
  75. help
  76. If you need to register each unallocated flash region as a MTD
  77. 'partition', enable this option.
  78. config MTD_REDBOOT_PARTS_READONLY
  79. bool "Force read-only for RedBoot system images"
  80. depends on MTD_REDBOOT_PARTS
  81. help
  82. If you need to force read-only for 'RedBoot', 'RedBoot Config' and
  83. 'FIS directory' images, enable this option.
  84. config MTD_CMDLINE_PARTS
  85. bool "Command line partition table parsing"
  86. depends on MTD_PARTITIONS = "y" && MTD = "y"
  87. ---help---
  88. Allow generic configuration of the MTD partition tables via the kernel
  89. command line. Multiple flash resources are supported for hardware where
  90. different kinds of flash memory are available.
  91. You will still need the parsing functions to be called by the driver
  92. for your particular device. It won't happen automatically. The
  93. SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for
  94. example.
  95. The format for the command line is as follows:
  96. mtdparts=<mtddef>[;<mtddef]
  97. <mtddef> := <mtd-id>:<partdef>[,<partdef>]
  98. <partdef> := <size>[@offset][<name>][ro]
  99. <mtd-id> := unique id used in mapping driver/device
  100. <size> := standard linux memsize OR "-" to denote all
  101. remaining space
  102. <name> := (NAME)
  103. Due to the way Linux handles the command line, no spaces are
  104. allowed in the partition definition, including mtd id's and partition
  105. names.
  106. Examples:
  107. 1 flash resource (mtd-id "sa1100"), with 1 single writable partition:
  108. mtdparts=sa1100:-
  109. Same flash, but 2 named partitions, the first one being read-only:
  110. mtdparts=sa1100:256k(ARMboot)ro,-(root)
  111. If unsure, say 'N'.
  112. config MTD_AFS_PARTS
  113. tristate "ARM Firmware Suite partition parsing"
  114. depends on ARM && MTD_PARTITIONS
  115. ---help---
  116. The ARM Firmware Suite allows the user to divide flash devices into
  117. multiple 'images'. Each such image has a header containing its name
  118. and offset/size etc.
  119. If you need code which can detect and parse these tables, and
  120. register MTD 'partitions' corresponding to each image detected,
  121. enable this option.
  122. You will still need the parsing functions to be called by the driver
  123. for your particular device. It won't happen automatically. The
  124. 'armflash' map driver (CONFIG_MTD_ARMFLASH) does this, for example.
  125. config MTD_OF_PARTS
  126. tristate "Flash partition map based on OF description"
  127. depends on PPC_OF && MTD_PARTITIONS
  128. help
  129. This provides a partition parsing function which derives
  130. the partition map from the children of the flash node,
  131. as described in Documentation/powerpc/booting-without-of.txt.
  132. config MTD_AR7_PARTS
  133. tristate "TI AR7 partitioning support"
  134. depends on MTD_PARTITIONS
  135. ---help---
  136. TI AR7 partitioning support
  137. comment "User Modules And Translation Layers"
  138. config MTD_CHAR
  139. tristate "Direct char device access to MTD devices"
  140. help
  141. This provides a character device for each MTD device present in
  142. the system, allowing the user to read and write directly to the
  143. memory chips, and also use ioctl() to obtain information about
  144. the device, or to erase parts of it.
  145. config MTD_BLKDEVS
  146. tristate "Common interface to block layer for MTD 'translation layers'"
  147. depends on BLOCK
  148. default n
  149. config MTD_BLOCK
  150. tristate "Caching block device access to MTD devices"
  151. depends on BLOCK
  152. select MTD_BLKDEVS
  153. ---help---
  154. Although most flash chips have an erase size too large to be useful
  155. as block devices, it is possible to use MTD devices which are based
  156. on RAM chips in this manner. This block device is a user of MTD
  157. devices performing that function.
  158. At the moment, it is also required for the Journalling Flash File
  159. System(s) to obtain a handle on the MTD device when it's mounted
  160. (although JFFS and JFFS2 don't actually use any of the functionality
  161. of the mtdblock device).
  162. Later, it may be extended to perform read/erase/modify/write cycles
  163. on flash chips to emulate a smaller block size. Needless to say,
  164. this is very unsafe, but could be useful for file systems which are
  165. almost never written to.
  166. You do not need this option for use with the DiskOnChip devices. For
  167. those, enable NFTL support (CONFIG_NFTL) instead.
  168. config MTD_BLOCK_RO
  169. tristate "Readonly block device access to MTD devices"
  170. depends on MTD_BLOCK!=y && BLOCK
  171. select MTD_BLKDEVS
  172. help
  173. This allows you to mount read-only file systems (such as cramfs)
  174. from an MTD device, without the overhead (and danger) of the caching
  175. driver.
  176. You do not need this option for use with the DiskOnChip devices. For
  177. those, enable NFTL support (CONFIG_NFTL) instead.
  178. config FTL
  179. tristate "FTL (Flash Translation Layer) support"
  180. depends on BLOCK
  181. select MTD_BLKDEVS
  182. ---help---
  183. This provides support for the original Flash Translation Layer which
  184. is part of the PCMCIA specification. It uses a kind of pseudo-
  185. file system on a flash device to emulate a block device with
  186. 512-byte sectors, on top of which you put a 'normal' file system.
  187. You may find that the algorithms used in this code are patented
  188. unless you live in the Free World where software patents aren't
  189. legal - in the USA you are only permitted to use this on PCMCIA
  190. hardware, although under the terms of the GPL you're obviously
  191. permitted to copy, modify and distribute the code as you wish. Just
  192. not use it.
  193. config NFTL
  194. tristate "NFTL (NAND Flash Translation Layer) support"
  195. depends on BLOCK
  196. select MTD_BLKDEVS
  197. ---help---
  198. This provides support for the NAND Flash Translation Layer which is
  199. used on M-Systems' DiskOnChip devices. It uses a kind of pseudo-
  200. file system on a flash device to emulate a block device with
  201. 512-byte sectors, on top of which you put a 'normal' file system.
  202. You may find that the algorithms used in this code are patented
  203. unless you live in the Free World where software patents aren't
  204. legal - in the USA you are only permitted to use this on DiskOnChip
  205. hardware, although under the terms of the GPL you're obviously
  206. permitted to copy, modify and distribute the code as you wish. Just
  207. not use it.
  208. config NFTL_RW
  209. bool "Write support for NFTL"
  210. depends on NFTL
  211. help
  212. Support for writing to the NAND Flash Translation Layer, as used
  213. on the DiskOnChip.
  214. config INFTL
  215. tristate "INFTL (Inverse NAND Flash Translation Layer) support"
  216. depends on BLOCK
  217. select MTD_BLKDEVS
  218. ---help---
  219. This provides support for the Inverse NAND Flash Translation
  220. Layer which is used on M-Systems' newer DiskOnChip devices. It
  221. uses a kind of pseudo-file system on a flash device to emulate
  222. a block device with 512-byte sectors, on top of which you put
  223. a 'normal' file system.
  224. You may find that the algorithms used in this code are patented
  225. unless you live in the Free World where software patents aren't
  226. legal - in the USA you are only permitted to use this on DiskOnChip
  227. hardware, although under the terms of the GPL you're obviously
  228. permitted to copy, modify and distribute the code as you wish. Just
  229. not use it.
  230. config RFD_FTL
  231. tristate "Resident Flash Disk (Flash Translation Layer) support"
  232. depends on BLOCK
  233. select MTD_BLKDEVS
  234. ---help---
  235. This provides support for the flash translation layer known
  236. as the Resident Flash Disk (RFD), as used by the Embedded BIOS
  237. of General Software. There is a blurb at:
  238. http://www.gensw.com/pages/prod/bios/rfd.htm
  239. config SSFDC
  240. tristate "NAND SSFDC (SmartMedia) read only translation layer"
  241. depends on BLOCK
  242. select MTD_BLKDEVS
  243. help
  244. This enables read only access to SmartMedia formatted NAND
  245. flash. You can mount it with FAT file system.
  246. config MTD_OOPS
  247. tristate "Log panic/oops to an MTD buffer"
  248. depends on MTD
  249. help
  250. This enables panic and oops messages to be logged to a circular
  251. buffer in a flash partition where it can be read back at some
  252. later point.
  253. To use, add console=ttyMTDx to the kernel command line,
  254. where x is the MTD device number to use.
  255. source "drivers/mtd/chips/Kconfig"
  256. source "drivers/mtd/maps/Kconfig"
  257. source "drivers/mtd/devices/Kconfig"
  258. source "drivers/mtd/nand/Kconfig"
  259. source "drivers/mtd/onenand/Kconfig"
  260. source "drivers/mtd/ubi/Kconfig"
  261. endif # MTD