Skip to content

Commit f1ab9aa

Browse files
add def for AT25SF161-SSHD-T 2MiB SPI flash chip
1 parent bd608e0 commit f1ab9aa

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

supervisor/shared/external_flash/devices.h

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,26 @@ typedef struct {
8585
.single_status_byte = false, \
8686
}
8787

88+
// Settings for the Adesto Tech AT25SF161-SSHD-T 2MiB SPI flash
89+
// for the StringCar M0 (SAMD21) Express board.
90+
// Source: https://www.digikey.com/product-detail/en/adesto-technologies/AT25SF161-SDHD-T/1265-1230-1-ND/
91+
// Datasheet: https://www.adestotech.com/wpo-content/uploads/jDS-AT25SF161_046.pdf
92+
#define AT25SF161 {\
93+
.total_size = (1 << 21), /* 2 MiB */ \
94+
.start_up_time_us = 10000, \
95+
.manufacturer_id = 0x1f, \
96+
.memory_type = 0x86, \
97+
.capacity = 0x01, \
98+
.max_clock_speed_mhz = 85, \
99+
.quad_enable_bit_mask = 0x00, \
100+
.has_sector_protection = true, \
101+
.supports_fast_read = true, \
102+
.supports_qspi = false, \
103+
.supports_qspi_writes = false, \
104+
.write_status_register_split = false, \
105+
.single_status_byte = false, \
106+
}
107+
88108
// Settings for the Gigadevice GD25Q16C 2MiB SPI flash.
89109
// Datasheet: http://www.gigadevice.com/datasheet/gd25q16c/
90110
#define GD25Q16C {\
@@ -442,5 +462,4 @@ typedef struct {
442462
.write_status_register_split = false, \
443463
.single_status_byte = false, \
444464
}
445-
446465
#endif // MICROPY_INCLUDED_ATMEL_SAMD_EXTERNAL_FLASH_DEVICES_H

0 commit comments

Comments
 (0)