8000 Add GD25Q32C flash device definition · tannewt/circuitpython@12c97b4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 12c97b4

Browse files
committed
Add GD25Q32C flash device definition
1 parent febfc7e commit 12c97b4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

supervisor/shared/external_flash/devices.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,24 @@ typedef struct {
103103
.single_status_byte = false, \
104104
}
105105

106+
// Settings for the Gigadevice GD25Q32C 4MiB SPI flash.
107+
// Datasheet: http://www.elm-tech.com/en/products/spi-flash-memory/gd25q32/gd25q32.pdf
108+
#define GD25Q32C {\
109+
.total_size = (1 << 22), /* 4 MiB */ \
110+
.start_up_time_us = 5000, \
111+
.manufacturer_id = 0xc8, \
112+
.memory_type = 0x40, \
113+
.capacity = 0x16, \
114+
.max_clock_speed_mhz = 104, /* if we need 120 then we can turn on high performance mode */ \
115+
.quad_enable_bit_mask = 0x02, \
116+
.has_sector_protection = false, \
117+
.supports_fast_read = true, \
118+
.supports_qspi = true, \
119+
.supports_qspi_writes = true, \
120+
.write_status_register_split = true, \
121+
.single_status_byte = false, \
122+
}
123+
106124
// Settings for the Gigadevice GD25Q64C 8MiB SPI flash.
107125
// Datasheet: http://www.elm-tech.com/en/products/spi-flash-memory/gd25q64/gd25q64.pdf
108126
#define GD25Q64C {\

0 commit comments

Comments
 (0)
0