xref: /linux/drivers/mtd/Kconfig (revision 4992a9e88886b0c5ebc3d27eb74d0344c873eeea)
197894cdaSThomas Gleixner# $Id: Kconfig,v 1.11 2005/11/07 11:14:19 gleixner Exp $
21da177e4SLinus Torvalds
31da177e4SLinus Torvaldsmenu "Memory Technology Devices (MTD)"
41da177e4SLinus Torvalds
51da177e4SLinus Torvaldsconfig MTD
61da177e4SLinus Torvalds	tristate "Memory Technology Device (MTD) support"
71da177e4SLinus Torvalds	help
81da177e4SLinus Torvalds	  Memory Technology Devices are flash, RAM and similar chips, often
91da177e4SLinus Torvalds	  used for solid state file systems on embedded devices. This option
101da177e4SLinus Torvalds	  will provide the generic support for MTD drivers to register
111da177e4SLinus Torvalds	  themselves with the kernel and for potential users of MTD devices
121da177e4SLinus Torvalds	  to enumerate the devices which are present and obtain a handle on
131da177e4SLinus Torvalds	  them. It will also allow you to select individual drivers for
141da177e4SLinus Torvalds	  particular hardware and users of MTD devices. If unsure, say N.
151da177e4SLinus Torvalds
161da177e4SLinus Torvaldsconfig MTD_DEBUG
171da177e4SLinus Torvalds	bool "Debugging"
181da177e4SLinus Torvalds	depends on MTD
191da177e4SLinus Torvalds	help
201da177e4SLinus Torvalds	  This turns on low-level debugging for the entire MTD sub-system.
211da177e4SLinus Torvalds	  Normally, you should say 'N'.
221da177e4SLinus Torvalds
231da177e4SLinus Torvaldsconfig MTD_DEBUG_VERBOSE
241da177e4SLinus Torvalds	int "Debugging verbosity (0 = quiet, 3 = noisy)"
251da177e4SLinus Torvalds	depends on MTD_DEBUG
261da177e4SLinus Torvalds	default "0"
271da177e4SLinus Torvalds	help
281da177e4SLinus Torvalds	  Determines the verbosity level of the MTD debugging messages.
291da177e4SLinus Torvalds
301da177e4SLinus Torvaldsconfig MTD_CONCAT
311da177e4SLinus Torvalds	tristate "MTD concatenating support"
321da177e4SLinus Torvalds	depends on MTD
331da177e4SLinus Torvalds	help
341da177e4SLinus Torvalds	  Support for concatenating several MTD devices into a single
351da177e4SLinus Torvalds	  (virtual) one. This allows you to have -for example- a JFFS(2)
361da177e4SLinus Torvalds	  file system spanning multiple physical flash chips. If unsure,
371da177e4SLinus Torvalds	  say 'Y'.
381da177e4SLinus Torvalds
391da177e4SLinus Torvaldsconfig MTD_PARTITIONS
401da177e4SLinus Torvalds	bool "MTD partitioning support"
411da177e4SLinus Torvalds	depends on MTD
421da177e4SLinus Torvalds	help
431da177e4SLinus Torvalds	  If you have a device which needs to divide its flash chip(s) up
441da177e4SLinus Torvalds	  into multiple 'partitions', each of which appears to the user as
451da177e4SLinus Torvalds	  a separate MTD device, you require this option to be enabled. If
461da177e4SLinus Torvalds	  unsure, say 'Y'.
471da177e4SLinus Torvalds
481da177e4SLinus Torvalds	  Note, however, that you don't need this option for the DiskOnChip
491da177e4SLinus Torvalds	  devices. Partitioning on NFTL 'devices' is a different - that's the
501da177e4SLinus Torvalds	  'normal' form of partitioning used on a block device.
511da177e4SLinus Torvalds
521da177e4SLinus Torvaldsconfig MTD_REDBOOT_PARTS
531da177e4SLinus Torvalds	tristate "RedBoot partition table parsing"
541da177e4SLinus Torvalds	depends on MTD_PARTITIONS
551da177e4SLinus Torvalds	---help---
561da177e4SLinus Torvalds	  RedBoot is a ROM monitor and bootloader which deals with multiple
571da177e4SLinus Torvalds	  'images' in flash devices by putting a table one of the erase
581da177e4SLinus Torvalds	  blocks on the device, similar to a partition table, which gives
591da177e4SLinus Torvalds	  the offsets, lengths and names of all the images stored in the
601da177e4SLinus Torvalds	  flash.
611da177e4SLinus Torvalds
621da177e4SLinus Torvalds	  If you need code which can detect and parse this table, and register
631da177e4SLinus Torvalds	  MTD 'partitions' corresponding to each image in the table, enable
641da177e4SLinus Torvalds	  this option.
651da177e4SLinus Torvalds
661da177e4SLinus Torvalds	  You will still need the parsing functions to be called by the driver
671da177e4SLinus Torvalds	  for your particular device. It won't happen automatically. The
681da177e4SLinus Torvalds	  SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for
691da177e4SLinus Torvalds	  example.
701da177e4SLinus Torvalds
711da177e4SLinus Torvaldsconfig MTD_REDBOOT_DIRECTORY_BLOCK
721da177e4SLinus Torvalds	int "Location of RedBoot partition table"
731da177e4SLinus Torvalds	depends on MTD_REDBOOT_PARTS
741da177e4SLinus Torvalds	default "-1"
751da177e4SLinus Torvalds	---help---
761da177e4SLinus Torvalds	  This option is the Linux counterpart to the
771da177e4SLinus Torvalds	  CYGNUM_REDBOOT_FIS_DIRECTORY_BLOCK RedBoot compile time
781da177e4SLinus Torvalds	  option.
791da177e4SLinus Torvalds
801da177e4SLinus Torvalds	  The option specifies which Flash sectors holds the RedBoot
81*4992a9e8SEgry Gábor	  partition table.  A zero or positive value gives an absolute
821da177e4SLinus Torvalds	  erase block number. A negative value specifies a number of
831da177e4SLinus Torvalds	  sectors before the end of the device.
841da177e4SLinus Torvalds
851da177e4SLinus Torvalds	  For example "2" means block number 2, "-1" means the last
861da177e4SLinus Torvalds	  block and "-2" means the penultimate block.
871da177e4SLinus Torvalds
881da177e4SLinus Torvaldsconfig MTD_REDBOOT_PARTS_UNALLOCATED
891da177e4SLinus Torvalds	bool "  Include unallocated flash regions"
901da177e4SLinus Torvalds	depends on MTD_REDBOOT_PARTS
911da177e4SLinus Torvalds	help
921da177e4SLinus Torvalds	  If you need to register each unallocated flash region as a MTD
931da177e4SLinus Torvalds	  'partition', enable this option.
941da177e4SLinus Torvalds
951da177e4SLinus Torvaldsconfig MTD_REDBOOT_PARTS_READONLY
961da177e4SLinus Torvalds	bool "  Force read-only for RedBoot system images"
971da177e4SLinus Torvalds	depends on MTD_REDBOOT_PARTS
981da177e4SLinus Torvalds	help
991da177e4SLinus Torvalds	  If you need to force read-only for 'RedBoot', 'RedBoot Config' and
1001da177e4SLinus Torvalds	  'FIS directory' images, enable this option.
1011da177e4SLinus Torvalds
1021da177e4SLinus Torvaldsconfig MTD_CMDLINE_PARTS
1031da177e4SLinus Torvalds	bool "Command line partition table parsing"
1041da177e4SLinus Torvalds	depends on MTD_PARTITIONS = "y"
1051da177e4SLinus Torvalds	---help---
106*4992a9e8SEgry Gábor	  Allow generic configuration of the MTD partition tables via the kernel
1071da177e4SLinus Torvalds	  command line. Multiple flash resources are supported for hardware where
1081da177e4SLinus Torvalds	  different kinds of flash memory are available.
1091da177e4SLinus Torvalds
1101da177e4SLinus Torvalds	  You will still need the parsing functions to be called by the driver
1111da177e4SLinus Torvalds	  for your particular device. It won't happen automatically. The
1121da177e4SLinus Torvalds	  SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for
1131da177e4SLinus Torvalds	  example.
1141da177e4SLinus Torvalds
1151da177e4SLinus Torvalds	  The format for the command line is as follows:
1161da177e4SLinus Torvalds
1171da177e4SLinus Torvalds	  mtdparts=<mtddef>[;<mtddef]
1181da177e4SLinus Torvalds	  <mtddef>  := <mtd-id>:<partdef>[,<partdef>]
1191da177e4SLinus Torvalds	  <partdef> := <size>[@offset][<name>][ro]
1201da177e4SLinus Torvalds	  <mtd-id>  := unique id used in mapping driver/device
1211da177e4SLinus Torvalds	  <size>    := standard linux memsize OR "-" to denote all
1221da177e4SLinus Torvalds	  remaining space
1231da177e4SLinus Torvalds	  <name>    := (NAME)
1241da177e4SLinus Torvalds
1251da177e4SLinus Torvalds	  Due to the way Linux handles the command line, no spaces are
1261da177e4SLinus Torvalds	  allowed in the partition definition, including mtd id's and partition
1271da177e4SLinus Torvalds	  names.
1281da177e4SLinus Torvalds
1291da177e4SLinus Torvalds	  Examples:
1301da177e4SLinus Torvalds
1311da177e4SLinus Torvalds	  1 flash resource (mtd-id "sa1100"), with 1 single writable partition:
1321da177e4SLinus Torvalds	  mtdparts=sa1100:-
1331da177e4SLinus Torvalds
1341da177e4SLinus Torvalds	  Same flash, but 2 named partitions, the first one being read-only:
1351da177e4SLinus Torvalds	  mtdparts=sa1100:256k(ARMboot)ro,-(root)
1361da177e4SLinus Torvalds
1371da177e4SLinus Torvalds	  If unsure, say 'N'.
1381da177e4SLinus Torvalds
1391da177e4SLinus Torvaldsconfig MTD_AFS_PARTS
1401da177e4SLinus Torvalds	tristate "ARM Firmware Suite partition parsing"
1411da177e4SLinus Torvalds	depends on ARM && MTD_PARTITIONS
1421da177e4SLinus Torvalds	---help---
1431da177e4SLinus Torvalds	  The ARM Firmware Suite allows the user to divide flash devices into
1441da177e4SLinus Torvalds	  multiple 'images'. Each such image has a header containing its name
1451da177e4SLinus Torvalds	  and offset/size etc.
1461da177e4SLinus Torvalds
1471da177e4SLinus Torvalds	  If you need code which can detect and parse these tables, and
1481da177e4SLinus Torvalds	  register MTD 'partitions' corresponding to each image detected,
1491da177e4SLinus Torvalds	  enable this option.
1501da177e4SLinus Torvalds
1511da177e4SLinus Torvalds	  You will still need the parsing functions to be called by the driver
1521da177e4SLinus Torvalds	  for your particular device. It won't happen automatically. The
1531da177e4SLinus Torvalds	  'armflash' map driver (CONFIG_MTD_ARMFLASH) does this, for example.
1541da177e4SLinus Torvalds
1551da177e4SLinus Torvaldscomment "User Modules And Translation Layers"
1561da177e4SLinus Torvalds	depends on MTD
1571da177e4SLinus Torvalds
1581da177e4SLinus Torvaldsconfig MTD_CHAR
1591da177e4SLinus Torvalds	tristate "Direct char device access to MTD devices"
1601da177e4SLinus Torvalds	depends on MTD
1611da177e4SLinus Torvalds	help
1621da177e4SLinus Torvalds	  This provides a character device for each MTD device present in
1631da177e4SLinus Torvalds	  the system, allowing the user to read and write directly to the
1641da177e4SLinus Torvalds	  memory chips, and also use ioctl() to obtain information about
1651da177e4SLinus Torvalds	  the device, or to erase parts of it.
1661da177e4SLinus Torvalds
1671da177e4SLinus Torvaldsconfig MTD_BLOCK
1681da177e4SLinus Torvalds	tristate "Caching block device access to MTD devices"
1691da177e4SLinus Torvalds	depends on MTD
1701da177e4SLinus Torvalds	---help---
1711da177e4SLinus Torvalds	  Although most flash chips have an erase size too large to be useful
1721da177e4SLinus Torvalds	  as block devices, it is possible to use MTD devices which are based
1731da177e4SLinus Torvalds	  on RAM chips in this manner. This block device is a user of MTD
1741da177e4SLinus Torvalds	  devices performing that function.
1751da177e4SLinus Torvalds
1761da177e4SLinus Torvalds	  At the moment, it is also required for the Journalling Flash File
1771da177e4SLinus Torvalds	  System(s) to obtain a handle on the MTD device when it's mounted
1781da177e4SLinus Torvalds	  (although JFFS and JFFS2 don't actually use any of the functionality
1791da177e4SLinus Torvalds	  of the mtdblock device).
1801da177e4SLinus Torvalds
1811da177e4SLinus Torvalds	  Later, it may be extended to perform read/erase/modify/write cycles
1821da177e4SLinus Torvalds	  on flash chips to emulate a smaller block size. Needless to say,
1831da177e4SLinus Torvalds	  this is very unsafe, but could be useful for file systems which are
1841da177e4SLinus Torvalds	  almost never written to.
1851da177e4SLinus Torvalds
1861da177e4SLinus Torvalds	  You do not need this option for use with the DiskOnChip devices. For
1871da177e4SLinus Torvalds	  those, enable NFTL support (CONFIG_NFTL) instead.
1881da177e4SLinus Torvalds
1891da177e4SLinus Torvaldsconfig MTD_BLOCK_RO
1901da177e4SLinus Torvalds	tristate "Readonly block device access to MTD devices"
1911da177e4SLinus Torvalds	depends on MTD_BLOCK!=y && MTD
1921da177e4SLinus Torvalds	help
1931da177e4SLinus Torvalds	  This allows you to mount read-only file systems (such as cramfs)
1941da177e4SLinus Torvalds	  from an MTD device, without the overhead (and danger) of the caching
1951da177e4SLinus Torvalds	  driver.
1961da177e4SLinus Torvalds
1971da177e4SLinus Torvalds	  You do not need this option for use with the DiskOnChip devices. For
1981da177e4SLinus Torvalds	  those, enable NFTL support (CONFIG_NFTL) instead.
1991da177e4SLinus Torvalds
2001da177e4SLinus Torvaldsconfig FTL
2011da177e4SLinus Torvalds	tristate "FTL (Flash Translation Layer) support"
2021da177e4SLinus Torvalds	depends on MTD
2031da177e4SLinus Torvalds	---help---
2041da177e4SLinus Torvalds	  This provides support for the original Flash Translation Layer which
2051da177e4SLinus Torvalds	  is part of the PCMCIA specification. It uses a kind of pseudo-
2061da177e4SLinus Torvalds	  file system on a flash device to emulate a block device with
2071da177e4SLinus Torvalds	  512-byte sectors, on top of which you put a 'normal' file system.
2081da177e4SLinus Torvalds
2091da177e4SLinus Torvalds	  You may find that the algorithms used in this code are patented
2101da177e4SLinus Torvalds	  unless you live in the Free World where software patents aren't
2111da177e4SLinus Torvalds	  legal - in the USA you are only permitted to use this on PCMCIA
2121da177e4SLinus Torvalds	  hardware, although under the terms of the GPL you're obviously
2131da177e4SLinus Torvalds	  permitted to copy, modify and distribute the code as you wish. Just
2141da177e4SLinus Torvalds	  not use it.
2151da177e4SLinus Torvalds
2161da177e4SLinus Torvaldsconfig NFTL
2171da177e4SLinus Torvalds	tristate "NFTL (NAND Flash Translation Layer) support"
2181da177e4SLinus Torvalds	depends on MTD
2191da177e4SLinus Torvalds	---help---
2201da177e4SLinus Torvalds	  This provides support for the NAND Flash Translation Layer which is
2211da177e4SLinus Torvalds	  used on M-Systems' DiskOnChip devices. It uses a kind of pseudo-
2221da177e4SLinus Torvalds	  file system on a flash device to emulate a block device with
2231da177e4SLinus Torvalds	  512-byte sectors, on top of which you put a 'normal' file system.
2241da177e4SLinus Torvalds
2251da177e4SLinus Torvalds	  You may find that the algorithms used in this code are patented
2261da177e4SLinus Torvalds	  unless you live in the Free World where software patents aren't
2271da177e4SLinus Torvalds	  legal - in the USA you are only permitted to use this on DiskOnChip
2281da177e4SLinus Torvalds	  hardware, although under the terms of the GPL you're obviously
2291da177e4SLinus Torvalds	  permitted to copy, modify and distribute the code as you wish. Just
2301da177e4SLinus Torvalds	  not use it.
2311da177e4SLinus Torvalds
2321da177e4SLinus Torvaldsconfig NFTL_RW
2331da177e4SLinus Torvalds	bool "Write support for NFTL"
2341da177e4SLinus Torvalds	depends on NFTL
2351da177e4SLinus Torvalds	help
2361da177e4SLinus Torvalds	  Support for writing to the NAND Flash Translation Layer, as used
2371da177e4SLinus Torvalds	  on the DiskOnChip.
2381da177e4SLinus Torvalds
2391da177e4SLinus Torvaldsconfig INFTL
2401da177e4SLinus Torvalds	tristate "INFTL (Inverse NAND Flash Translation Layer) support"
2411da177e4SLinus Torvalds	depends on MTD
2421da177e4SLinus Torvalds	---help---
2431da177e4SLinus Torvalds	  This provides support for the Inverse NAND Flash Translation
2441da177e4SLinus Torvalds	  Layer which is used on M-Systems' newer DiskOnChip devices. It
2451da177e4SLinus Torvalds	  uses a kind of pseudo-file system on a flash device to emulate
2461da177e4SLinus Torvalds	  a block device with 512-byte sectors, on top of which you put
2471da177e4SLinus Torvalds	  a 'normal' file system.
2481da177e4SLinus Torvalds
2491da177e4SLinus Torvalds	  You may find that the algorithms used in this code are patented
2501da177e4SLinus Torvalds	  unless you live in the Free World where software patents aren't
2511da177e4SLinus Torvalds	  legal - in the USA you are only permitted to use this on DiskOnChip
2521da177e4SLinus Torvalds	  hardware, although under the terms of the GPL you're obviously
2531da177e4SLinus Torvalds	  permitted to copy, modify and distribute the code as you wish. Just
2541da177e4SLinus Torvalds	  not use it.
2551da177e4SLinus Torvalds
256e27a9960SSean Youngconfig RFD_FTL
257e27a9960SSean Young        tristate "Resident Flash Disk (Flash Translation Layer) support"
258e27a9960SSean Young	depends on MTD
259e27a9960SSean Young	---help---
260e27a9960SSean Young	  This provides support for the flash translation layer known
261e27a9960SSean Young	  as the Resident Flash Disk (RFD), as used by the Embedded BIOS
262cd5f6346SKyungmin Park	  of General Software. There is a blurb at:
263cd5f6346SKyungmin Park
264cd5f6346SKyungmin Park		http://www.gensw.com/pages/prod/bios/rfd.htm
265e27a9960SSean Young
2661da177e4SLinus Torvaldssource "drivers/mtd/chips/Kconfig"
2671da177e4SLinus Torvalds
2681da177e4SLinus Torvaldssource "drivers/mtd/maps/Kconfig"
2691da177e4SLinus Torvalds
2701da177e4SLinus Torvaldssource "drivers/mtd/devices/Kconfig"
2711da177e4SLinus Torvalds
2721da177e4SLinus Torvaldssource "drivers/mtd/nand/Kconfig"
2731da177e4SLinus Torvalds
274cd5f6346SKyungmin Parksource "drivers/mtd/onenand/Kconfig"
275cd5f6346SKyungmin Park
2761da177e4SLinus Torvaldsendmenu
2771da177e4SLinus Torvalds
278