summaryrefslogtreecommitdiff
path: root/supervisor
diff options
context:
space:
mode:
authorHierophect <hierophect@gmail.com>2019-10-02 16:03:22 -0400
committerHierophect <hierophect@gmail.com>2019-10-02 16:03:22 -0400
commit9aa6d215fda42d2b4151e05dbc3a88e7ff40f18a (patch)
treefe1a9ac26b63379a71cf2dce03d52a0192af0898 /supervisor
parent5a2f82095a99700cfbcc5b9bede2c9d56786311e (diff)
Add some definitions for when F412 can be implemented
Diffstat (limited to 'supervisor')
-rw-r--r--supervisor/shared/external_flash/devices.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/supervisor/shared/external_flash/devices.h b/supervisor/shared/external_flash/devices.h
index e787ba739..001e8efef 100644
--- a/supervisor/shared/external_flash/devices.h
+++ b/supervisor/shared/external_flash/devices.h
@@ -442,4 +442,23 @@ typedef struct {
.write_status_register_split = false, \
.single_status_byte = false, \
}
+
+// Settings for the Micron N25Q128A 16MiB SPI flash.
+// Datasheet: https://www.micron.com/-/media/client/global/documents/products/data-sheet/nor-flash/serial-nor/n25q/n25q_128mb_3v_65nm.pdf
+#define N25Q128A {\
+ .total_size = (1 << 24), /* 16 MiB */ \
+ .start_up_time_us = 5000, \
+ .manufacturer_id = 0x20, \
+ .memory_type = 0xBA, \
+ .capacity = 0x18, \
+ .max_clock_speed_mhz = 108, \
+ .quad_enable_bit_mask = 0x00, \
+ .has_sector_protection = false, \ /*maybe?*/
+ .supports_fast_read = true, \
+ .supports_qspi = true, \
+ .supports_qspi_writes = true, \
+ .write_status_register_split = false, \
+ .single_status_byte = false, \
+}
+
#endif // MICROPY_INCLUDED_ATMEL_SAMD_EXTERNAL_FLASH_DEVICES_H