Kconfig 11 KB

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