Kconfig 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. # $Id: Kconfig,v 1.7 2004/11/22 11:33:56 ijc Exp $
  2. menu "Memory Technology Devices (MTD)"
  3. config MTD
  4. tristate "Memory Technology Device (MTD) support"
  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. config MTD_DEBUG
  14. bool "Debugging"
  15. depends on MTD
  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. depends on MTD
  28. help
  29. Support for concatenating several MTD devices into a single
  30. (virtual) one. This allows you to have -for example- a JFFS(2)
  31. file system spanning multiple physical flash chips. If unsure,
  32. say 'Y'.
  33. config MTD_PARTITIONS
  34. bool "MTD partitioning support"
  35. depends on MTD
  36. help
  37. If you have a device which needs to divide its flash chip(s) up
  38. into multiple 'partitions', each of which appears to the user as
  39. a separate MTD device, you require this option to be enabled. If
  40. unsure, say 'Y'.
  41. Note, however, that you don't need this option for the DiskOnChip
  42. devices. Partitioning on NFTL 'devices' is a different - that's the
  43. 'normal' form of partitioning used on a block device.
  44. config MTD_REDBOOT_PARTS
  45. tristate "RedBoot partition table parsing"
  46. depends on MTD_PARTITIONS
  47. ---help---
  48. RedBoot is a ROM monitor and bootloader which deals with multiple
  49. 'images' in flash devices by putting a table one of the erase
  50. blocks on the device, similar to a partition table, which gives
  51. the offsets, lengths and names of all the images stored in the
  52. flash.
  53. If you need code which can detect and parse this table, and register
  54. MTD 'partitions' corresponding to each image in the table, enable
  55. this option.
  56. You will still need the parsing functions to be called by the driver
  57. for your particular device. It won't happen automatically. The
  58. SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for
  59. example.
  60. config MTD_REDBOOT_DIRECTORY_BLOCK
  61. int "Location of RedBoot partition table"
  62. depends on MTD_REDBOOT_PARTS
  63. default "-1"
  64. ---help---
  65. This option is the Linux counterpart to the
  66. CYGNUM_REDBOOT_FIS_DIRECTORY_BLOCK RedBoot compile time
  67. option.
  68. The option specifies which Flash sectors holds the RedBoot
  69. partition table. A zero or positive value gives an absolete
  70. erase block number. A negative value specifies a number of
  71. sectors before the end of the device.
  72. For example "2" means block number 2, "-1" means the last
  73. block and "-2" means the penultimate block.
  74. config MTD_REDBOOT_PARTS_UNALLOCATED
  75. bool " Include unallocated flash regions"
  76. depends on MTD_REDBOOT_PARTS
  77. help
  78. If you need to register each unallocated flash region as a MTD
  79. 'partition', enable this option.
  80. config MTD_REDBOOT_PARTS_READONLY
  81. bool " Force read-only for RedBoot system images"
  82. depends on MTD_REDBOOT_PARTS
  83. help
  84. If you need to force read-only for 'RedBoot', 'RedBoot Config' and
  85. 'FIS directory' images, enable this option.
  86. config MTD_CMDLINE_PARTS
  87. bool "Command line partition table parsing"
  88. depends on MTD_PARTITIONS = "y"
  89. ---help---
  90. Allow generic configuration of the MTD paritition tables via the kernel
  91. command line. Multiple flash resources are supported for hardware where
  92. different kinds of flash memory are available.
  93. You will still need the parsing functions to be called by the driver
  94. for your particular device. It won't happen automatically. The
  95. SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for
  96. example.
  97. The format for the command line is as follows:
  98. mtdparts=<mtddef>[;<mtddef]
  99. <mtddef> := <mtd-id>:<partdef>[,<partdef>]
  100. <partdef> := <size>[@offset][<name>][ro]
  101. <mtd-id> := unique id used in mapping driver/device
  102. <size> := standard linux memsize OR "-" to denote all
  103. remaining space
  104. <name> := (NAME)
  105. Due to the way Linux handles the command line, no spaces are
  106. allowed in the partition definition, including mtd id's and partition
  107. names.
  108. Examples:
  109. 1 flash resource (mtd-id "sa1100"), with 1 single writable partition:
  110. mtdparts=sa1100:-
  111. Same flash, but 2 named partitions, the first one being read-only:
  112. mtdparts=sa1100:256k(ARMboot)ro,-(root)
  113. If unsure, say 'N'.
  114. config MTD_AFS_PARTS
  115. tristate "ARM Firmware Suite partition parsing"
  116. depends on ARM && MTD_PARTITIONS
  117. ---help---
  118. The ARM Firmware Suite allows the user to divide flash devices into
  119. multiple 'images'. Each such image has a header containing its name
  120. and offset/size etc.
  121. If you need code which can detect and parse these tables, and
  122. register MTD 'partitions' corresponding to each image detected,
  123. enable this option.
  124. You will still need the parsing functions to be called by the driver
  125. for your particular device. It won't happen automatically. The
  126. 'armflash' map driver (CONFIG_MTD_ARMFLASH) does this, for example.
  127. comment "User Modules And Translation Layers"
  128. depends on MTD
  129. config MTD_CHAR
  130. tristate "Direct char device access to MTD devices"
  131. depends on MTD
  132. help
  133. This provides a character device for each MTD device present in
  134. the system, allowing the user to read and write directly to the
  135. memory chips, and also use ioctl() to obtain information about
  136. the device, or to erase parts of it.
  137. config MTD_BLOCK
  138. tristate "Caching block device access to MTD devices"
  139. depends on MTD
  140. ---help---
  141. Although most flash chips have an erase size too large to be useful
  142. as block devices, it is possible to use MTD devices which are based
  143. on RAM chips in this manner. This block device is a user of MTD
  144. devices performing that function.
  145. At the moment, it is also required for the Journalling Flash File
  146. System(s) to obtain a handle on the MTD device when it's mounted
  147. (although JFFS and JFFS2 don't actually use any of the functionality
  148. of the mtdblock device).
  149. Later, it may be extended to perform read/erase/modify/write cycles
  150. on flash chips to emulate a smaller block size. Needless to say,
  151. this is very unsafe, but could be useful for file systems which are
  152. almost never written to.
  153. You do not need this option for use with the DiskOnChip devices. For
  154. those, enable NFTL support (CONFIG_NFTL) instead.
  155. config MTD_BLOCK_RO
  156. tristate "Readonly block device access to MTD devices"
  157. depends on MTD_BLOCK!=y && MTD
  158. help
  159. This allows you to mount read-only file systems (such as cramfs)
  160. from an MTD device, without the overhead (and danger) of the caching
  161. driver.
  162. You do not need this option for use with the DiskOnChip devices. For
  163. those, enable NFTL support (CONFIG_NFTL) instead.
  164. config FTL
  165. tristate "FTL (Flash Translation Layer) support"
  166. depends on MTD
  167. ---help---
  168. This provides support for the original Flash Translation Layer which
  169. is part of the PCMCIA specification. It uses a kind of pseudo-
  170. file system on a flash device to emulate a block device with
  171. 512-byte sectors, on top of which you put a 'normal' file system.
  172. You may find that the algorithms used in this code are patented
  173. unless you live in the Free World where software patents aren't
  174. legal - in the USA you are only permitted to use this on PCMCIA
  175. hardware, although under the terms of the GPL you're obviously
  176. permitted to copy, modify and distribute the code as you wish. Just
  177. not use it.
  178. config NFTL
  179. tristate "NFTL (NAND Flash Translation Layer) support"
  180. depends on MTD
  181. ---help---
  182. This provides support for the NAND Flash Translation Layer which is
  183. used on M-Systems' DiskOnChip devices. It uses a kind of pseudo-
  184. file system on a flash device to emulate a block device with
  185. 512-byte sectors, on top of which you put a 'normal' file system.
  186. You may find that the algorithms used in this code are patented
  187. unless you live in the Free World where software patents aren't
  188. legal - in the USA you are only permitted to use this on DiskOnChip
  189. hardware, although under the terms of the GPL you're obviously
  190. permitted to copy, modify and distribute the code as you wish. Just
  191. not use it.
  192. config NFTL_RW
  193. bool "Write support for NFTL"
  194. depends on NFTL
  195. help
  196. Support for writing to the NAND Flash Translation Layer, as used
  197. on the DiskOnChip.
  198. config INFTL
  199. tristate "INFTL (Inverse NAND Flash Translation Layer) support"
  200. depends on MTD
  201. ---help---
  202. This provides support for the Inverse NAND Flash Translation
  203. Layer which is used on M-Systems' newer DiskOnChip devices. It
  204. uses a kind of pseudo-file system on a flash device to emulate
  205. a block device with 512-byte sectors, on top of which you put
  206. a 'normal' file system.
  207. You may find that the algorithms used in this code are patented
  208. unless you live in the Free World where software patents aren't
  209. legal - in the USA you are only permitted to use this on DiskOnChip
  210. hardware, although under the terms of the GPL you're obviously
  211. permitted to copy, modify and distribute the code as you wish. Just
  212. not use it.
  213. source "drivers/mtd/chips/Kconfig"
  214. source "drivers/mtd/maps/Kconfig"
  215. source "drivers/mtd/devices/Kconfig"
  216. source "drivers/mtd/nand/Kconfig"
  217. endmenu