summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2020-03-26 13:11:02 -0700
committerGitHub <noreply@github.com>2020-03-26 13:11:02 -0700
commit4d2e986b9b41043756fe94302ecbab49087b2a5f (patch)
treec2a1c2bea2186a475d3be18ad95d80dd5ffc8efd
parente2785f9c5f4d0e08528525fca1af1aa7aa837521 (diff)
parentb1d83c3f5e08ac57799a535ced7fe70032552f57 (diff)
Merge pull request #2731 from bd34n/master
supervisor/shared/external_flash/devices.h: Add MX25L51245G support.
-rw-r--r--supervisor/shared/external_flash/devices.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/supervisor/shared/external_flash/devices.h b/supervisor/shared/external_flash/devices.h
index 50263e5d6..fd9224f56 100644
--- a/supervisor/shared/external_flash/devices.h
+++ b/supervisor/shared/external_flash/devices.h
@@ -481,6 +481,24 @@ typedef struct {
.single_status_byte = true, \
}
+// Settings for the Macronix MX25L51245G 64MiB SPI flash.
+// Datasheet: https://www.macronix.com/Lists/Datasheet/Attachments/7437/MX25L51245G,%203V,%20512Mb,%20v1.6.pdf
+#define MX25L51245G {\
+ .total_size = (1 << 26), /* 64 MiB */ \
+ .start_up_time_us = 5000, \
+ .manufacturer_id = 0xc2, \
+ .memory_type = 0x20, \
+ .capacity = 0x1a, \
+ .max_clock_speed_mhz = 133, \
+ .quad_enable_bit_mask = 0x40, \
+ .has_sector_protection = false, \
+ .supports_fast_read = true, \
+ .supports_qspi = true, \
+ .supports_qspi_writes = true, \
+ .write_status_register_split = false, \
+ .single_status_byte = true, \
+}
+
// Settings for the Winbond W25Q128JV-PM 16MiB SPI flash. Note that JV-IM has a different .memory_type (0x70)
// Datasheet: https://www.winbond.com/resource-files/w25q128jv%20revf%2003272018%20plus.pdf
#define W25Q128JV_PM {\