summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedar Grove Maker Studios <jan@goolsbey.net>2019-10-14 11:58:14 -0700
committerGitHub <noreply@github.com>2019-10-14 11:58:14 -0700
commitf1ab9aaa9cb9cb506619757296f4b595da662a97 (patch)
tree9a02dd542f927020a0b2b5318027bf9500268612
parentbd608e0807e17a64ec1b64aa278354a56e761fb9 (diff)
add def for AT25SF161-SSHD-T 2MiB SPI flash chip
-rw-r--r--supervisor/shared/external_flash/devices.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/supervisor/shared/external_flash/devices.h b/supervisor/shared/external_flash/devices.h
index 4de22719a..21d53b5fd 100644
--- a/supervisor/shared/external_flash/devices.h
+++ b/supervisor/shared/external_flash/devices.h
@@ -85,6 +85,26 @@ typedef struct {
.single_status_byte = false, \
}
+// Settings for the Adesto Tech AT25SF161-SSHD-T 2MiB SPI flash
+// for the StringCar M0 (SAMD21) Express board.
+// Source: https://www.digikey.com/product-detail/en/adesto-technologies/AT25SF161-SDHD-T/1265-1230-1-ND/
+// Datasheet: https://www.adestotech.com/wpo-content/uploads/jDS-AT25SF161_046.pdf
+#define AT25SF161 {\
+ .total_size = (1 << 21), /* 2 MiB */ \
+ .start_up_time_us = 10000, \
+ .manufacturer_id = 0x1f, \
+ .memory_type = 0x86, \
+ .capacity = 0x01, \
+ .max_clock_speed_mhz = 85, \
+ .quad_enable_bit_mask = 0x00, \
+ .has_sector_protection = true, \
+ .supports_fast_read = true, \
+ .supports_qspi = false, \
+ .supports_qspi_writes = false, \
+ .write_status_register_split = false, \
+ .single_status_byte = false, \
+}
+
// Settings for the Gigadevice GD25Q16C 2MiB SPI flash.
// Datasheet: http://www.gigadevice.com/datasheet/gd25q16c/
#define GD25Q16C {\
@@ -442,5 +462,4 @@ typedef struct {
.write_status_register_split = false, \
.single_status_byte = false, \
}
-
#endif // MICROPY_INCLUDED_ATMEL_SAMD_EXTERNAL_FLASH_DEVICES_H