Kconfig 12 KB

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