Blame view

drivers/mtd/Kconfig 11.1 KB
ec98c681a   Jan Engelhardt   Use menuconfig ob...
1
  menuconfig MTD
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2
  	tristate "Memory Technology Device (MTD) support"
9310da0bb   Richard Weinberger   MTD: Relax depend...
3
  	depends on GENERIC_IO
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
4
5
6
7
8
9
  	help
  	  Memory Technology Devices are flash, RAM and similar chips, often
  	  used for solid state file systems on embedded devices. This option
  	  will provide the generic support for MTD drivers to register
  	  themselves with the kernel and for potential users of MTD devices
  	  to enumerate the devices which are present and obtain a handle on
97894cda5   Thomas Gleixner   [MTD] core: Clean...
10
  	  them. It will also allow you to select individual drivers for
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
11
  	  particular hardware and users of MTD devices. If unsure, say N.
ec98c681a   Jan Engelhardt   Use menuconfig ob...
12
  if MTD
80f53da0a   Mike Frysinger   mtd: fix order of...
13
  config MTD_TESTS
48e546b7f   Wolfram Sang   mtd: tests: annot...
14
  	tristate "MTD tests support (DANGEROUS)"
80f53da0a   Mike Frysinger   mtd: fix order of...
15
16
17
18
19
  	depends on m
  	help
  	  This option includes various MTD tests into compilation. The tests
  	  should normally be compiled as kernel modules. The modules perform
  	  various checks and verifications when loaded.
48e546b7f   Wolfram Sang   mtd: tests: annot...
20
21
  	  WARNING: some of the tests will ERASE entire MTD device which they
  	  test. Do not use these tests unless you really know what you do.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
22
23
  config MTD_REDBOOT_PARTS
  	tristate "RedBoot partition table parsing"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
24
25
26
27
28
29
30
31
32
  	---help---
  	  RedBoot is a ROM monitor and bootloader which deals with multiple
  	  'images' in flash devices by putting a table one of the erase
  	  blocks on the device, similar to a partition table, which gives
  	  the offsets, lengths and names of all the images stored in the
  	  flash.
  
  	  If you need code which can detect and parse this table, and register
  	  MTD 'partitions' corresponding to each image in the table, enable
97894cda5   Thomas Gleixner   [MTD] core: Clean...
33
  	  this option.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
34
35
  
  	  You will still need the parsing functions to be called by the driver
97894cda5   Thomas Gleixner   [MTD] core: Clean...
36
37
  	  for your particular device. It won't happen automatically. The
  	  SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
38
  	  example.
b7b6e08f9   Grant Likely   mtd: Fix MTD_OF_P...
39
  if MTD_REDBOOT_PARTS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
40
41
  config MTD_REDBOOT_DIRECTORY_BLOCK
  	int "Location of RedBoot partition table"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
42
43
44
45
46
47
48
  	default "-1"
  	---help---
  	  This option is the Linux counterpart to the
  	  CYGNUM_REDBOOT_FIS_DIRECTORY_BLOCK RedBoot compile time
  	  option.
  
  	  The option specifies which Flash sectors holds the RedBoot
4992a9e88   Egry Gábor   Trivial typo fixe...
49
  	  partition table.  A zero or positive value gives an absolute
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
50
51
  	  erase block number. A negative value specifies a number of
  	  sectors before the end of the device.
97894cda5   Thomas Gleixner   [MTD] core: Clean...
52

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
53
54
  	  For example "2" means block number 2, "-1" means the last
  	  block and "-2" means the penultimate block.
97894cda5   Thomas Gleixner   [MTD] core: Clean...
55

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
56
  config MTD_REDBOOT_PARTS_UNALLOCATED
e55a3e8ae   Roman Zippel   kconfig: remove l...
57
  	bool "Include unallocated flash regions"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
58
59
60
61
62
  	help
  	  If you need to register each unallocated flash region as a MTD
  	  'partition', enable this option.
  
  config MTD_REDBOOT_PARTS_READONLY
e55a3e8ae   Roman Zippel   kconfig: remove l...
63
  	bool "Force read-only for RedBoot system images"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
64
65
66
  	help
  	  If you need to force read-only for 'RedBoot', 'RedBoot Config' and
  	  'FIS directory' images, enable this option.
b7b6e08f9   Grant Likely   mtd: Fix MTD_OF_P...
67
  endif # MTD_REDBOOT_PARTS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
68
  config MTD_CMDLINE_PARTS
f5f172dc0   Lubomir Rintel   mtd: cmdlinepart:...
69
70
  	tristate "Command line partition table parsing"
  	depends on MTD
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
71
  	---help---
4992a9e88   Egry Gábor   Trivial typo fixe...
72
  	  Allow generic configuration of the MTD partition tables via the kernel
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
73
  	  command line. Multiple flash resources are supported for hardware where
97894cda5   Thomas Gleixner   [MTD] core: Clean...
74
  	  different kinds of flash memory are available.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
75
76
  
  	  You will still need the parsing functions to be called by the driver
97894cda5   Thomas Gleixner   [MTD] core: Clean...
77
78
  	  for your particular device. It won't happen automatically. The
  	  SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
79
80
81
82
83
84
85
86
  	  example.
  
  	  The format for the command line is as follows:
  
  	  mtdparts=<mtddef>[;<mtddef]
  	  <mtddef>  := <mtd-id>:<partdef>[,<partdef>]
  	  <partdef> := <size>[@offset][<name>][ro]
  	  <mtd-id>  := unique id used in mapping driver/device
97894cda5   Thomas Gleixner   [MTD] core: Clean...
87
  	  <size>    := standard linux memsize OR "-" to denote all
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
88
89
  	  remaining space
  	  <name>    := (NAME)
97894cda5   Thomas Gleixner   [MTD] core: Clean...
90
91
  	  Due to the way Linux handles the command line, no spaces are
  	  allowed in the partition definition, including mtd id's and partition
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
92
93
94
95
96
97
98
99
100
101
102
103
104
105
  	  names.
  
  	  Examples:
  
  	  1 flash resource (mtd-id "sa1100"), with 1 single writable partition:
  	  mtdparts=sa1100:-
  
  	  Same flash, but 2 named partitions, the first one being read-only:
  	  mtdparts=sa1100:256k(ARMboot)ro,-(root)
  
  	  If unsure, say 'N'.
  
  config MTD_AFS_PARTS
  	tristate "ARM Firmware Suite partition parsing"
b7b6e08f9   Grant Likely   mtd: Fix MTD_OF_P...
106
  	depends on ARM
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
107
108
109
110
111
112
113
114
115
116
117
  	---help---
  	  The ARM Firmware Suite allows the user to divide flash devices into
  	  multiple 'images'. Each such image has a header containing its name
  	  and offset/size etc.
  
  	  If you need code which can detect and parse these tables, and
  	  register MTD 'partitions' corresponding to each image detected,
  	  enable this option.
  
  	  You will still need the parsing functions to be called by the driver
  	  for your particular device. It won't happen automatically. The
adf004009   Marc Zyngier   ARM: 6906/1: MTD:...
118
  	  'physmap' map driver (CONFIG_MTD_PHYSMAP) does this, for example.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
119

9a310d211   Scott Wood   [MTD] Factor out ...
120
  config MTD_OF_PARTS
d6137bade   Dmitry Eremin-Solenikov   mtd: make ofpart ...
121
  	tristate "OpenFirmware partitioning information support"
2e929d001   Frank Svendsboe   mtd: of_parts: fi...
122
  	default y
b7b6e08f9   Grant Likely   mtd: Fix MTD_OF_P...
123
  	depends on OF
9a310d211   Scott Wood   [MTD] Factor out ...
124
125
126
  	help
  	  This provides a partition parsing function which derives
  	  the partition map from the children of the flash node,
e76064464   Michal Sojka   mtd: update help ...
127
  	  as described in Documentation/devicetree/bindings/mtd/partition.txt.
9a310d211   Scott Wood   [MTD] Factor out ...
128

f0797881d   Matteo Croce   [MTD] AR7 mtd par...
129
130
  config MTD_AR7_PARTS
  	tristate "TI AR7 partitioning support"
f0797881d   Matteo Croce   [MTD] AR7 mtd par...
131
132
  	---help---
  	  TI AR7 partitioning support
70a3c167c   Jonas Gorski   mtd: maps: bcm963...
133
134
135
136
137
138
139
  config MTD_BCM63XX_PARTS
  	tristate "BCM63XX CFE partitioning support"
  	depends on BCM63XX
  	select CRC32
  	help
  	  This provides partions parsing for BCM63xx devices with CFE
  	  bootloaders.
3cf7f1314   Rafał Miłecki   mtd: bcm47part dr...
140
141
  config MTD_BCM47XX_PARTS
  	tristate "BCM47XX partitioning support"
9e3afa5f5   Rafał Miłecki   mtd: bcm47xxpart:...
142
  	depends on BCM47XX || ARCH_BCM_5301X
3cf7f1314   Rafał Miłecki   mtd: bcm47part dr...
143
144
145
  	help
  	  This provides partitions parser for devices based on BCM47xx
  	  boards.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
146
  comment "User Modules And Translation Layers"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
147

7f11b4d41   Ezequiel Garcia   mtd: Hide CONFIG_...
148
149
150
  #
  # MTD block device support is select'ed if needed
  #
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
151
  config MTD_BLKDEVS
7f11b4d41   Ezequiel Garcia   mtd: Hide CONFIG_...
152
  	tristate
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
153

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
154
155
  config MTD_BLOCK
  	tristate "Caching block device access to MTD devices"
ec98c681a   Jan Engelhardt   Use menuconfig ob...
156
  	depends on BLOCK
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
157
  	select MTD_BLKDEVS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
  	---help---
  	  Although most flash chips have an erase size too large to be useful
  	  as block devices, it is possible to use MTD devices which are based
  	  on RAM chips in this manner. This block device is a user of MTD
  	  devices performing that function.
  
  	  At the moment, it is also required for the Journalling Flash File
  	  System(s) to obtain a handle on the MTD device when it's mounted
  	  (although JFFS and JFFS2 don't actually use any of the functionality
  	  of the mtdblock device).
  
  	  Later, it may be extended to perform read/erase/modify/write cycles
  	  on flash chips to emulate a smaller block size. Needless to say,
  	  this is very unsafe, but could be useful for file systems which are
  	  almost never written to.
  
  	  You do not need this option for use with the DiskOnChip devices. For
  	  those, enable NFTL support (CONFIG_NFTL) instead.
  
  config MTD_BLOCK_RO
  	tristate "Readonly block device access to MTD devices"
ec98c681a   Jan Engelhardt   Use menuconfig ob...
179
  	depends on MTD_BLOCK!=y && BLOCK
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
180
  	select MTD_BLKDEVS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
181
182
183
184
185
186
187
188
189
190
  	help
  	  This allows you to mount read-only file systems (such as cramfs)
  	  from an MTD device, without the overhead (and danger) of the caching
  	  driver.
  
  	  You do not need this option for use with the DiskOnChip devices. For
  	  those, enable NFTL support (CONFIG_NFTL) instead.
  
  config FTL
  	tristate "FTL (Flash Translation Layer) support"
ec98c681a   Jan Engelhardt   Use menuconfig ob...
191
  	depends on BLOCK
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
192
  	select MTD_BLKDEVS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
  	---help---
  	  This provides support for the original Flash Translation Layer which
  	  is part of the PCMCIA specification. It uses a kind of pseudo-
  	  file system on a flash device to emulate a block device with
  	  512-byte sectors, on top of which you put a 'normal' file system.
  
  	  You may find that the algorithms used in this code are patented
  	  unless you live in the Free World where software patents aren't
  	  legal - in the USA you are only permitted to use this on PCMCIA
  	  hardware, although under the terms of the GPL you're obviously
  	  permitted to copy, modify and distribute the code as you wish. Just
  	  not use it.
  
  config NFTL
  	tristate "NFTL (NAND Flash Translation Layer) support"
ec98c681a   Jan Engelhardt   Use menuconfig ob...
208
  	depends on BLOCK
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
209
  	select MTD_BLKDEVS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
  	---help---
  	  This provides support for the NAND Flash Translation Layer which is
  	  used on M-Systems' DiskOnChip devices. It uses a kind of pseudo-
  	  file system on a flash device to emulate a block device with
  	  512-byte sectors, on top of which you put a 'normal' file system.
  
  	  You may find that the algorithms used in this code are patented
  	  unless you live in the Free World where software patents aren't
  	  legal - in the USA you are only permitted to use this on DiskOnChip
  	  hardware, although under the terms of the GPL you're obviously
  	  permitted to copy, modify and distribute the code as you wish. Just
  	  not use it.
  
  config NFTL_RW
  	bool "Write support for NFTL"
  	depends on NFTL
  	help
  	  Support for writing to the NAND Flash Translation Layer, as used
  	  on the DiskOnChip.
  
  config INFTL
  	tristate "INFTL (Inverse NAND Flash Translation Layer) support"
ec98c681a   Jan Engelhardt   Use menuconfig ob...
232
  	depends on BLOCK
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
233
  	select MTD_BLKDEVS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
234
  	---help---
97894cda5   Thomas Gleixner   [MTD] core: Clean...
235
  	  This provides support for the Inverse NAND Flash Translation
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
236
237
238
239
240
241
242
243
244
245
246
  	  Layer which is used on M-Systems' newer DiskOnChip devices. It
  	  uses a kind of pseudo-file system on a flash device to emulate
  	  a block device with 512-byte sectors, on top of which you put
  	  a 'normal' file system.
  
  	  You may find that the algorithms used in this code are patented
  	  unless you live in the Free World where software patents aren't
  	  legal - in the USA you are only permitted to use this on DiskOnChip
  	  hardware, although under the terms of the GPL you're obviously
  	  permitted to copy, modify and distribute the code as you wish. Just
  	  not use it.
e27a9960a   Sean Young   [MTD] Add Residen...
247
248
  config RFD_FTL
          tristate "Resident Flash Disk (Flash Translation Layer) support"
ec98c681a   Jan Engelhardt   Use menuconfig ob...
249
  	depends on BLOCK
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
250
  	select MTD_BLKDEVS
e27a9960a   Sean Young   [MTD] Add Residen...
251
  	---help---
97894cda5   Thomas Gleixner   [MTD] core: Clean...
252
253
  	  This provides support for the flash translation layer known
  	  as the Resident Flash Disk (RFD), as used by the Embedded BIOS
cd5f6346b   Kyungmin Park   [MTD] Add initial...
254
255
256
  	  of General Software. There is a blurb at:
  
  		http://www.gensw.com/pages/prod/bios/rfd.htm
e27a9960a   Sean Young   [MTD] Add Residen...
257

51197abf2   Claudio Lanconelli   [MTD] Add SSFDC (...
258
  config SSFDC
892e4fba1   David Woodhouse   [MTD] Fix depende...
259
  	tristate "NAND SSFDC (SmartMedia) read only translation layer"
ec98c681a   Jan Engelhardt   Use menuconfig ob...
260
  	depends on BLOCK
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
261
  	select MTD_BLKDEVS
51197abf2   Claudio Lanconelli   [MTD] Add SSFDC (...
262
263
264
  	help
  	  This enables read only access to SmartMedia formatted NAND
  	  flash. You can mount it with FAT file system.
7d17c02a0   Maxim Levitsky   mtd: Add new Smar...
265
266
267
  
  config SM_FTL
  	tristate "SmartMedia/xD new translation layer"
6372680c8   Kees Cook   drivers/mtd: remo...
268
  	depends on BLOCK
7d17c02a0   Maxim Levitsky   mtd: Add new Smar...
269
  	select MTD_BLKDEVS
e5f710cfc   Maxim Levitsky   mtd: nand: split ...
270
  	select MTD_NAND_ECC
7d17c02a0   Maxim Levitsky   mtd: Add new Smar...
271
  	help
6f92355c6   Maxim Levitsky   mtd: update descr...
272
  	  This enables EXPERIMENTAL R/W support for SmartMedia/xD
7de6f798e   David Woodhouse   mtd: Make SM_FTL ...
273
  	  FTL (Flash translation layer).
6f92355c6   Maxim Levitsky   mtd: update descr...
274
275
276
277
278
279
  	  Write support is only lightly tested, therefore this driver
  	  isn't recommended to use with valuable data (anyway if you have
  	  valuable data, do backups regardless of software/hardware you
  	  use, because you never know what will eat your data...)
  	  If you only need R/O access, you can use older R/O driver
  	  (CONFIG_SSFDC)
7d17c02a0   Maxim Levitsky   mtd: Add new Smar...
280

4b23aff08   Richard Purdie   [MTD] oops and pa...
281
282
  config MTD_OOPS
  	tristate "Log panic/oops to an MTD buffer"
4b23aff08   Richard Purdie   [MTD] oops and pa...
283
284
285
286
  	help
  	  This enables panic and oops messages to be logged to a circular
  	  buffer in a flash partition where it can be read back at some
  	  later point.
a32159024   Jarkko Lavinen   mtd: Add mtdswap ...
287
288
289
290
291
292
293
294
295
  config MTD_SWAP
  	tristate "Swap on MTD device support"
  	depends on MTD && SWAP
  	select MTD_BLKDEVS
  	help
  	  Provides volatile block device driver on top of mtd partition
            suitable for swapping.  The mapping of written blocks is not saved.
  	  The driver provides wear leveling by storing erase counter into the
  	  OOB.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
296
297
298
299
300
301
302
  source "drivers/mtd/chips/Kconfig"
  
  source "drivers/mtd/maps/Kconfig"
  
  source "drivers/mtd/devices/Kconfig"
  
  source "drivers/mtd/nand/Kconfig"
cd5f6346b   Kyungmin Park   [MTD] Add initial...
303
  source "drivers/mtd/onenand/Kconfig"
60f26520e   Alexey Korolev   [MTD] LPDDR Makef...
304
  source "drivers/mtd/lpddr/Kconfig"
b199489d3   Huang Shijie   mtd: spi-nor: add...
305
  source "drivers/mtd/spi-nor/Kconfig"
801c135ce   Artem B. Bityutskiy   UBI: Unsorted Blo...
306
  source "drivers/mtd/ubi/Kconfig"
ec98c681a   Jan Engelhardt   Use menuconfig ob...
307
  endif # MTD