Skip to content

Commit 2e29f26

Browse files
authored
Merge pull request #2980 from bd34n/flash-device-gd25s512md
.../devices.h: Add GigaDevices GD25S512MD 64 MiB flash chip support.
2 parents 70e99e7 + cf888dc commit 2e29f26

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
@@ -187,6 +187,24 @@ typedef struct {
187187
.single_status_byte = false, \
188188
}
189189

190+
// Settings for the Gigadevice GD25S512MD 64MiB SPI flash.
191+
// Datasheet: http://www.gigadevice.com/datasheet/gd25s512md/
192+
#define GD25S512MD {\
193+
.total_size = (1 << 26), /* 64 MiB */ \
194+
.start_up_time_us = 5000, \
195+
.manufacturer_id = 0xc8, \
196+
.memory_type = 0x40, \
197+
.capacity = 0x19, \
198+
.max_clock_speed_mhz = 104, /* if we need 120 then we can turn on high performance mode */ \
199+
.quad_enable_bit_mask = 0x02, \
200+
.has_sector_protection = false, \
201+
.supports_fast_read = true, \
202+
.supports_qspi = true, \
203+
.supports_qspi_writes = true, \
204+
.write_status_register_split = true, \
205+
.single_status_byte = false, \
206+
}
207+
190208
// Settings for the Cypress (was Spansion) S25FL064L 8MiB SPI flash.
191209
// Datasheet: http://www.cypress.com/file/316661/download
192210
#define S25FL064L {\

0 commit comments

Comments
 (0)