Merged in marten_svanfeldt/nuttx-public/for_upstream/is25 (pull request #44)

Added driver of IS25xP SPI flash devices
This commit is contained in:
Gregory Nutt 2016-06-09 09:30:34 -06:00
commit 03c44c3583
4 changed files with 1037 additions and 1 deletions

View File

@ -397,6 +397,23 @@ config AT45DB_PWRSAVE
endif # MTD_AT45DB
config MTD_IS25XP
bool "SPI-based IS25XP FLASH"
default n
select SPI
if MTD_IS25XP
config IS25XP_SPIMODE
int "IS25 SPI Mode"
default 0
config IS25XP_SPIFREQUENCY
int "IS25 SPI Frequency"
default 20000000
endif # MTD_IS25XP
config MTD_M25P
bool "SPI-based M25P FLASH"
default n
@ -496,7 +513,7 @@ config MTD_N25QXXX
default n
---help---
Support the N25Q016A, N25Q032A, N25Q064A, N25Q128A, N25Q256A
if MTD_N25QXXX

View File

@ -112,6 +112,10 @@ ifeq ($(CONFIG_MTD_N25QXXX),y)
CSRCS += n25qxxx.c
endif
ifeq ($(CONFIG_MTD_IS25XP),y)
CSRCS += is25xp.c
endif
ifeq ($(CONFIG_MTD_SMART),y)
ifeq ($(CONFIG_FS_SMARTFS),y)
CSRCS += smart.c

1005
drivers/mtd/is25xp.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -401,6 +401,16 @@ void at24c_uninitialize(FAR struct mtd_dev_s *mtd);
FAR struct mtd_dev_s *at25_initialize(FAR struct spi_dev_s *dev);
/****************************************************************************
* Name: is25xp
*
* Description:
* Initializes the driver for SPI-based IS25xP FLASH
*
****************************************************************************/
FAR struct mtd_dev_s *is25xp_initialize(FAR struct spi_dev_s *dev);
/****************************************************************************
* Name: m25p_initialize
*