Skip to content

Commit 233ccaa

Browse files
authored
Merge pull request #3824 from skerr92/add_more_spi_flash
Adding Support for AT25DF641A SPI Flash
2 parents fd21ff5 + 7480552 commit 233ccaa

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

supervisor/shared/external_flash/devices.h

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,26 @@ typedef struct {
9494
.single_status_byte = false, \
9595
}
9696

97+
// Settings for the Adesto Tech AT25DF641-SSHD-T 8MiB SPI flash
98+
// for the Oak Dev Tech Icy Tree M0 (SAMD21) feather board.
99+
// Source: https://www.digikey.com/product-detail/en/adesto-technologies/AT25SF641-SDHD-T/1265-1180-1-ND/
100+
// Datasheet: https://www.adestotech.com/wp-content/uploads/doc8693.pdf
101+
#define AT25DF641A {\
102+
.total_size = (1 << 23), /* 8 MiB */ \
103+
.start_up_time_us = 10000, \
104+
.manufacturer_id = 0x1f, \
105+
.memory_type = 0x48, \
106+
.capacity = 0x00, \
107+
.max_clock_speed_mhz = 85, \
108+
.quad_enable_bit_mask = 0x00, \
109+
.has_sector_protection = true, \
110+
.supports_fast_read = true, \
111+
.supports_qspi = false, \
112+
.supports_qspi_writes = false, \
113+
.write_status_register_split = false, \
114+
.single_status_byte = false, \
115+
}
116+
97117
// Settings for the Adesto Tech AT25SF161-SSHD-T 2MiB SPI flash
98118
// for the StringCar M0 (SAMD21) Express board.
99119
// Source: https://www.digikey.com/product-detail/en/adesto-technologies/AT25SF161-SDHD-T/1265-1230-1-ND/
@@ -114,6 +134,7 @@ typedef struct {
114134
.single_status_byte = false, \
115135
}
116136

137+
117138
// Settings for the Adesto Tech AT25SF041 1MiB SPI flash. It's on the SparkFun
118139
// SAMD51 Thing Plus board
119140
// Datasheet: https://www.adestotech.com/wp-content/uploads/DS-AT25SF041_044.pdf
@@ -566,6 +587,43 @@ typedef struct {
566587
.single_status_byte = true, \
567588
}
568589

590+
// Settings for the Macronix MX25L51245G 64MiB SPI flash.
591+
// Datasheet: https://www.macronix.com/Lists/Datasheet/Attachments/7437/MX25L51245G,%203V,%20512Mb,%20v1.6.pdf
592+
#define MX25L25645G {\
593+
.total_size = (1 << 25), /* 32 MiB */ \
594+
.start_up_time_us = 5000, \
595+
.manufacturer_id = 0x9f, \
596+
.memory_type = 0xab, \
597+
.capacity = 0x90, \
598+
.max_clock_speed_mhz = 133, \
599+
.quad_enable_bit_mask = 0xaf, \
600+
.has_sector_protection = false, \
601+
.supports_fast_read = true, \
602+
.supports_qspi = true, \
603+
.supports_qspi_writes = true, \
604+
.write_status_register_split = false, \
605+
.single_status_byte = true, \
606+
}
607+
608+
// Settings for the Macronix MX25L12833F 16MiB SPI flash
609+
// Datasheet: https://www.macronix.com/Lists/Datasheet/Attachments/7447/MX25L12833F,%203V,%20128Mb,%20v1.0.pdf
610+
611+
#define MX25L12833F {\
612+
.total_size = (1UL << 24), /* 16 MiB */ \
613+
.start_up_time_us = 5000, \
614+
.manufacturer_id = 0xc2, \
615+
.memory_type = 0x20, \
616+
.capacity = 0x18, \
617+
.max_clock_speed_mhz = 133, \
618+
.quad_enable_bit_mask = 0x40, \
619+
.has_sector_protection = true, \
620+
.supports_fast_read = true, \
621+
.supports_qspi = true, \
622+
.supports_qspi_writes = true, \
623+
.write_status_register_split = false, \
624+
.single_status_byte = true, \
625+
}
626+
569627
// Settings for the Winbond W25Q128JV-PM 16MiB SPI flash. Note that JV-IM has a different .memory_type (0x70)
570628
// Datasheet: https://www.winbond.com/resource-files/w25q128jv%20revf%2003272018%20plus.pdf
571629
#define W25Q128JV_PM {\

0 commit comments

Comments
 (0)