2012-04-06 17:49:35 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2012-04-06 18:45:52 +02:00
|
|
|
# see misc/tools/kconfig-language.txt.
|
2012-04-06 17:49:35 +02:00
|
|
|
#
|
2013-04-30 20:37:34 +02:00
|
|
|
|
|
|
|
config MTD_PARTITION
|
|
|
|
bool "Support MTD partitions"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
MTD partitions are build as MTD drivers that manage a sub-region
|
|
|
|
of the FLASH memory. The contain the original FLASH MTD driver and
|
|
|
|
simply manage all accesses to assure that (1) FLASH accesses are
|
|
|
|
always offset to the beginning of the partition, and (2) that FLASH
|
|
|
|
accesses do not extend outside of the partition.
|
|
|
|
|
|
|
|
A FLASH device may be broken up into several partitions managed,
|
|
|
|
each managed by a separate MTD driver. The MTD parition interface
|
|
|
|
is described in:
|
|
|
|
|
|
|
|
include/nuttx/mtd.h
|
|
|
|
FAR struct mtd_dev_s *mtd_partition(FAR struct mtd_dev_s *mtd, off_t offset, off_t nblocks);
|
|
|
|
|
|
|
|
Each call to mtd_partition() will create a new MTD driver instance
|
|
|
|
managing the sub-region of flash beginning at 'offset' (in blocks)
|
|
|
|
and of size 'nblocks' on the device specified by 'mtd'.
|
|
|
|
|
2012-04-07 16:50:57 +02:00
|
|
|
config MTD_AT24XX
|
|
|
|
bool "I2C-based AT24XX eeprom"
|
|
|
|
default n
|
|
|
|
select I2C
|
2013-04-30 20:37:34 +02:00
|
|
|
---help---
|
|
|
|
Build support for I2C-based at24cxx EEPROM(at24c32, at24c64,
|
|
|
|
at24c128, at24c256)
|
2012-04-07 16:50:57 +02:00
|
|
|
|
2013-02-11 22:44:00 +01:00
|
|
|
if MTD_AT24XX
|
|
|
|
|
2012-04-07 16:50:57 +02:00
|
|
|
config AT24XX_SIZE
|
|
|
|
int "at24xx size(kByte)"
|
|
|
|
default 64
|
|
|
|
|
|
|
|
config AT24XX_ADDR
|
|
|
|
hex "at24xx i2c address"
|
|
|
|
default 0x50
|
2013-02-11 22:44:00 +01:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2012-04-07 16:50:57 +02:00
|
|
|
config MTD_AT45DB
|
|
|
|
bool "SPI-based AT45DB flash"
|
|
|
|
default n
|
|
|
|
select SPI
|
2013-02-11 22:44:00 +01:00
|
|
|
|
|
|
|
if MTD_AT45DB
|
|
|
|
|
2012-04-07 16:50:57 +02:00
|
|
|
config AT45DB_FREQUENCY
|
|
|
|
int "at45db frequency"
|
|
|
|
default 1000000
|
2013-02-11 22:44:00 +01:00
|
|
|
|
2012-04-07 16:50:57 +02:00
|
|
|
config AT45DB_PREWAIT
|
|
|
|
bool "enables higher performance write logic"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config AT45DB_PWRSAVE
|
|
|
|
bool "enables power save"
|
|
|
|
default n
|
2013-02-11 22:44:00 +01:00
|
|
|
|
|
|
|
endif
|
2012-09-17 20:35:37 +02:00
|
|
|
|
2012-04-07 16:50:57 +02:00
|
|
|
config MTD_MP25P
|
2012-09-17 20:35:37 +02:00
|
|
|
bool "SPI-based M25P FLASH"
|
2012-04-07 16:50:57 +02:00
|
|
|
default n
|
|
|
|
select SPI
|
|
|
|
|
2013-02-11 22:44:00 +01:00
|
|
|
if MTD_MP25P
|
|
|
|
|
2012-04-07 16:50:57 +02:00
|
|
|
config MP25P_SPIMODE
|
2012-09-17 20:35:37 +02:00
|
|
|
int "MP25P SPI mode"
|
2012-04-07 16:50:57 +02:00
|
|
|
default 0
|
|
|
|
|
|
|
|
config MP25P_MANUFACTURER
|
2012-09-17 20:35:37 +02:00
|
|
|
hex "MP25P manufacturers ID"
|
2012-04-07 16:50:57 +02:00
|
|
|
default 0x20
|
|
|
|
---help---
|
|
|
|
Various manufacturers may have produced the parts. 0x20 is the manufacturer ID
|
|
|
|
for the STMicro MP25x serial FLASH. If, for example, you are using the a Macronix
|
|
|
|
International MX25 serial FLASH, the correct manufacturer ID would be 0xc2.
|
|
|
|
|
2013-02-11 22:44:00 +01:00
|
|
|
endif
|
|
|
|
|
2012-04-07 16:50:57 +02:00
|
|
|
config MTD_RAMTRON
|
|
|
|
bool "SPI-based RAMTRON NVRAM Devices FM25V10"
|
|
|
|
default n
|
|
|
|
select SPI
|
|
|
|
---help---
|
|
|
|
SPI-based RAMTRON NVRAM Devices FM25V10
|
|
|
|
|
|
|
|
config MTD_RAM
|
|
|
|
bool "Memory bus ram"
|
|
|
|
default n
|
2012-09-17 20:35:37 +02:00
|
|
|
|
|
|
|
config MTD_SST25
|
|
|
|
bool "SPI-based SST25 FLASH"
|
|
|
|
default n
|
|
|
|
select SPI
|
|
|
|
|
2013-02-11 22:44:00 +01:00
|
|
|
if MTD_SST25
|
|
|
|
|
2012-09-17 20:35:37 +02:00
|
|
|
config SST25_SPIMODE
|
|
|
|
int "SST25 SPI Mode"
|
|
|
|
default 0
|
|
|
|
|
|
|
|
config SST25_SPIFREQUENCY
|
|
|
|
int "SST25 SPI Frequency"
|
|
|
|
default 20000000
|
|
|
|
|
|
|
|
config SST25_READONLY
|
|
|
|
bool "SST25 Read-Only FLASH"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config SST25_SECTOR512
|
|
|
|
bool "Simulate 512 byte Erase Blocks"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config SST25_SLOWWRITE
|
|
|
|
bool
|
|
|
|
default y
|
|
|
|
|
|
|
|
config SST25_SLOWREAD
|
|
|
|
bool
|
|
|
|
default n
|
2013-02-11 22:44:00 +01:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
config MTD_SST39FV
|
|
|
|
bool "SST39FV NOR FLASH"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Selects 16-bit SST NOR FLASH. This includes support for:
|
|
|
|
|
|
|
|
SST39FV1601/SST39FV1602: 2Mb
|
|
|
|
SST39FV3201/SST39FV3202: 4Mb
|
|
|
|
|
|
|
|
if MTD_SST39FV
|
|
|
|
|
|
|
|
config SST39VF_BASE_ADDRESS
|
|
|
|
hex "SST39FV bass address"
|
|
|
|
default 0x00000000
|
|
|
|
---help---
|
|
|
|
This is the address where the SST29VF FLASH can be found in memory.
|
|
|
|
|
|
|
|
endif
|
2012-09-17 20:35:37 +02:00
|
|
|
|
|
|
|
config MTD_W25
|
|
|
|
bool "SPI-based W25 FLASH"
|
|
|
|
default n
|
|
|
|
select SPI
|
|
|
|
|
2013-02-11 22:44:00 +01:00
|
|
|
if MTD_W25
|
|
|
|
|
2012-09-17 20:35:37 +02:00
|
|
|
config W25_SPIMODE
|
|
|
|
int "W25 SPI Mode"
|
|
|
|
default 0
|
|
|
|
|
|
|
|
config W25_SPIFREQUENCY
|
|
|
|
int "W25 SPI Frequency"
|
|
|
|
default 20000000
|
|
|
|
|
|
|
|
config W25_READONLY
|
|
|
|
bool "W25 Read-Only FLASH"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config W25_SECTOR512
|
|
|
|
bool "Simulate 512 byte Erase Blocks"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config W25_SLOWREAD
|
|
|
|
bool
|
|
|
|
default n
|
2013-02-11 22:44:00 +01:00
|
|
|
|
|
|
|
endif
|