summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarturo182 <arturo182@tlen.pl>2019-10-14 23:42:53 +0200
committerarturo182 <arturo182@tlen.pl>2019-10-14 23:42:53 +0200
commite0f60d0c173f889199e431de3838cd1d93376500 (patch)
tree8b6c73cdf28822b2640001f95a22b43c89bccc46
parent51582abc87f59313cdd6a5f5fa4214d0afa65cac (diff)
Add IS25LP128F flash device definition
-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 4de22719a..2e9dfabf5 100644
--- a/supervisor/shared/external_flash/devices.h
+++ b/supervisor/shared/external_flash/devices.h
@@ -443,4 +443,22 @@ typedef struct {
.single_status_byte = false, \
}
+// Settings for the ISSI IS25LP128F 16MiB SPI flash.
+// Datasheet: http://www.issi.com/WW/pdf/25LP-WP128F.pdf
+#define IS25LP128F {\
+ .total_size = (1 << 24), /* 16 MiB */ \
+ .start_up_time_us = 10000, \
+ .manufacturer_id = 0x9d, \
+ .memory_type = 0x60, \
+ .capacity = 0x18, \
+ .max_clock_speed_mhz = 133, \
+ .quad_enable_bit_mask = 0x02, \
+ .has_sector_protection = true, \
+ .supports_fast_read = true, \
+ .supports_qspi = true, \
+ .supports_qspi_writes = true, \
+ .write_status_register_split = false, \
+ .single_status_byte = true, \
+}
+
#endif // MICROPY_INCLUDED_ATMEL_SAMD_EXTERNAL_FLASH_DEVICES_H