Blame view

drivers/mtd/Kconfig 11.3 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"
e25df1205   Martin Schwidefsky   [S390] Kconfig: m...
3
  	depends on HAS_IOMEM
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
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
13
14
  config MTD_DEBUG
  	bool "Debugging"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
15
16
17
18
19
20
21
22
23
24
  	help
  	  This turns on low-level debugging for the entire MTD sub-system.
  	  Normally, you should say 'N'.
  
  config MTD_DEBUG_VERBOSE
  	int "Debugging verbosity (0 = quiet, 3 = noisy)"
  	depends on MTD_DEBUG
  	default "0"
  	help
  	  Determines the verbosity level of the MTD debugging messages.
80f53da0a   Mike Frysinger   mtd: fix order of...
25
26
27
28
29
30
31
  config MTD_TESTS
  	tristate "MTD tests support"
  	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.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
32
33
  config MTD_REDBOOT_PARTS
  	tristate "RedBoot partition table parsing"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
34
35
36
37
38
39
40
41
42
  	---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...
43
  	  this option.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
44
45
  
  	  You will still need the parsing functions to be called by the driver
97894cda5   Thomas Gleixner   [MTD] core: Clean...
46
47
  	  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
48
  	  example.
b7b6e08f9   Grant Likely   mtd: Fix MTD_OF_P...
49
  if MTD_REDBOOT_PARTS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
50
51
  config MTD_REDBOOT_DIRECTORY_BLOCK
  	int "Location of RedBoot partition table"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
52
53
54
55
56
57
58
  	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...
59
  	  partition table.  A zero or positive value gives an absolute
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
60
61
  	  erase block number. A negative value specifies a number of
  	  sectors before the end of the device.
97894cda5   Thomas Gleixner   [MTD] core: Clean...
62

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

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
66
  config MTD_REDBOOT_PARTS_UNALLOCATED
e55a3e8ae   Roman Zippel   kconfig: remove l...
67
  	bool "Include unallocated flash regions"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
68
69
70
71
72
  	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...
73
  	bool "Force read-only for RedBoot system images"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
74
75
76
  	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...
77
  endif # MTD_REDBOOT_PARTS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
78
79
  config MTD_CMDLINE_PARTS
  	bool "Command line partition table parsing"
6a8a98b22   Jamie Iles   mtd: kill CONFIG_...
80
  	depends on MTD = "y"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
81
  	---help---
4992a9e88   Egry Gábor   Trivial typo fixe...
82
  	  Allow generic configuration of the MTD partition tables via the kernel
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
83
  	  command line. Multiple flash resources are supported for hardware where
97894cda5   Thomas Gleixner   [MTD] core: Clean...
84
  	  different kinds of flash memory are available.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
85
86
  
  	  You will still need the parsing functions to be called by the driver
97894cda5   Thomas Gleixner   [MTD] core: Clean...
87
88
  	  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
89
90
91
92
93
94
95
96
  	  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...
97
  	  <size>    := standard linux memsize OR "-" to denote all
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
98
99
  	  remaining space
  	  <name>    := (NAME)
97894cda5   Thomas Gleixner   [MTD] core: Clean...
100
101
  	  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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
  	  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...
116
  	depends on ARM
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
117
118
119
120
121
122
123
124
125
126
127
  	---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:...
128
  	  'physmap' map driver (CONFIG_MTD_PHYSMAP) does this, for example.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
129

9a310d211   Scott Wood   [MTD] Factor out ...
130
  config MTD_OF_PARTS
b7b6e08f9   Grant Likely   mtd: Fix MTD_OF_P...
131
132
  	def_bool y
  	depends on OF
9a310d211   Scott Wood   [MTD] Factor out ...
133
134
135
136
  	help
  	  This provides a partition parsing function which derives
  	  the partition map from the children of the flash node,
  	  as described in Documentation/powerpc/booting-without-of.txt.
f0797881d   Matteo Croce   [MTD] AR7 mtd par...
137
138
  config MTD_AR7_PARTS
  	tristate "TI AR7 partitioning support"
f0797881d   Matteo Croce   [MTD] AR7 mtd par...
139
140
  	---help---
  	  TI AR7 partitioning support
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
141
  comment "User Modules And Translation Layers"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
142
143
144
  
  config MTD_CHAR
  	tristate "Direct char device access to MTD devices"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
145
146
147
148
149
  	help
  	  This provides a character device for each MTD device present in
  	  the system, allowing the user to read and write directly to the
  	  memory chips, and also use ioctl() to obtain information about
  	  the device, or to erase parts of it.
34a82443b   David Brownell   [MTD] dataflash O...
150
151
152
153
  config HAVE_MTD_OTP
  	bool
  	help
  	  Enable access to OTP regions using MTD_CHAR.
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
154
155
  config MTD_BLKDEVS
  	tristate "Common interface to block layer for MTD 'translation layers'"
ec98c681a   Jan Engelhardt   Use menuconfig ob...
156
  	depends on BLOCK
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
157
  	default n
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
158
159
  config MTD_BLOCK
  	tristate "Caching block device access to MTD devices"
ec98c681a   Jan Engelhardt   Use menuconfig ob...
160
  	depends on BLOCK
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
161
  	select MTD_BLKDEVS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
  	---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...
183
  	depends on MTD_BLOCK!=y && BLOCK
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
184
  	select MTD_BLKDEVS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
185
186
187
188
189
190
191
192
193
194
  	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...
195
  	depends on BLOCK
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
196
  	select MTD_BLKDEVS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
  	---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...
212
  	depends on BLOCK
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
213
  	select MTD_BLKDEVS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
  	---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...
236
  	depends on BLOCK
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
237
  	select MTD_BLKDEVS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
238
  	---help---
97894cda5   Thomas Gleixner   [MTD] core: Clean...
239
  	  This provides support for the Inverse NAND Flash Translation
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
240
241
242
243
244
245
246
247
248
249
250
  	  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...
251
252
  config RFD_FTL
          tristate "Resident Flash Disk (Flash Translation Layer) support"
ec98c681a   Jan Engelhardt   Use menuconfig ob...
253
  	depends on BLOCK
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
254
  	select MTD_BLKDEVS
e27a9960a   Sean Young   [MTD] Add Residen...
255
  	---help---
97894cda5   Thomas Gleixner   [MTD] core: Clean...
256
257
  	  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...
258
259
260
  	  of General Software. There is a blurb at:
  
  		http://www.gensw.com/pages/prod/bios/rfd.htm
e27a9960a   Sean Young   [MTD] Add Residen...
261

51197abf2   Claudio Lanconelli   [MTD] Add SSFDC (...
262
  config SSFDC
892e4fba1   David Woodhouse   [MTD] Fix depende...
263
  	tristate "NAND SSFDC (SmartMedia) read only translation layer"
ec98c681a   Jan Engelhardt   Use menuconfig ob...
264
  	depends on BLOCK
f6a7ecb18   Josh Boyer   [MTD] add MTD_BLK...
265
  	select MTD_BLKDEVS
51197abf2   Claudio Lanconelli   [MTD] Add SSFDC (...
266
267
268
  	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...
269
270
271
  
  config SM_FTL
  	tristate "SmartMedia/xD new translation layer"
e5f710cfc   Maxim Levitsky   mtd: nand: split ...
272
  	depends on EXPERIMENTAL && BLOCK
7d17c02a0   Maxim Levitsky   mtd: Add new Smar...
273
  	select MTD_BLKDEVS
e5f710cfc   Maxim Levitsky   mtd: nand: split ...
274
  	select MTD_NAND_ECC
7d17c02a0   Maxim Levitsky   mtd: Add new Smar...
275
  	help
6f92355c6   Maxim Levitsky   mtd: update descr...
276
  	  This enables EXPERIMENTAL R/W support for SmartMedia/xD
7de6f798e   David Woodhouse   mtd: Make SM_FTL ...
277
  	  FTL (Flash translation layer).
6f92355c6   Maxim Levitsky   mtd: update descr...
278
279
280
281
282
283
  	  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...
284

4b23aff08   Richard Purdie   [MTD] oops and pa...
285
286
  config MTD_OOPS
  	tristate "Log panic/oops to an MTD buffer"
4b23aff08   Richard Purdie   [MTD] oops and pa...
287
288
289
290
  	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.
256331d53   Peter Korsgaard   [MTD] mtdoops: Do...
291
292
  	  To use, add console=ttyMTDx to the kernel command line,
  	  where x is the MTD device number to use.
a32159024   Jarkko Lavinen   mtd: Add mtdswap ...
293
294
295
296
297
298
299
300
301
  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
302
303
304
305
306
307
308
  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...
309
  source "drivers/mtd/onenand/Kconfig"
60f26520e   Alexey Korolev   [MTD] LPDDR Makef...
310
  source "drivers/mtd/lpddr/Kconfig"
801c135ce   Artem B. Bityutskiy   UBI: Unsorted Blo...
311
  source "drivers/mtd/ubi/Kconfig"
ec98c681a   Jan Engelhardt   Use menuconfig ob...
312
  endif # MTD