mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
drivers/mtd: Add a driver for Macronix MX35LFxGE4AB serial NAND flash.
This commit is contained in:
committed by
Gregory Nutt
parent
505358b08f
commit
59a5c24739
@@ -497,6 +497,27 @@ config MX25L_DEBUG
|
||||
|
||||
endif # MTD_MX25L
|
||||
|
||||
config MTD_MX35
|
||||
bool "SPI-based MX35LF1GE4AB / MX35LF2GE4AB"
|
||||
default n
|
||||
select SPI
|
||||
---help---
|
||||
SPI-based driver for Macronix MX35LF1GE4AB or MX35LF2GE4AB.
|
||||
|
||||
if MTD_MX35
|
||||
|
||||
config MX35_SPIMODE
|
||||
int "MX35 SPI mode"
|
||||
default 0
|
||||
|
||||
config MX35_SPIFREQUENCY
|
||||
int "MX35 SPI Frequency"
|
||||
default 104000000
|
||||
---help---
|
||||
SPI frequency for MX35 is 104 MHz.
|
||||
|
||||
endif # MTD_MX35
|
||||
|
||||
config MTD_S25FL1
|
||||
bool "QuadSPI-based S25FL1 FLASH"
|
||||
default n
|
||||
|
||||
@@ -120,6 +120,10 @@ ifeq ($(CONFIG_MTD_MX25L),y)
|
||||
CSRCS += mx25lx.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_MTD_MX35),y)
|
||||
CSRCS += mx35.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_MTD_S25FL1),y)
|
||||
CSRCS += s25fl1.c
|
||||
endif
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -80,6 +80,8 @@
|
||||
* 0=Use normal memory region
|
||||
* 1=Use alternate/extended memory
|
||||
* OUT: None */
|
||||
#define MTDIOC_ECCSTATUS _MTDIOC(0x0008) /* IN: Pointer to uint8_t
|
||||
* OUT: ECC status */
|
||||
|
||||
/* Macros to hide implementation */
|
||||
|
||||
@@ -424,6 +426,15 @@ FAR struct mtd_dev_s *is25xp_initialize(FAR struct spi_dev_s *dev);
|
||||
|
||||
FAR struct mtd_dev_s *m25p_initialize(FAR struct spi_dev_s *dev);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: mx35_initialize
|
||||
*
|
||||
* Description:
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
FAR struct mtd_dev_s *mx35_initialize(FAR struct spi_dev_s *dev);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: rammtd_initialize
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user