URL
https://opencores.org/ocsvn/test_project/test_project/trunk
Subversion Repositories test_project
[/] [test_project/] [trunk/] [linux_sd_driver/] [drivers/] [mtd/] [Kconfig] - Rev 62
Compare with Previous | Blame | View Log
# $Id: Kconfig,v 1.11 2005/11/07 11:14:19 gleixner Exp $menuconfig MTDtristate "Memory Technology Device (MTD) support"depends on HAS_IOMEMhelpMemory Technology Devices are flash, RAM and similar chips, oftenused for solid state file systems on embedded devices. This optionwill provide the generic support for MTD drivers to registerthemselves with the kernel and for potential users of MTD devicesto enumerate the devices which are present and obtain a handle onthem. It will also allow you to select individual drivers forparticular hardware and users of MTD devices. If unsure, say N.if MTDconfig MTD_DEBUGbool "Debugging"helpThis turns on low-level debugging for the entire MTD sub-system.Normally, you should say 'N'.config MTD_DEBUG_VERBOSEint "Debugging verbosity (0 = quiet, 3 = noisy)"depends on MTD_DEBUGdefault "0"helpDetermines the verbosity level of the MTD debugging messages.config MTD_CONCATtristate "MTD concatenating support"helpSupport for concatenating several MTD devices into a single(virtual) one. This allows you to have -for example- a JFFS(2)file system spanning multiple physical flash chips. If unsure,say 'Y'.config MTD_PARTITIONSbool "MTD partitioning support"helpIf you have a device which needs to divide its flash chip(s) upinto multiple 'partitions', each of which appears to the user asa separate MTD device, you require this option to be enabled. Ifunsure, say 'Y'.Note, however, that you don't need this option for the DiskOnChipdevices. Partitioning on NFTL 'devices' is a different - that's the'normal' form of partitioning used on a block device.config MTD_REDBOOT_PARTStristate "RedBoot partition table parsing"depends on MTD_PARTITIONS---help---RedBoot is a ROM monitor and bootloader which deals with multiple'images' in flash devices by putting a table one of the eraseblocks on the device, similar to a partition table, which givesthe offsets, lengths and names of all the images stored in theflash.If you need code which can detect and parse this table, and registerMTD 'partitions' corresponding to each image in the table, enablethis option.You will still need the parsing functions to be called by the driverfor your particular device. It won't happen automatically. TheSA1100 map driver (CONFIG_MTD_SA1100) has an option for this, forexample.config MTD_REDBOOT_DIRECTORY_BLOCKint "Location of RedBoot partition table"depends on MTD_REDBOOT_PARTSdefault "-1"---help---This option is the Linux counterpart to theCYGNUM_REDBOOT_FIS_DIRECTORY_BLOCK RedBoot compile timeoption.The option specifies which Flash sectors holds the RedBootpartition table. A zero or positive value gives an absoluteerase block number. A negative value specifies a number ofsectors before the end of the device.For example "2" means block number 2, "-1" means the lastblock and "-2" means the penultimate block.config MTD_REDBOOT_PARTS_UNALLOCATEDbool "Include unallocated flash regions"depends on MTD_REDBOOT_PARTShelpIf you need to register each unallocated flash region as a MTD'partition', enable this option.config MTD_REDBOOT_PARTS_READONLYbool "Force read-only for RedBoot system images"depends on MTD_REDBOOT_PARTShelpIf you need to force read-only for 'RedBoot', 'RedBoot Config' and'FIS directory' images, enable this option.config MTD_CMDLINE_PARTSbool "Command line partition table parsing"depends on MTD_PARTITIONS = "y" && MTD = "y"---help---Allow generic configuration of the MTD partition tables via the kernelcommand line. Multiple flash resources are supported for hardware wheredifferent kinds of flash memory are available.You will still need the parsing functions to be called by the driverfor your particular device. It won't happen automatically. TheSA1100 map driver (CONFIG_MTD_SA1100) has an option for this, forexample.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<size> := standard linux memsize OR "-" to denote allremaining space<name> := (NAME)Due to the way Linux handles the command line, no spaces areallowed in the partition definition, including mtd id's and partitionnames.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_PARTStristate "ARM Firmware Suite partition parsing"depends on ARM && MTD_PARTITIONS---help---The ARM Firmware Suite allows the user to divide flash devices intomultiple 'images'. Each such image has a header containing its nameand offset/size etc.If you need code which can detect and parse these tables, andregister MTD 'partitions' corresponding to each image detected,enable this option.You will still need the parsing functions to be called by the driverfor your particular device. It won't happen automatically. The'armflash' map driver (CONFIG_MTD_ARMFLASH) does this, for example.comment "User Modules And Translation Layers"config MTD_CHARtristate "Direct char device access to MTD devices"helpThis provides a character device for each MTD device present inthe system, allowing the user to read and write directly to thememory chips, and also use ioctl() to obtain information aboutthe device, or to erase parts of it.config MTD_BLKDEVStristate "Common interface to block layer for MTD 'translation layers'"depends on BLOCKdefault nconfig MTD_BLOCKtristate "Caching block device access to MTD devices"depends on BLOCKselect MTD_BLKDEVS---help---Although most flash chips have an erase size too large to be usefulas block devices, it is possible to use MTD devices which are basedon RAM chips in this manner. This block device is a user of MTDdevices performing that function.At the moment, it is also required for the Journalling Flash FileSystem(s) to obtain a handle on the MTD device when it's mounted(although JFFS and JFFS2 don't actually use any of the functionalityof the mtdblock device).Later, it may be extended to perform read/erase/modify/write cycleson flash chips to emulate a smaller block size. Needless to say,this is very unsafe, but could be useful for file systems which arealmost never written to.You do not need this option for use with the DiskOnChip devices. Forthose, enable NFTL support (CONFIG_NFTL) instead.config MTD_BLOCK_ROtristate "Readonly block device access to MTD devices"depends on MTD_BLOCK!=y && BLOCKselect MTD_BLKDEVShelpThis allows you to mount read-only file systems (such as cramfs)from an MTD device, without the overhead (and danger) of the cachingdriver.You do not need this option for use with the DiskOnChip devices. Forthose, enable NFTL support (CONFIG_NFTL) instead.config FTLtristate "FTL (Flash Translation Layer) support"depends on BLOCKselect MTD_BLKDEVS---help---This provides support for the original Flash Translation Layer whichis part of the PCMCIA specification. It uses a kind of pseudo-file system on a flash device to emulate a block device with512-byte sectors, on top of which you put a 'normal' file system.You may find that the algorithms used in this code are patentedunless you live in the Free World where software patents aren'tlegal - in the USA you are only permitted to use this on PCMCIAhardware, although under the terms of the GPL you're obviouslypermitted to copy, modify and distribute the code as you wish. Justnot use it.config NFTLtristate "NFTL (NAND Flash Translation Layer) support"depends on BLOCKselect MTD_BLKDEVS---help---This provides support for the NAND Flash Translation Layer which isused on M-Systems' DiskOnChip devices. It uses a kind of pseudo-file system on a flash device to emulate a block device with512-byte sectors, on top of which you put a 'normal' file system.You may find that the algorithms used in this code are patentedunless you live in the Free World where software patents aren'tlegal - in the USA you are only permitted to use this on DiskOnChiphardware, although under the terms of the GPL you're obviouslypermitted to copy, modify and distribute the code as you wish. Justnot use it.config NFTL_RWbool "Write support for NFTL"depends on NFTLhelpSupport for writing to the NAND Flash Translation Layer, as usedon the DiskOnChip.config INFTLtristate "INFTL (Inverse NAND Flash Translation Layer) support"depends on BLOCKselect MTD_BLKDEVS---help---This provides support for the Inverse NAND Flash TranslationLayer which is used on M-Systems' newer DiskOnChip devices. Ituses a kind of pseudo-file system on a flash device to emulatea block device with 512-byte sectors, on top of which you puta 'normal' file system.You may find that the algorithms used in this code are patentedunless you live in the Free World where software patents aren'tlegal - in the USA you are only permitted to use this on DiskOnChiphardware, although under the terms of the GPL you're obviouslypermitted to copy, modify and distribute the code as you wish. Justnot use it.config RFD_FTLtristate "Resident Flash Disk (Flash Translation Layer) support"depends on BLOCKselect MTD_BLKDEVS---help---This provides support for the flash translation layer knownas the Resident Flash Disk (RFD), as used by the Embedded BIOSof General Software. There is a blurb at:http://www.gensw.com/pages/prod/bios/rfd.htmconfig SSFDCtristate "NAND SSFDC (SmartMedia) read only translation layer"depends on BLOCKselect MTD_BLKDEVShelpThis enables read only access to SmartMedia formatted NANDflash. You can mount it with FAT file system.config MTD_OOPStristate "Log panic/oops to an MTD buffer"depends on MTDhelpThis enables panic and oops messages to be logged to a circularbuffer in a flash partition where it can be read back at somelater point.source "drivers/mtd/chips/Kconfig"source "drivers/mtd/maps/Kconfig"source "drivers/mtd/devices/Kconfig"source "drivers/mtd/nand/Kconfig"source "drivers/mtd/onenand/Kconfig"source "drivers/mtd/ubi/Kconfig"endif # MTD
