xref: /openbmc/linux/drivers/mtd/devices/Kconfig (revision d13d19ece39f20bf097782e1812a9c31a5a4fcf1)
11da177e4SLinus Torvaldsmenu "Self-contained MTD device drivers"
21da177e4SLinus Torvalds	depends on MTD!=n
31da177e4SLinus Torvalds
41da177e4SLinus Torvaldsconfig MTD_PMC551
51da177e4SLinus Torvalds	tristate "Ramix PMC551 PCI Mezzanine RAM card support"
6ec98c681SJan Engelhardt	depends on PCI
71da177e4SLinus Torvalds	---help---
81da177e4SLinus Torvalds	  This provides a MTD device driver for the Ramix PMC551 RAM PCI card
91da177e4SLinus Torvalds	  from Ramix Inc. <http://www.ramix.com/products/memory/pmc551.html>.
101da177e4SLinus Torvalds	  These devices come in memory configurations from 32M - 1G.  If you
111da177e4SLinus Torvalds	  have one, you probably want to enable this.
121da177e4SLinus Torvalds
131da177e4SLinus Torvalds	  If this driver is compiled as a module you get the ability to select
141da177e4SLinus Torvalds	  the size of the aperture window pointing into the devices memory.
151da177e4SLinus Torvalds	  What this means is that if you have a 1G card, normally the kernel
161da177e4SLinus Torvalds	  will use a 1G memory map as its view of the device.  As a module,
171da177e4SLinus Torvalds	  you can select a 1M window into the memory and the driver will
181da177e4SLinus Torvalds	  "slide" the window around the PMC551's memory.  This was
191da177e4SLinus Torvalds	  particularly useful on the 2.2 kernels on PPC architectures as there
201da177e4SLinus Torvalds	  was limited kernel space to deal with.
211da177e4SLinus Torvalds
221da177e4SLinus Torvaldsconfig MTD_PMC551_BUGFIX
231da177e4SLinus Torvalds	bool "PMC551 256M DRAM Bugfix"
241da177e4SLinus Torvalds	depends on MTD_PMC551
251da177e4SLinus Torvalds	help
261da177e4SLinus Torvalds	  Some of Ramix's PMC551 boards with 256M configurations have invalid
271da177e4SLinus Torvalds	  column and row mux values.  This option will fix them, but will
281da177e4SLinus Torvalds	  break other memory configurations.  If unsure say N.
291da177e4SLinus Torvalds
301da177e4SLinus Torvaldsconfig MTD_PMC551_DEBUG
311da177e4SLinus Torvalds	bool "PMC551 Debugging"
321da177e4SLinus Torvalds	depends on MTD_PMC551
331da177e4SLinus Torvalds	help
341da177e4SLinus Torvalds	  This option makes the PMC551 more verbose during its operation and
351da177e4SLinus Torvalds	  is only really useful if you are developing on this driver or
361da177e4SLinus Torvalds	  suspect a possible hardware or driver bug.  If unsure say N.
371da177e4SLinus Torvalds
381da177e4SLinus Torvaldsconfig MTD_MS02NV
391da177e4SLinus Torvalds	tristate "DEC MS02-NV NVRAM module support"
40ec98c681SJan Engelhardt	depends on MACH_DECSTATION
411da177e4SLinus Torvalds	help
421da177e4SLinus Torvalds	  This is an MTD driver for the DEC's MS02-NV (54-20948-01) battery
431da177e4SLinus Torvalds	  backed-up NVRAM module.  The module was originally meant as an NFS
441da177e4SLinus Torvalds	  accelerator.  Say Y here if you have a DECstation 5000/2x0 or a
451da177e4SLinus Torvalds	  DECsystem 5900 equipped with such a module.
461da177e4SLinus Torvalds
47be21ce11SMartin Michlmayr	  If you want to compile this driver as a module ( = code which can be
48be21ce11SMartin Michlmayr	  inserted in and removed from the running kernel whenever you want),
4939f5fb30SAlexander E. Patrakov	  say M here and read <file:Documentation/kbuild/modules.txt>.
504737f097SPavel Machek	  The module will be called ms02-nv.
51be21ce11SMartin Michlmayr
521d6432feSDavid Brownellconfig MTD_DATAFLASH
531d6432feSDavid Brownell	tristate "Support for AT45xxx DataFlash"
54ec98c681SJan Engelhardt	depends on SPI_MASTER && EXPERIMENTAL
551d6432feSDavid Brownell	help
561d6432feSDavid Brownell	  This enables access to AT45xxx DataFlash chips, using SPI.
571d6432feSDavid Brownell	  Sometimes DataFlash chips are packaged inside MMC-format
581d6432feSDavid Brownell	  cards; at this writing, the MMC stack won't handle those.
591d6432feSDavid Brownell
608c64038eSDavid Brownellconfig MTD_DATAFLASH_WRITE_VERIFY
618c64038eSDavid Brownell	bool "Verify DataFlash page writes"
628c64038eSDavid Brownell	depends on MTD_DATAFLASH
638c64038eSDavid Brownell	help
648c64038eSDavid Brownell	  This adds an extra check when data is written to the flash.
658c64038eSDavid Brownell	  It may help if you are verifying chip setup (timings etc) on
668c64038eSDavid Brownell	  your board.  There is a rare possibility that even though the
678c64038eSDavid Brownell	  device thinks the write was successful, a bit could have been
688c64038eSDavid Brownell	  flipped accidentally due to device wear or something else.
698c64038eSDavid Brownell
7034a82443SDavid Brownellconfig MTD_DATAFLASH_OTP
7134a82443SDavid Brownell	bool "DataFlash OTP support (Security Register)"
7234a82443SDavid Brownell	depends on MTD_DATAFLASH
7334a82443SDavid Brownell	select HAVE_MTD_OTP
7434a82443SDavid Brownell	help
7534a82443SDavid Brownell	  Newer DataFlash chips (revisions C and D) support 128 bytes of
7634a82443SDavid Brownell	  one-time-programmable (OTP) data.  The first half may be written
7734a82443SDavid Brownell	  (once) with up to 64 bytes of data, such as a serial number or
7834a82443SDavid Brownell	  other key product data.  The second half is programmed with a
7934a82443SDavid Brownell	  unique-to-each-chip bit pattern at the factory.
8034a82443SDavid Brownell
812f9f7628SMike Lavenderconfig MTD_M25P80
82fa0a8c71SDavid Brownell	tristate "Support most SPI Flash chips (AT26DF, M25P, W25X, ...)"
83ec98c681SJan Engelhardt	depends on SPI_MASTER && EXPERIMENTAL
842f9f7628SMike Lavender	help
85fa0a8c71SDavid Brownell	  This enables access to most modern SPI flash chips, used for
86fa0a8c71SDavid Brownell	  program and data storage.   Series supported include Atmel AT26DF,
87fa0a8c71SDavid Brownell	  Spansion S25SL, SST 25VF, ST M25P, and Winbond W25X.  Other chips
88fa0a8c71SDavid Brownell	  are supported as well.  See the driver source for the current list,
89fa0a8c71SDavid Brownell	  or to add other chips.
90fa0a8c71SDavid Brownell
91fa0a8c71SDavid Brownell	  Note that the original DataFlash chips (AT45 series, not AT26DF),
92fa0a8c71SDavid Brownell	  need an entirely different driver.
93fa0a8c71SDavid Brownell
94fa0a8c71SDavid Brownell	  Set up your spi devices with the right board-specific platform data,
95fa0a8c71SDavid Brownell	  if you want to specify device partitioning or to use a device which
96fa0a8c71SDavid Brownell	  doesn't support the JEDEC ID instruction.
972f9f7628SMike Lavender
982230b76bSBryan Wuconfig M25PXX_USE_FAST_READ
992230b76bSBryan Wu	bool "Use FAST_READ OPCode allowing SPI CLK <= 50MHz"
1002230b76bSBryan Wu	depends on MTD_M25P80
1012230b76bSBryan Wu	default y
1022230b76bSBryan Wu	help
1032230b76bSBryan Wu	  This option enables FAST_READ access supported by ST M25Pxx.
1042230b76bSBryan Wu
105ec77e21bSRyan Mallonconfig MTD_SST25L
106ec77e21bSRyan Mallon	tristate "Support SST25L (non JEDEC) SPI Flash chips"
107ec77e21bSRyan Mallon	depends on SPI_MASTER
108ec77e21bSRyan Mallon	help
109ec77e21bSRyan Mallon	  This enables access to the non JEDEC SST25L SPI flash chips, used
110ec77e21bSRyan Mallon	  for program and data storage.
111ec77e21bSRyan Mallon
112ec77e21bSRyan Mallon	  Set up your spi devices with the right board-specific platform data,
113ec77e21bSRyan Mallon	  if you want to specify device partitioning.
114ec77e21bSRyan Mallon
1151da177e4SLinus Torvaldsconfig MTD_SLRAM
1161da177e4SLinus Torvalds	tristate "Uncached system RAM"
1171da177e4SLinus Torvalds	help
1181da177e4SLinus Torvalds	  If your CPU cannot cache all of the physical memory in your machine,
1191da177e4SLinus Torvalds	  you can still use it for storage or swap by using this driver to
1201da177e4SLinus Torvalds	  present it to the system as a Memory Technology Device.
1211da177e4SLinus Torvalds
1221da177e4SLinus Torvaldsconfig MTD_PHRAM
1231da177e4SLinus Torvalds	tristate "Physical system RAM"
1241da177e4SLinus Torvalds	help
1251da177e4SLinus Torvalds	  This is a re-implementation of the slram driver above.
1261da177e4SLinus Torvalds
1271da177e4SLinus Torvalds	  Use this driver to access physical memory that the kernel proper
1281da177e4SLinus Torvalds	  doesn't have access to, memory beyond the mem=xxx limit, nvram,
1291da177e4SLinus Torvalds	  memory on the video card, etc...
1301da177e4SLinus Torvalds
1311da177e4SLinus Torvaldsconfig MTD_LART
1321da177e4SLinus Torvalds	tristate "28F160xx flash driver for LART"
133ec98c681SJan Engelhardt	depends on SA1100_LART
1341da177e4SLinus Torvalds	help
1351da177e4SLinus Torvalds	  This enables the flash driver for LART. Please note that you do
1361da177e4SLinus Torvalds	  not need any mapping/chip driver for LART. This one does it all
1371da177e4SLinus Torvalds	  for you, so go disable all of those if you enabled some of them (:
1381da177e4SLinus Torvalds
1391da177e4SLinus Torvaldsconfig MTD_MTDRAM
1401da177e4SLinus Torvalds	tristate "Test driver using RAM"
1411da177e4SLinus Torvalds	help
1421da177e4SLinus Torvalds	  This enables a test MTD device driver which uses vmalloc() to
1431da177e4SLinus Torvalds	  provide storage.  You probably want to say 'N' unless you're
1441da177e4SLinus Torvalds	  testing stuff.
1451da177e4SLinus Torvalds
1461da177e4SLinus Torvaldsconfig MTDRAM_TOTAL_SIZE
1471da177e4SLinus Torvalds	int "MTDRAM device size in KiB"
1481da177e4SLinus Torvalds	depends on MTD_MTDRAM
1491da177e4SLinus Torvalds	default "4096"
1501da177e4SLinus Torvalds	help
1511da177e4SLinus Torvalds	  This allows you to configure the total size of the MTD device
1521da177e4SLinus Torvalds	  emulated by the MTDRAM driver.  If the MTDRAM driver is built
1531da177e4SLinus Torvalds	  as a module, it is also possible to specify this as a parameter when
1541da177e4SLinus Torvalds	  loading the module.
1551da177e4SLinus Torvalds
1561da177e4SLinus Torvaldsconfig MTDRAM_ERASE_SIZE
1571da177e4SLinus Torvalds	int "MTDRAM erase block size in KiB"
1581da177e4SLinus Torvalds	depends on MTD_MTDRAM
1591da177e4SLinus Torvalds	default "128"
1601da177e4SLinus Torvalds	help
1611da177e4SLinus Torvalds	  This allows you to configure the size of the erase blocks in the
1621da177e4SLinus Torvalds	  device emulated by the MTDRAM driver.  If the MTDRAM driver is built
1631da177e4SLinus Torvalds	  as a module, it is also possible to specify this as a parameter when
1641da177e4SLinus Torvalds	  loading the module.
1651da177e4SLinus Torvalds
1661da177e4SLinus Torvalds#If not a module (I don't want to test it as a module)
1671da177e4SLinus Torvaldsconfig MTDRAM_ABS_POS
1681da177e4SLinus Torvalds	hex "SRAM Hexadecimal Absolute position or 0"
1691da177e4SLinus Torvalds	depends on MTD_MTDRAM=y
1701da177e4SLinus Torvalds	default "0"
1711da177e4SLinus Torvalds	help
1721da177e4SLinus Torvalds	  If you have system RAM accessible by the CPU but not used by Linux
1731da177e4SLinus Torvalds	  in normal operation, you can give the physical address at which the
1741da177e4SLinus Torvalds	  available RAM starts, and the MTDRAM driver will use it instead of
1751da177e4SLinus Torvalds	  allocating space from Linux's available memory. Otherwise, leave
1761da177e4SLinus Torvalds	  this set to zero. Most people will want to leave this as zero.
1771da177e4SLinus Torvalds
178acc8dadcSJoern Engelconfig MTD_BLOCK2MTD
179acc8dadcSJoern Engel	tristate "MTD using block device"
180ec98c681SJan Engelhardt	depends on BLOCK
1811da177e4SLinus Torvalds	help
1821da177e4SLinus Torvalds	  This driver allows a block device to appear as an MTD. It would
1831da177e4SLinus Torvalds	  generally be used in the following cases:
1841da177e4SLinus Torvalds
1851da177e4SLinus Torvalds	  Using Compact Flash as an MTD, these usually present themselves to
1861da177e4SLinus Torvalds	  the system as an ATA drive.
1871da177e4SLinus Torvalds	  Testing MTD users (eg JFFS2) on large media and media that might
1881da177e4SLinus Torvalds	  be removed during a write (using the floppy drive).
1891da177e4SLinus Torvalds
1901da177e4SLinus Torvaldscomment "Disk-On-Chip Device Drivers"
1911da177e4SLinus Torvalds
1921da177e4SLinus Torvaldsconfig MTD_DOC2000
1931da177e4SLinus Torvalds	tristate "M-Systems Disk-On-Chip 2000 and Millennium (DEPRECATED)"
1941da177e4SLinus Torvalds	select MTD_DOCPROBE
1951da177e4SLinus Torvalds	select MTD_NAND_IDS
1961da177e4SLinus Torvalds	---help---
1971da177e4SLinus Torvalds	  This provides an MTD device driver for the M-Systems DiskOnChip
1981da177e4SLinus Torvalds	  2000 and Millennium devices.  Originally designed for the DiskOnChip
1991da177e4SLinus Torvalds	  2000, it also now includes support for the DiskOnChip Millennium.
2001da177e4SLinus Torvalds	  If you have problems with this driver and the DiskOnChip Millennium,
2011da177e4SLinus Torvalds	  you may wish to try the alternative Millennium driver below. To use
2021da177e4SLinus Torvalds	  the alternative driver, you will need to undefine DOC_SINGLE_DRIVER
2031da177e4SLinus Torvalds	  in the <file:drivers/mtd/devices/docprobe.c> source code.
2041da177e4SLinus Torvalds
2051da177e4SLinus Torvalds	  If you use this device, you probably also want to enable the NFTL
2061da177e4SLinus Torvalds	  'NAND Flash Translation Layer' option below, which is used to
2071da177e4SLinus Torvalds	  emulate a block device by using a kind of file system on the flash
2081da177e4SLinus Torvalds	  chips.
2091da177e4SLinus Torvalds
2101da177e4SLinus Torvalds	  NOTE: This driver is deprecated and will probably be removed soon.
2111da177e4SLinus Torvalds	  Please try the new DiskOnChip driver under "NAND Flash Device
2121da177e4SLinus Torvalds	  Drivers".
2131da177e4SLinus Torvalds
2141da177e4SLinus Torvaldsconfig MTD_DOC2001
2151da177e4SLinus Torvalds	tristate "M-Systems Disk-On-Chip Millennium-only alternative driver (DEPRECATED)"
2161da177e4SLinus Torvalds	select MTD_DOCPROBE
2171da177e4SLinus Torvalds	select MTD_NAND_IDS
2181da177e4SLinus Torvalds	---help---
2191da177e4SLinus Torvalds	  This provides an alternative MTD device driver for the M-Systems
2201da177e4SLinus Torvalds	  DiskOnChip Millennium devices.  Use this if you have problems with
2211da177e4SLinus Torvalds	  the combined DiskOnChip 2000 and Millennium driver above.  To get
2221da177e4SLinus Torvalds	  the DiskOnChip probe code to load and use this driver instead of
2231da177e4SLinus Torvalds	  the other one, you will need to undefine DOC_SINGLE_DRIVER near
2241da177e4SLinus Torvalds	  the beginning of <file:drivers/mtd/devices/docprobe.c>.
2251da177e4SLinus Torvalds
2261da177e4SLinus Torvalds	  If you use this device, you probably also want to enable the NFTL
2271da177e4SLinus Torvalds	  'NAND Flash Translation Layer' option below, which is used to
2281da177e4SLinus Torvalds	  emulate a block device by using a kind of file system on the flash
2291da177e4SLinus Torvalds	  chips.
2301da177e4SLinus Torvalds
2311da177e4SLinus Torvalds	  NOTE: This driver is deprecated and will probably be removed soon.
2321da177e4SLinus Torvalds	  Please try the new DiskOnChip driver under "NAND Flash Device
2331da177e4SLinus Torvalds	  Drivers".
2341da177e4SLinus Torvalds
2351da177e4SLinus Torvaldsconfig MTD_DOC2001PLUS
2361da177e4SLinus Torvalds	tristate "M-Systems Disk-On-Chip Millennium Plus"
2371da177e4SLinus Torvalds	select MTD_DOCPROBE
2381da177e4SLinus Torvalds	select MTD_NAND_IDS
2391da177e4SLinus Torvalds	---help---
2401da177e4SLinus Torvalds	  This provides an MTD device driver for the M-Systems DiskOnChip
2411da177e4SLinus Torvalds	  Millennium Plus devices.
2421da177e4SLinus Torvalds
2431da177e4SLinus Torvalds	  If you use this device, you probably also want to enable the INFTL
2441da177e4SLinus Torvalds	  'Inverse NAND Flash Translation Layer' option below, which is used
2451da177e4SLinus Torvalds	  to emulate a block device by using a kind of file system on the
2461da177e4SLinus Torvalds	  flash chips.
2471da177e4SLinus Torvalds
2481da177e4SLinus Torvalds	  NOTE: This driver will soon be replaced by the new DiskOnChip driver
2491da177e4SLinus Torvalds	  under "NAND Flash Device Drivers" (currently that driver does not
2501da177e4SLinus Torvalds	  support all Millennium Plus devices).
2511da177e4SLinus Torvalds
252efa2ca73SRobert Jarzmikconfig MTD_DOCG3
253efa2ca73SRobert Jarzmik	tristate "M-Systems Disk-On-Chip G3"
254*d13d19ecSRobert Jarzmik	select BCH
255*d13d19ecSRobert Jarzmik	select BCH_CONST_PARAMS
256efa2ca73SRobert Jarzmik	---help---
257efa2ca73SRobert Jarzmik	  This provides an MTD device driver for the M-Systems DiskOnChip
258efa2ca73SRobert Jarzmik	  G3 devices.
259efa2ca73SRobert Jarzmik
260efa2ca73SRobert Jarzmik	  The driver provides access to G3 DiskOnChip, distributed by
261efa2ca73SRobert Jarzmik	  M-Systems and now Sandisk. The support is very experimental,
262efa2ca73SRobert Jarzmik	  and doesn't give access to any write operations.
263efa2ca73SRobert Jarzmik
264*d13d19ecSRobert Jarzmikif MTD_DOCG3
265*d13d19ecSRobert Jarzmikconfig BCH_CONST_M
266*d13d19ecSRobert Jarzmik	default 14
267*d13d19ecSRobert Jarzmikconfig BCH_CONST_T
268*d13d19ecSRobert Jarzmik	default 4
269*d13d19ecSRobert Jarzmikendif
270*d13d19ecSRobert Jarzmik
2711da177e4SLinus Torvaldsconfig MTD_DOCPROBE
2721da177e4SLinus Torvalds	tristate
2731da177e4SLinus Torvalds	select MTD_DOCECC
2741da177e4SLinus Torvalds
2751da177e4SLinus Torvaldsconfig MTD_DOCECC
2761da177e4SLinus Torvalds	tristate
2771da177e4SLinus Torvalds
2781da177e4SLinus Torvaldsconfig MTD_DOCPROBE_ADVANCED
2791da177e4SLinus Torvalds	bool "Advanced detection options for DiskOnChip"
2801da177e4SLinus Torvalds	depends on MTD_DOCPROBE
2811da177e4SLinus Torvalds	help
2821da177e4SLinus Torvalds	  This option allows you to specify nonstandard address at which to
2831da177e4SLinus Torvalds	  probe for a DiskOnChip, or to change the detection options.  You
2841da177e4SLinus Torvalds	  are unlikely to need any of this unless you are using LinuxBIOS.
2851da177e4SLinus Torvalds	  Say 'N'.
2861da177e4SLinus Torvalds
2871da177e4SLinus Torvaldsconfig MTD_DOCPROBE_ADDRESS
2881da177e4SLinus Torvalds	hex "Physical address of DiskOnChip" if MTD_DOCPROBE_ADVANCED
2891da177e4SLinus Torvalds	depends on MTD_DOCPROBE
2906be55f79SPaul Bolle	default "0x0"
2911da177e4SLinus Torvalds	---help---
2921da177e4SLinus Torvalds	  By default, the probe for DiskOnChip devices will look for a
2931da177e4SLinus Torvalds	  DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
2941da177e4SLinus Torvalds	  This option allows you to specify a single address at which to probe
2951da177e4SLinus Torvalds	  for the device, which is useful if you have other devices in that
2961da177e4SLinus Torvalds	  range which get upset when they are probed.
2971da177e4SLinus Torvalds
2981da177e4SLinus Torvalds	  (Note that on PowerPC, the normal probe will only check at
2991da177e4SLinus Torvalds	  0xE4000000.)
3001da177e4SLinus Torvalds
3011da177e4SLinus Torvalds	  Normally, you should leave this set to zero, to allow the probe at
3021da177e4SLinus Torvalds	  the normal addresses.
3031da177e4SLinus Torvalds
3041da177e4SLinus Torvaldsconfig MTD_DOCPROBE_HIGH
3051da177e4SLinus Torvalds	bool "Probe high addresses"
3061da177e4SLinus Torvalds	depends on MTD_DOCPROBE_ADVANCED
3071da177e4SLinus Torvalds	help
3081da177e4SLinus Torvalds	  By default, the probe for DiskOnChip devices will look for a
3091da177e4SLinus Torvalds	  DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
3101da177e4SLinus Torvalds	  This option changes to make it probe between 0xFFFC8000 and
3111da177e4SLinus Torvalds	  0xFFFEE000.  Unless you are using LinuxBIOS, this is unlikely to be
3121da177e4SLinus Torvalds	  useful to you.  Say 'N'.
3131da177e4SLinus Torvalds
3141da177e4SLinus Torvaldsconfig MTD_DOCPROBE_55AA
3151da177e4SLinus Torvalds	bool "Probe for 0x55 0xAA BIOS Extension Signature"
3161da177e4SLinus Torvalds	depends on MTD_DOCPROBE_ADVANCED
3171da177e4SLinus Torvalds	help
3181da177e4SLinus Torvalds	  Check for the 0x55 0xAA signature of a DiskOnChip, and do not
3191da177e4SLinus Torvalds	  continue with probing if it is absent.  The signature will always be
3201da177e4SLinus Torvalds	  present for a DiskOnChip 2000 or a normal DiskOnChip Millennium.
3211da177e4SLinus Torvalds	  Only if you have overwritten the first block of a DiskOnChip
3221da177e4SLinus Torvalds	  Millennium will it be absent.  Enable this option if you are using
3231da177e4SLinus Torvalds	  LinuxBIOS or if you need to recover a DiskOnChip Millennium on which
3241da177e4SLinus Torvalds	  you have managed to wipe the first block.
3251da177e4SLinus Torvalds
3261da177e4SLinus Torvaldsendmenu
327