Skip to content

Commit 3c511e7

Browse files
committed
Add GD55 QSPI NOR Flash support
1 parent a9ec6e9 commit 3c511e7

File tree

5 files changed

+2136
-7
lines changed

5 files changed

+2136
-7
lines changed

drivers/mtd/Kconfig

+32
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,38 @@ config MX25RXX_LXX
923923

924924
endif # MTD_MX25RXX
925925

926+
config MTD_GD55
927+
bool "QuadSPI-based GigaDevices GD55 family FLASH"
928+
default n
929+
---help---
930+
Support GD55 QSPI devices
931+
932+
if MTD_GD55
933+
934+
config MTD_GD55_QSPIMODE
935+
int "MTD_GD55 QuadSPI Mode"
936+
default 3
937+
---help---
938+
This device can operate in SPI mode 0 or 3.
939+
940+
config MTD_GD55_FREQUENCY
941+
int "MTD_GD55 QSPI Frequency"
942+
default 133000000
943+
---help---
944+
Clock frequency for all instructions except for non-QSPI read
945+
commands (e.g. Read ID) and DTR read, neither of which are used in
946+
this driver)
947+
948+
config MTD_GD55_SECTOR512
949+
bool "Emulate 512 byte Erase Blocks"
950+
default n
951+
---help---
952+
This is used to map the native 256 byte sectors to 512 byte sectors.
953+
It is useful if using a file system that demands 512 byte sectors,
954+
such as FAT
955+
956+
endif # MTD_GD55
957+
926958
config MTD_SMART
927959
bool "Sector Mapped Allocation for Really Tiny (SMART) Flash support"
928960
default n

drivers/mtd/Make.defs

+4
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ ifeq ($(CONFIG_MTD_GD25),y)
133133
CSRCS += gd25.c
134134
endif
135135

136+
ifeq ($(CONFIG_MTD_GD55),y)
137+
CSRCS += gd55.c
138+
endif
139+
136140
ifeq ($(CONFIG_MTD_GD5F),y)
137141
CSRCS += gd5f.c
138142
endif

0 commit comments

Comments
 (0)