From c39e457d18593556a29f6e28d2490e4714364784 Mon Sep 17 00:00:00 2001 From: Juan Carlos Cornejo Date: Fri, 9 Oct 2020 13:54:10 -0400 Subject: [PATCH] Add support for Adesto Tech AT25SF321B-SSHD-T 4MiB SPI flash --- supervisor/shared/external_flash/devices.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/supervisor/shared/external_flash/devices.h b/supervisor/shared/external_flash/devices.h index a874dbd4fd0..cc291dec6ce 100644 --- a/supervisor/shared/external_flash/devices.h +++ b/supervisor/shared/external_flash/devices.h @@ -114,6 +114,24 @@ typedef struct { .single_status_byte = false, \ } +// Settings for the Adesto Tech AT25SF321B-SSHD-T 4MiB SPI flash +// Datasheet: https://www.adestotech.com/wp-content/uploads/AT25SF321B.pdf +#define AT25SF321B {\ + .total_size = (1 << 22), /* 4 MiB */ \ + .start_up_time_us = 10000, \ + .manufacturer_id = 0x1f, \ + .memory_type = 0x87, \ + .capacity = 0x01, \ + .max_clock_speed_mhz = 85, \ + .quad_enable_bit_mask = 0x00, \ + .has_sector_protection = true, \ + .supports_fast_read = true, \ + .supports_qspi = true, \ + .supports_qspi_writes = true, \ + .write_status_register_split = false, \ + .single_status_byte = false, \ +} + // Settings for the Adesto Tech AT25SF041 1MiB SPI flash. It's on the SparkFun // SAMD51 Thing Plus board // Datasheet: https://www.adestotech.com/wp-content/uploads/DS-AT25SF041_044.pdf