@@ -66,7 +66,7 @@ typedef struct {
66
66
bool single_status_byte : 1 ;
67
67
} external_flash_device ;
68
68
69
- // Settings for the Adesto Tech AT25DF081A 1MiB SPI flash. Its on the SAMD21
69
+ // Settings for the Adesto Tech AT25DF081A 1MiB SPI flash. It's on the SAMD21
70
70
// Xplained board.
71
71
// Datasheet: https://www.adestotech.com/wp-content/uploads/doc8715.pdf
72
72
#define AT25DF081A {\
@@ -103,6 +103,24 @@ typedef struct {
103
103
.single_status_byte = false, \
104
104
}
105
105
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
+
106
124
// Settings for the Gigadevice GD25Q64C 8MiB SPI flash.
107
125
// Datasheet: http://www.elm-tech.com/en/products/spi-flash-memory/gd25q64/gd25q64.pdf
108
126
#define GD25Q64C {\
0 commit comments