Merged in marten_svanfeldt/nuttx-public/for_upstream/is25 (pull request #44)
Added driver of IS25xP SPI flash devices
This commit is contained in:
commit
03c44c3583
@ -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
|
||||
|
||||
|
@ -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
1005
drivers/mtd/is25xp.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user