summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Santistevan <elias.santistevan@sparkfun.com>2019-01-30 13:53:00 -0700
committerElias Santistevan <elias.santistevan@sparkfun.com>2019-01-30 13:53:00 -0700
commit9984b26a32bdde07a960a2738df448e3fb139dc8 (patch)
treefdea2976a930057df08cd19c41a98a9f39161b88
parent178cfc1623e58ffa571825718c1b9f3f8cfe28cd (diff)
Updates devices.h to include the W25Q32FV flash chip that is on the SparkFun LumiDrive and Redboard Turbo
-rw-r--r--supervisor/shared/external_flash/devices.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/supervisor/shared/external_flash/devices.h b/supervisor/shared/external_flash/devices.h
index b535016a3..5b8f9b298 100644
--- a/supervisor/shared/external_flash/devices.h
+++ b/supervisor/shared/external_flash/devices.h
@@ -407,4 +407,21 @@ typedef struct {
.write_status_register_split = false, \
}
+// Settings for the Winbond W25Q32FV 4MiB SPI flash.
+// Datasheet:http://www.winbond.com/resource-files/w25q32fv%20revj%2006032016.pdf?__locale=en
+#define W25Q32FV {\
+ .total_size = (1 << 22), /* 4 MiB */ \
+ .start_up_time_us = 5000, \
+ .manufacturer_id = 0xef, \
+ .memory_type = 0x40, \
+ .capacity = 0x16, \
+ .max_clock_speed_mhz = 104, \
+ .quad_enable_bit_mask = 0x00, \
+ .has_sector_protection = false, \
+ .supports_fast_read = true, \
+ .supports_qspi = false, \
+ .supports_qspi_writes = false, \
+ .write_status_register_split = false, \
+ .single_status_byte = false, \
+}
#endif // MICROPY_INCLUDED_ATMEL_SAMD_EXTERNAL_FLASH_DEVICES_H