Skip to content

Commit 28d625a

Browse files
BryanSouza91deadprogram
authored andcommitted
added support for W25Q80DV flash chip for xiao-ble target;
1 parent 228e57c commit 28d625a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

flash/devices.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ var DefaultDeviceIdentifier = DeviceIdentifierFunc(func(id JedecID) Attrs {
4646
return GD25Q16C()
4747
case 0xC84017:
4848
return GD25Q64C()
49+
case 0xEF4014:
50+
return W25Q80DV()
4951
case 0xEF4015:
5052
return W25Q16JVIQ()
5153
case 0xEF4016:
@@ -380,6 +382,25 @@ func W25Q80DL() Attrs {
380382
TotalSize: 1 << 20, // 1 MiB
381383
StartUp: 5000 * time.Microsecond,
382384
JedecID: JedecID{0xEF, 0x60, 0x14},
385+
MaxClockSpeedMHz: 80,
386+
QuadEnableBitMask: 0x02,
387+
HasSectorProtection: false,
388+
SupportsFastRead: true,
389+
SupportsQSPI: true,
390+
SupportsQSPIWrites: false,
391+
WriteStatusSplit: false,
392+
SingleStatusByte: false,
393+
}
394+
}
395+
396+
// Settings for the Winbond W25Q80DV 2MiB SPI flash.
397+
// Datasheet:
398+
// https://www.winbond.com/resource-files/w25q80dv%20dl_revh_10022015.pdf
399+
func W25Q80DV() Attrs {
400+
return Attrs{
401+
TotalSize: 1 << 21, // 2 MiB
402+
StartUp: 5000 * time.Microsecond,
403+
JedecID: JedecID{0xEF, 0x40, 0x14},
383404
MaxClockSpeedMHz: 104,
384405
QuadEnableBitMask: 0x02,
385406
HasSectorProtection: false,

0 commit comments

Comments
 (0)