xref: /openbmc/linux/drivers/mtd/devices/Kconfig (revision 615c36f5)
1menu "Self-contained MTD device drivers"
2	depends on MTD!=n
3
4config MTD_PMC551
5	tristate "Ramix PMC551 PCI Mezzanine RAM card support"
6	depends on PCI
7	---help---
8	  This provides a MTD device driver for the Ramix PMC551 RAM PCI card
9	  from Ramix Inc. <http://www.ramix.com/products/memory/pmc551.html>.
10	  These devices come in memory configurations from 32M - 1G.  If you
11	  have one, you probably want to enable this.
12
13	  If this driver is compiled as a module you get the ability to select
14	  the size of the aperture window pointing into the devices memory.
15	  What this means is that if you have a 1G card, normally the kernel
16	  will use a 1G memory map as its view of the device.  As a module,
17	  you can select a 1M window into the memory and the driver will
18	  "slide" the window around the PMC551's memory.  This was
19	  particularly useful on the 2.2 kernels on PPC architectures as there
20	  was limited kernel space to deal with.
21
22config MTD_PMC551_BUGFIX
23	bool "PMC551 256M DRAM Bugfix"
24	depends on MTD_PMC551
25	help
26	  Some of Ramix's PMC551 boards with 256M configurations have invalid
27	  column and row mux values.  This option will fix them, but will
28	  break other memory configurations.  If unsure say N.
29
30config MTD_PMC551_DEBUG
31	bool "PMC551 Debugging"
32	depends on MTD_PMC551
33	help
34	  This option makes the PMC551 more verbose during its operation and
35	  is only really useful if you are developing on this driver or
36	  suspect a possible hardware or driver bug.  If unsure say N.
37
38config MTD_MS02NV
39	tristate "DEC MS02-NV NVRAM module support"
40	depends on MACH_DECSTATION
41	help
42	  This is an MTD driver for the DEC's MS02-NV (54-20948-01) battery
43	  backed-up NVRAM module.  The module was originally meant as an NFS
44	  accelerator.  Say Y here if you have a DECstation 5000/2x0 or a
45	  DECsystem 5900 equipped with such a module.
46
47	  If you want to compile this driver as a module ( = code which can be
48	  inserted in and removed from the running kernel whenever you want),
49	  say M here and read <file:Documentation/kbuild/modules.txt>.
50	  The module will be called ms02-nv.
51
52config MTD_DATAFLASH
53	tristate "Support for AT45xxx DataFlash"
54	depends on SPI_MASTER && EXPERIMENTAL
55	help
56	  This enables access to AT45xxx DataFlash chips, using SPI.
57	  Sometimes DataFlash chips are packaged inside MMC-format
58	  cards; at this writing, the MMC stack won't handle those.
59
60config MTD_DATAFLASH_WRITE_VERIFY
61	bool "Verify DataFlash page writes"
62	depends on MTD_DATAFLASH
63	help
64	  This adds an extra check when data is written to the flash.
65	  It may help if you are verifying chip setup (timings etc) on
66	  your board.  There is a rare possibility that even though the
67	  device thinks the write was successful, a bit could have been
68	  flipped accidentally due to device wear or something else.
69
70config MTD_DATAFLASH_OTP
71	bool "DataFlash OTP support (Security Register)"
72	depends on MTD_DATAFLASH
73	select HAVE_MTD_OTP
74	help
75	  Newer DataFlash chips (revisions C and D) support 128 bytes of
76	  one-time-programmable (OTP) data.  The first half may be written
77	  (once) with up to 64 bytes of data, such as a serial number or
78	  other key product data.  The second half is programmed with a
79	  unique-to-each-chip bit pattern at the factory.
80
81config MTD_M25P80
82	tristate "Support most SPI Flash chips (AT26DF, M25P, W25X, ...)"
83	depends on SPI_MASTER && EXPERIMENTAL
84	help
85	  This enables access to most modern SPI flash chips, used for
86	  program and data storage.   Series supported include Atmel AT26DF,
87	  Spansion S25SL, SST 25VF, ST M25P, and Winbond W25X.  Other chips
88	  are supported as well.  See the driver source for the current list,
89	  or to add other chips.
90
91	  Note that the original DataFlash chips (AT45 series, not AT26DF),
92	  need an entirely different driver.
93
94	  Set up your spi devices with the right board-specific platform data,
95	  if you want to specify device partitioning or to use a device which
96	  doesn't support the JEDEC ID instruction.
97
98config M25PXX_USE_FAST_READ
99	bool "Use FAST_READ OPCode allowing SPI CLK <= 50MHz"
100	depends on MTD_M25P80
101	default y
102	help
103	  This option enables FAST_READ access supported by ST M25Pxx.
104
105config MTD_SST25L
106	tristate "Support SST25L (non JEDEC) SPI Flash chips"
107	depends on SPI_MASTER
108	help
109	  This enables access to the non JEDEC SST25L SPI flash chips, used
110	  for program and data storage.
111
112	  Set up your spi devices with the right board-specific platform data,
113	  if you want to specify device partitioning.
114
115config MTD_SLRAM
116	tristate "Uncached system RAM"
117	help
118	  If your CPU cannot cache all of the physical memory in your machine,
119	  you can still use it for storage or swap by using this driver to
120	  present it to the system as a Memory Technology Device.
121
122config MTD_PHRAM
123	tristate "Physical system RAM"
124	help
125	  This is a re-implementation of the slram driver above.
126
127	  Use this driver to access physical memory that the kernel proper
128	  doesn't have access to, memory beyond the mem=xxx limit, nvram,
129	  memory on the video card, etc...
130
131config MTD_LART
132	tristate "28F160xx flash driver for LART"
133	depends on SA1100_LART
134	help
135	  This enables the flash driver for LART. Please note that you do
136	  not need any mapping/chip driver for LART. This one does it all
137	  for you, so go disable all of those if you enabled some of them (:
138
139config MTD_MTDRAM
140	tristate "Test driver using RAM"
141	help
142	  This enables a test MTD device driver which uses vmalloc() to
143	  provide storage.  You probably want to say 'N' unless you're
144	  testing stuff.
145
146config MTDRAM_TOTAL_SIZE
147	int "MTDRAM device size in KiB"
148	depends on MTD_MTDRAM
149	default "4096"
150	help
151	  This allows you to configure the total size of the MTD device
152	  emulated by the MTDRAM driver.  If the MTDRAM driver is built
153	  as a module, it is also possible to specify this as a parameter when
154	  loading the module.
155
156config MTDRAM_ERASE_SIZE
157	int "MTDRAM erase block size in KiB"
158	depends on MTD_MTDRAM
159	default "128"
160	help
161	  This allows you to configure the size of the erase blocks in the
162	  device emulated by the MTDRAM driver.  If the MTDRAM driver is built
163	  as a module, it is also possible to specify this as a parameter when
164	  loading the module.
165
166#If not a module (I don't want to test it as a module)
167config MTDRAM_ABS_POS
168	hex "SRAM Hexadecimal Absolute position or 0"
169	depends on MTD_MTDRAM=y
170	default "0"
171	help
172	  If you have system RAM accessible by the CPU but not used by Linux
173	  in normal operation, you can give the physical address at which the
174	  available RAM starts, and the MTDRAM driver will use it instead of
175	  allocating space from Linux's available memory. Otherwise, leave
176	  this set to zero. Most people will want to leave this as zero.
177
178config MTD_BLOCK2MTD
179	tristate "MTD using block device"
180	depends on BLOCK
181	help
182	  This driver allows a block device to appear as an MTD. It would
183	  generally be used in the following cases:
184
185	  Using Compact Flash as an MTD, these usually present themselves to
186	  the system as an ATA drive.
187	  Testing MTD users (eg JFFS2) on large media and media that might
188	  be removed during a write (using the floppy drive).
189
190comment "Disk-On-Chip Device Drivers"
191
192config MTD_DOC2000
193	tristate "M-Systems Disk-On-Chip 2000 and Millennium (DEPRECATED)"
194	select MTD_DOCPROBE
195	select MTD_NAND_IDS
196	---help---
197	  This provides an MTD device driver for the M-Systems DiskOnChip
198	  2000 and Millennium devices.  Originally designed for the DiskOnChip
199	  2000, it also now includes support for the DiskOnChip Millennium.
200	  If you have problems with this driver and the DiskOnChip Millennium,
201	  you may wish to try the alternative Millennium driver below. To use
202	  the alternative driver, you will need to undefine DOC_SINGLE_DRIVER
203	  in the <file:drivers/mtd/devices/docprobe.c> source code.
204
205	  If you use this device, you probably also want to enable the NFTL
206	  'NAND Flash Translation Layer' option below, which is used to
207	  emulate a block device by using a kind of file system on the flash
208	  chips.
209
210	  NOTE: This driver is deprecated and will probably be removed soon.
211	  Please try the new DiskOnChip driver under "NAND Flash Device
212	  Drivers".
213
214config MTD_DOC2001
215	tristate "M-Systems Disk-On-Chip Millennium-only alternative driver (DEPRECATED)"
216	select MTD_DOCPROBE
217	select MTD_NAND_IDS
218	---help---
219	  This provides an alternative MTD device driver for the M-Systems
220	  DiskOnChip Millennium devices.  Use this if you have problems with
221	  the combined DiskOnChip 2000 and Millennium driver above.  To get
222	  the DiskOnChip probe code to load and use this driver instead of
223	  the other one, you will need to undefine DOC_SINGLE_DRIVER near
224	  the beginning of <file:drivers/mtd/devices/docprobe.c>.
225
226	  If you use this device, you probably also want to enable the NFTL
227	  'NAND Flash Translation Layer' option below, which is used to
228	  emulate a block device by using a kind of file system on the flash
229	  chips.
230
231	  NOTE: This driver is deprecated and will probably be removed soon.
232	  Please try the new DiskOnChip driver under "NAND Flash Device
233	  Drivers".
234
235config MTD_DOC2001PLUS
236	tristate "M-Systems Disk-On-Chip Millennium Plus"
237	select MTD_DOCPROBE
238	select MTD_NAND_IDS
239	---help---
240	  This provides an MTD device driver for the M-Systems DiskOnChip
241	  Millennium Plus devices.
242
243	  If you use this device, you probably also want to enable the INFTL
244	  'Inverse NAND Flash Translation Layer' option below, which is used
245	  to emulate a block device by using a kind of file system on the
246	  flash chips.
247
248	  NOTE: This driver will soon be replaced by the new DiskOnChip driver
249	  under "NAND Flash Device Drivers" (currently that driver does not
250	  support all Millennium Plus devices).
251
252config MTD_DOCG3
253	tristate "M-Systems Disk-On-Chip G3"
254	---help---
255	  This provides an MTD device driver for the M-Systems DiskOnChip
256	  G3 devices.
257
258	  The driver provides access to G3 DiskOnChip, distributed by
259	  M-Systems and now Sandisk. The support is very experimental,
260	  and doesn't give access to any write operations.
261
262config MTD_DOCPROBE
263	tristate
264	select MTD_DOCECC
265
266config MTD_DOCECC
267	tristate
268
269config MTD_DOCPROBE_ADVANCED
270	bool "Advanced detection options for DiskOnChip"
271	depends on MTD_DOCPROBE
272	help
273	  This option allows you to specify nonstandard address at which to
274	  probe for a DiskOnChip, or to change the detection options.  You
275	  are unlikely to need any of this unless you are using LinuxBIOS.
276	  Say 'N'.
277
278config MTD_DOCPROBE_ADDRESS
279	hex "Physical address of DiskOnChip" if MTD_DOCPROBE_ADVANCED
280	depends on MTD_DOCPROBE
281	default "0x0"
282	---help---
283	  By default, the probe for DiskOnChip devices will look for a
284	  DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
285	  This option allows you to specify a single address at which to probe
286	  for the device, which is useful if you have other devices in that
287	  range which get upset when they are probed.
288
289	  (Note that on PowerPC, the normal probe will only check at
290	  0xE4000000.)
291
292	  Normally, you should leave this set to zero, to allow the probe at
293	  the normal addresses.
294
295config MTD_DOCPROBE_HIGH
296	bool "Probe high addresses"
297	depends on MTD_DOCPROBE_ADVANCED
298	help
299	  By default, the probe for DiskOnChip devices will look for a
300	  DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
301	  This option changes to make it probe between 0xFFFC8000 and
302	  0xFFFEE000.  Unless you are using LinuxBIOS, this is unlikely to be
303	  useful to you.  Say 'N'.
304
305config MTD_DOCPROBE_55AA
306	bool "Probe for 0x55 0xAA BIOS Extension Signature"
307	depends on MTD_DOCPROBE_ADVANCED
308	help
309	  Check for the 0x55 0xAA signature of a DiskOnChip, and do not
310	  continue with probing if it is absent.  The signature will always be
311	  present for a DiskOnChip 2000 or a normal DiskOnChip Millennium.
312	  Only if you have overwritten the first block of a DiskOnChip
313	  Millennium will it be absent.  Enable this option if you are using
314	  LinuxBIOS or if you need to recover a DiskOnChip Millennium on which
315	  you have managed to wipe the first block.
316
317endmenu
318