Skip to content

Commit a0aba2b

Browse files
authored
Merge pull request #1309 from siddacious/master
Updating devices.h to add new devices, fix a typo and address #1239
2 parents 7dc6b1d + dc82fd5 commit a0aba2b

File tree

1 file changed

+36
-3
lines changed

1 file changed

+36
-3
lines changed

ports/atmel-samd/external_flash/devices.h

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ typedef struct {
180180
.write_status_register_split = false, \
181181
}
182182

183-
// Settings for the Winbond W25Q16JV 2MiB SPI flash.
183+
// Settings for the Winbond W25Q16JV-IQ 2MiB SPI flash. Note that JV-IM has a different .memory_type (0x70)
184184
// Datasheet: https://www.winbond.com/resource-files/w25q16jv%20spi%20revf%2005092017.pdf
185-
#define W25Q16JV {\
185+
#define W25Q16JV_IQ {\
186186
.total_size = (1 << 21), /* 2 MiB */ \
187187
.start_up_time_us = 5000, \
188188
.manufacturer_id = 0xef, \
@@ -197,6 +197,23 @@ typedef struct {
197197
.write_status_register_split = false, \
198198
}
199199

200+
// Settings for the Winbond W25Q16JV-IM 2MiB SPI flash. Note that JV-IQ has a different .memory_type (0x40)
201+
// Datasheet: https://www.winbond.com/resource-files/w25q16jv%20spi%20revf%2005092017.pdf
202+
#define W25Q16JV_IM {\
203+
.total_size = (1 << 21), /* 2 MiB */ \
204+
.start_up_time_us = 5000, \
205+
.manufacturer_id = 0xef, \
206+
.memory_type = 0x70, \
207+
.capacity = 0x15, \
208+
.max_clock_speed_mhz = 133, \
209+
.has_sector_protection = false, \
210+
.supports_fast_read = true, \
211+
.supports_qspi = true, \
212+
.has_quad_enable = true, \
213+
.supports_qspi_writes = true, \
214+
.write_status_register_split = false, \
215+
}
216+
200217
// Settings for the Winbond W25Q32BV 4MiB SPI flash.
201218
// Datasheet: https://www.winbond.com/resource-files/w25q32bv_revi_100413_wo_automotive.pdf
202219
#define W25Q32BV {\
@@ -213,6 +230,22 @@ typedef struct {
213230
.supports_qspi_writes = false, \
214231
.write_status_register_split = false, \
215232
}
233+
// Settings for the Winbond W25Q32JV-IM 4MiB SPI flash.
234+
// Datasheet: https://www.winbond.com/resource-files/w25q32jv%20revg%2003272018%20plus.pdf
235+
#define W25Q32JV_IM {\
236+
.total_size = (1 << 22), /* 4 MiB */ \
237+
.start_up_time_us = 5000, \
238+
.manufacturer_id = 0xef, \
239+
.memory_type = 0x70, \
240+
.capacity = 0x16, \
241+
.max_clock_speed_mhz = 133, \
242+
.has_sector_protection = false, \
243+
.supports_fast_read = true, \
244+
.supports_qspi = true, \
245+
.has_quad_enable = true, \
246+
.supports_qspi_writes = true, \
247+
.write_status_register_split = false, \
248+
}
216249

217250
// Settings for the Winbond W25Q64JV-IM 8MiB SPI flash. Note that JV-IQ has a different .memory_type (0x40)
218251
// Datasheet: http://www.winbond.com/resource-files/w25q64jv%20revj%2003272018%20plus.pdf
@@ -266,7 +299,7 @@ typedef struct {
266299
}
267300

268301

269-
// Settings for the Winbond W25Q128JV-SQ 8MiB SPI flash. Note that JV-IM has a different .memory_type (0x70)
302+
// Settings for the Winbond W25Q128JV-SQ 16MiB SPI flash. Note that JV-IM has a different .memory_type (0x70)
270303
// Datasheet: https://www.winbond.com/resource-files/w25q128jv%20revf%2003272018%20plus.pdf
271304
#define W25Q128JV_SQ {\
272305
.total_size = (1 << 23), /* 16 MiB */ \

0 commit comments

Comments
 (0)