@@ -66,7 +66,7 @@ typedef struct {
6666 bool single_status_byte : 1 ;
6767} external_flash_device ;
6868
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
7070// Xplained board.
7171// Datasheet: https://www.adestotech.com/wp-content/uploads/doc8715.pdf
7272#define AT25DF081A {\
@@ -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