Added driver of IS25xP SPI flash devices
Based on sst25xx driver Signed-off-by: Marten Svanfeldt <marten@intuitiveaerial.com>
This commit is contained in:
parent
692ea396e3
commit
edeb2eed4e
@ -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
@ -412,6 +412,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