Skip to content

Add GD55 QSPI NOR Flash support #15523

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions drivers/mtd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,38 @@ config MX25RXX_LXX

endif # MTD_MX25RXX

config MTD_GD55
bool "QuadSPI-based GigaDevices GD55 family FLASH"
default n
---help---
Support GD55 QSPI devices

if MTD_GD55

config MTD_GD55_QSPIMODE
int "MTD_GD55 QuadSPI Mode"
default 3
---help---
This device can operate in SPI mode 0 or 3.

config MTD_GD55_FREQUENCY
int "MTD_GD55 QSPI Frequency"
default 133000000
---help---
Clock frequency for all instructions except for non-QSPI read
commands (e.g. Read ID) and DTR read, neither of which are used in
this driver)

config MTD_GD55_SECTOR512
bool "Emulate 512 byte Erase Blocks"
default n
---help---
This is used to map the native 256 byte sectors to 512 byte sectors.
It is useful if using a file system that demands 512 byte sectors,
such as FAT

endif # MTD_GD55

config MTD_SMART
bool "Sector Mapped Allocation for Really Tiny (SMART) Flash support"
default n
Expand Down
4 changes: 4 additions & 0 deletions drivers/mtd/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ ifeq ($(CONFIG_MTD_GD25),y)
CSRCS += gd25.c
endif

ifeq ($(CONFIG_MTD_GD55),y)
CSRCS += gd55.c
endif

ifeq ($(CONFIG_MTD_GD5F),y)
CSRCS += gd5f.c
endif
Expand Down
Loading
Loading