Skip to content

Commit b1d83c3

Browse files
committed
supervisor/shared/external_flash/devices.h: Add MX25L51245G support.
Add external flash support for Macronix MX25L51245G 64MiB SPI flash.
1 parent 59eb35d commit b1d83c3

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
@@ -481,6 +481,24 @@ typedef struct {
481481
.single_status_byte = true, \
482482
}
483483

484+
// Settings for the Macronix MX25L51245G 64MiB SPI flash.
485+
// Datasheet: https://www.macronix.com/Lists/Datasheet/Attachments/7437/MX25L51245G,%203V,%20512Mb,%20v1.6.pdf
486+
#define MX25L51245G {\
487+
.total_size = (1 << 26), /* 64 MiB */ \
488+
.start_up_time_us = 5000, \
489+
.manufacturer_id = 0xc2, \
490+
.memory_type = 0x20, \
491+
.capacity = 0x1a, \
492+
.max_clock_speed_mhz = 133, \
493+
.quad_enable_bit_mask = 0x40, \
494+
.has_sector_protection = false, \
495+
.supports_fast_read = true, \
496+
.supports_qspi = true, \
497+
.supports_qspi_writes = true, \
498+
.write_status_register_split = false, \
499+
.single_status_byte = true, \
500+
}
501+
484502
// Settings for the Winbond W25Q128JV-PM 16MiB SPI flash. Note that JV-IM has a different .memory_type (0x70)
485503
// Datasheet: https://www.winbond.com/resource-files/w25q128jv%20revf%2003272018%20plus.pdf
486504
#define W25Q128JV_PM {\

0 commit comments

Comments
 (0)