mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
drivers/mtd: Add gd25 driver
This commit is contained in:
committed by
Gregory Nutt
parent
5a51702ef2
commit
25f2bcea38
@@ -984,3 +984,28 @@ config W25_SLOWREAD
|
|||||||
default n
|
default n
|
||||||
|
|
||||||
endif # MTD_W25
|
endif # MTD_W25
|
||||||
|
|
||||||
|
config MTD_GD25
|
||||||
|
bool "SPI-based GD25 FLASH"
|
||||||
|
default n
|
||||||
|
select SPI
|
||||||
|
|
||||||
|
if MTD_GD25
|
||||||
|
|
||||||
|
config GD25_SPIMODE
|
||||||
|
int "GD25 SPI Mode"
|
||||||
|
default 0
|
||||||
|
|
||||||
|
config GD25_SPIFREQUENCY
|
||||||
|
int "GD25 SPI Frequency"
|
||||||
|
default 20000000
|
||||||
|
|
||||||
|
config GD25_READONLY
|
||||||
|
bool "GD25 Read-Only FLASH"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config GD25_SLOWREAD
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
endif # MTD_GD25
|
||||||
|
|||||||
@@ -108,6 +108,10 @@ ifeq ($(CONFIG_MTD_W25),y)
|
|||||||
CSRCS += w25.c
|
CSRCS += w25.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_MTD_GD25),y)
|
||||||
|
CSRCS += gd25.c
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_MTD_AT25),y)
|
ifeq ($(CONFIG_MTD_AT25),y)
|
||||||
CSRCS += at25.c
|
CSRCS += at25.c
|
||||||
endif
|
endif
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -524,6 +524,16 @@ FAR struct mtd_dev_s *sst39vf_initialize(void);
|
|||||||
|
|
||||||
FAR struct mtd_dev_s *w25_initialize(FAR struct spi_dev_s *dev);
|
FAR struct mtd_dev_s *w25_initialize(FAR struct spi_dev_s *dev);
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: gd25_initialize
|
||||||
|
*
|
||||||
|
* Description:
|
||||||
|
* Initializes the driver for SPI-based GD25 FLASH
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
FAR struct mtd_dev_s *gd25_initialize(FAR struct spi_dev_s *dev);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: s25fl1_initialize
|
* Name: s25fl1_initialize
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user