mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-04 15:07:46 +00:00
Compare commits
1 Commits
dev
...
flash-add-p25q16h
| Author | SHA1 | Date | |
|---|---|---|---|
| 32be3da9f9 |
@@ -36,6 +36,8 @@ var DefaultDeviceIdentifier = DeviceIdentifierFunc(func(id JedecID) Attrs {
|
|||||||
return S25FL216K()
|
return S25FL216K()
|
||||||
case 0x1F4501:
|
case 0x1F4501:
|
||||||
return AT25DF081A()
|
return AT25DF081A()
|
||||||
|
case 0x856015:
|
||||||
|
return P25Q16H()
|
||||||
case 0xC22015:
|
case 0xC22015:
|
||||||
return MX25L1606()
|
return MX25L1606()
|
||||||
case 0xC22016:
|
case 0xC22016:
|
||||||
@@ -73,6 +75,24 @@ var DefaultDeviceIdentifier = DeviceIdentifierFunc(func(id JedecID) Attrs {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Settings for Puya Semi P25Q16H 16MiB QSPI flash.
|
||||||
|
// Datasheet: https://www.puyasemi.com/uploadfiles/2018/08/20180807152503253.pdf
|
||||||
|
func P25Q16H() Attrs {
|
||||||
|
return Attrs{
|
||||||
|
TotalSize: 1 << 24, // 16 MiB
|
||||||
|
StartUp: 12 * time.Microsecond,
|
||||||
|
JedecID: JedecID{0x85, 0x60, 0x15},
|
||||||
|
MaxClockSpeedMHz: 104,
|
||||||
|
QuadEnableBitMask: 0x02,
|
||||||
|
HasSectorProtection: false,
|
||||||
|
SupportsFastRead: true,
|
||||||
|
SupportsQSPI: true,
|
||||||
|
SupportsQSPIWrites: true,
|
||||||
|
WriteStatusSplit: false,
|
||||||
|
SingleStatusByte: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Settings for the Cypress (was Spansion) S25FL064L 8MiB SPI flash.
|
// Settings for the Cypress (was Spansion) S25FL064L 8MiB SPI flash.
|
||||||
// Datasheet: http://www.cypress.com/file/316661/download
|
// Datasheet: http://www.cypress.com/file/316661/download
|
||||||
func S25FL064L() Attrs {
|
func S25FL064L() Attrs {
|
||||||
|
|||||||
Reference in New Issue
Block a user