Kconfig 11 KB

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