RAM/ROM/Flash chip drivers
- Depends on
MTD
CONFIG_MTD_CFI Detect flash chips by Common Flash Interface (CFI) probe
- Off
- Module
- Built in
The Common Flash Interface specification was developed by Intel, AMD and other flash manufactures that provides a universal method for probing the capabilities of flash devices. If you wish to support any device that is CFI-compliant, you need to enable this option. Visit <https://www.amd.com/products/nvd/overview/cfi.html> for more information on CFI.
- Depends on
MTD - Selects
MTD_GEN_PROBE if MTD - Selects
MTD_CFI_UTIL if MTD
CONFIG_MTD_JEDECPROBE Detect non-CFI AMD/JEDEC-compatible flash chips
- Off
- Module
- Built in
This option enables JEDEC-style probing of flash chips which are not compatible with the Common Flash Interface, but will use the common CFI-targeted flash drivers for any chips which are identified which are in fact compatible in all but the probe method. This actually covers most AMD/Fujitsu-compatible chips and also non-CFI Intel chips.
- Depends on
MTD - Selects
MTD_GEN_PROBE if MTD - Selects
MTD_CFI_UTIL if MTD
CONFIG_MTD_GEN_PROBE
- Off
- Module
- Built in
- Depends on
MTD
CONFIG_MTD_CFI_ADV_OPTIONS Flash chip driver advanced configuration options
If you need to specify a specific endianness for access to flash chips, or if you wish to reduce the size of the kernel by including support for only specific arrangements of flash chips, say 'Y'. This option does not directly affect the code, but will enable other configuration options which allow you to do so.
If unsure, say 'N'.
- Depends on
MTD && MTD_GEN_PROBE
If MTD_CFI_ADV_OPTIONS
Flash cmd/query data swapping
This option defines the way in which the CPU attempts to arrange data bits when writing the 'magic' commands to the chips. Saying 'NO', which is the default when CONFIG_MTD_CFI_ADV_OPTIONS isn't enabled, means that the CPU will not do any swapping; the chips are expected to be wired to the CPU in 'host-endian' form. Specific arrangements are possible with the BIG_ENDIAN_BYTE and LITTLE_ENDIAN_BYTE, if the bytes are reversed.
- Depends on
MTD && MTD_CFI_ADV_OPTIONS
CONFIG_MTD_CFI_NOSWAP NO
- Depends on
MTD && MTD_CFI_ADV_OPTIONS && (!ARCH_IXP4XX || )
CONFIG_MTD_CFI_BE_BYTE_SWAP BIG_ENDIAN_BYTE
- Depends on
MTD && MTD_CFI_ADV_OPTIONS
CONFIG_MTD_CFI_LE_BYTE_SWAP LITTLE_ENDIAN_BYTE
- Depends on
MTD && MTD_CFI_ADV_OPTIONS && !ARCH_IXP4XX
CONFIG_MTD_CFI_GEOMETRY Specific CFI Flash geometry selection
This option does not affect the code directly, but will enable some other configuration options which would allow you to reduce the size of the kernel by including support for only certain arrangements of CFI chips. If unsure, say 'N' and all options which are supported by the current code will be enabled.
- Depends on
MTD && MTD_CFI_ADV_OPTIONS - Selects
MTD_MAP_BANK_WIDTH_1 if MTD && MTD_CFI_ADV_OPTIONS && !MTD_MAP_BANK_WIDTH_2 && !MTD_MAP_BANK_WIDTH_4 && !MTD_MAP_BANK_WIDTH_8 && !MTD_MAP_BANK_WIDTH_16 && !MTD_MAP_BANK_WIDTH_32 - Selects
MTD_CFI_I1 if MTD && MTD_CFI_ADV_OPTIONS && !MTD_CFI_I2 && !MTD_CFI_I4 && !MTD_CFI_I8
CONFIG_MTD_MAP_BANK_WIDTH_1 Support 8-bit buswidth
If you wish to support CFI devices on a physical bus which is 8 bits wide, say 'Y'.
- Depends on
MTD
CONFIG_MTD_MAP_BANK_WIDTH_2 Support 16-bit buswidth
If you wish to support CFI devices on a physical bus which is 16 bits wide, say 'Y'.
- Depends on
MTD
CONFIG_MTD_MAP_BANK_WIDTH_4 Support 32-bit buswidth
If you wish to support CFI devices on a physical bus which is 32 bits wide, say 'Y'.
- Depends on
MTD
CONFIG_MTD_MAP_BANK_WIDTH_8 Support 64-bit buswidth
If you wish to support CFI devices on a physical bus which is 64 bits wide, say 'Y'.
- Depends on
MTD
CONFIG_MTD_MAP_BANK_WIDTH_16 Support 128-bit buswidth
If you wish to support CFI devices on a physical bus which is 128 bits wide, say 'Y'.
- Depends on
MTD
CONFIG_MTD_MAP_BANK_WIDTH_32 Support 256-bit buswidth
If you wish to support CFI devices on a physical bus which is 256 bits wide, say 'Y'.
- Depends on
MTD - Selects
MTD_COMPLEX_MAPPINGS if MTD && HAS_IOMEM
CONFIG_MTD_CFI_I1 Support 1-chip flash interleave
If your flash chips are not interleaved - i.e. you only have one flash chip addressed by each bus cycle, then say 'Y'.
- Depends on
MTD
CONFIG_MTD_CFI_I2 Support 2-chip flash interleave
If your flash chips are interleaved in pairs - i.e. you have two flash chips addressed by each bus cycle, then say 'Y'.
- Depends on
MTD
CONFIG_MTD_CFI_I4 Support 4-chip flash interleave
If your flash chips are interleaved in fours - i.e. you have four flash chips addressed by each bus cycle, then say 'Y'.
- Depends on
MTD
CONFIG_MTD_CFI_I8 Support 8-chip flash interleave
If your flash chips are interleaved in eights - i.e. you have eight flash chips addressed by each bus cycle, then say 'Y'.
- Depends on
MTD
CONFIG_MTD_OTP Protection Registers aka one-time programmable (OTP) bits
This enables support for reading, writing and locking so called "Protection Registers" present on some flash chips. A subset of them are pre-programmed at the factory with a unique set of values. The rest is user-programmable.
The user-programmable Protection Registers contain one-time programmable (OTP) bits; when programmed, register bits cannot be erased. Each Protection Register can be accessed multiple times to program individual bits, as long as the register remains unlocked.
Each Protection Register has an associated Lock Register bit. When a Lock Register bit is programmed, the associated Protection Register can only be read; it can no longer be programmed. Additionally, because the Lock Register bits themselves are OTP, when programmed, Lock Register bits cannot be erased. Therefore, when a Protection Register is locked, it cannot be unlocked.
This feature should therefore be used with extreme care. Any mistake in the programming of OTP bits will waste them.
- Depends on
MTD && MTD_CFI_ADV_OPTIONS
CONFIG_MTD_CFI_INTELEXT Support for CFI command set 0001 (Intel/Sharp chips)
- Off
- Module
- Built in
The Common Flash Interface defines a number of different command sets which a CFI-compliant chip may claim to implement. This code provides support for command set 0001, used on Intel StrataFlash and other parts.
- Depends on
MTD && MTD_GEN_PROBE - Selects
MTD_CFI_UTIL if MTD && MTD_GEN_PROBE
CONFIG_MTD_CFI_AMDSTD Support for CFI command set 0002 (AMD/Fujitsu/Spansion chips)
- Off
- Module
- Built in
The Common Flash Interface defines a number of different command sets which a CFI-compliant chip may claim to implement. This code provides support for command set 0002, used on chips including the AMD Am29LV320.
- Depends on
MTD && MTD_GEN_PROBE - Selects
MTD_CFI_UTIL if MTD && MTD_GEN_PROBE
CONFIG_MTD_CFI_STAA Support for CFI command set 0020 (ST (Advanced Architecture) chips)
- Off
- Module
- Built in
The Common Flash Interface defines a number of different command sets which a CFI-compliant chip may claim to implement. This code provides support for command set 0020.
- Depends on
MTD && MTD_GEN_PROBE - Selects
MTD_CFI_UTIL if MTD && MTD_GEN_PROBE
CONFIG_MTD_CFI_UTIL
- Off
- Module
- Built in
- Depends on
MTD
CONFIG_MTD_RAM Support for RAM chips in bus mapping
- Off
- Module
- Built in
This option enables basic support for RAM chips accessed through a bus mapping driver.
- Depends on
MTD
CONFIG_MTD_ROM Support for ROM chips in bus mapping
- Off
- Module
- Built in
This option enables basic support for ROM chips accessed through a bus mapping driver.
- Depends on
MTD
CONFIG_MTD_ABSENT Support for absent chips in bus mapping
- Off
- Module
- Built in
This option enables support for a dummy probing driver used to allocated placeholder MTD devices on systems that have socketed or removable media. Use of this driver as a fallback chip probe preserves the expected registration order of MTD device nodes on the system regardless of media presence. Device nodes created with this driver will return -ENODEV upon access.
- Depends on
MTD
CONFIG_MTD_XIP XIP aware MTD support
This allows MTD support to work with flash memory which is also used for XIP purposes. If you're not sure what this is all about then say N.
- Depends on
MTD && ! && (MTD_CFI_INTELEXT || MTD_CFI_AMDSTD) &&
- arch/alpha/Kconfig:465
- arch/arc/Kconfig:167
- arch/arm/Kconfig:910
- arch/arm64/Kconfig:358
- arch/csky/Kconfig:313
- arch/hexagon/Kconfig:104
- arch/loongarch/Kconfig:513
- arch/mips/Kconfig:2700
- arch/openrisc/Kconfig:191
- arch/parisc/Kconfig:314
- arch/powerpc/platforms/Kconfig.cputype:550
- arch/riscv/Kconfig:437
- arch/s390/Kconfig:530
- arch/sh/Kconfig:560
- arch/sparc/Kconfig:158
- arch/um/Kconfig:97
- arch/x86/Kconfig:437
- arch/xtensa/Kconfig:245