Skip to content

Commit 7776009

Browse files
committed
Fix up spi flash define
1 parent 95e0309 commit 7776009

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

ports/atmel-samd/boards/mini_sam_m4/mpconfigboard.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@
2525

2626
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000 - CIRCUITPY_INTERNAL_NVM_SIZE)
2727

28-
#include "external_flash/devices.h"
29-
30-
#define EXTERNAL_FLASH_DEVICE_COUNT 1
31-
#define EXTERNAL_FLASH_DEVICES W25Q16JV_IM
32-
33-
#include "external_flash/external_flash.h"
34-
3528
#define DEFAULT_I2C_BUS_SCL (&pin_PA13)
3629
#define DEFAULT_I2C_BUS_SDA (&pin_PA12)
3730

ports/atmel-samd/boards/mini_sam_m4/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ USB_PRODUCT = "Mini SAM M4"
55
USB_MANUFACTURER = "Benjamin Shockley"
66

77
QSPI_FLASH_FILESYSTEM = 1
8+
EXTERNAL_FLASH_DEVICE_COUNT = 1
9+
EXTERNAL_FLASH_DEVICES = "W25Q16JV_IM"
810
LONGINT_IMPL = MPZ
911

1012
CHIP_VARIANT = SAMD51G19A

supervisor/shared/external_flash/devices.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ typedef struct {
220220
.memory_type = 0x70, \
221221
.capacity = 0x15, \
222222
.max_clock_speed_mhz = 133, \
223+
.quad_enable_bit_mask = 0x02, \
223224
.has_sector_protection = false, \
224225
.supports_fast_read = true, \
225226
.supports_qspi = true, \
226-
.has_quad_enable = true, \
227227
.supports_qspi_writes = true, \
228228
.write_status_register_split = false, \
229229
}
@@ -254,10 +254,10 @@ typedef struct {
254254
.memory_type = 0x70, \
255255
.capacity = 0x16, \
256256
.max_clock_speed_mhz = 133, \
257+
.quad_enable_bit_mask = 0x02, \
257258
.has_sector_protection = false, \
258259
.supports_fast_read = true, \
259260
.supports_qspi = true, \
260-
.has_quad_enable = true, \
261261
.supports_qspi_writes = true, \
262262
.write_status_register_split = false, \
263263
}
@@ -275,7 +275,6 @@ typedef struct {
275275
.has_sector_protection = false, \
276276
.supports_fast_read = true, \
277277
.supports_qspi = true, \
278-
.has_quad_enable = true, \
279278
.supports_qspi_writes = true, \
280279
.write_status_register_split = false, \
281280
.single_status_byte = false, \
@@ -364,10 +363,10 @@ typedef struct {
364363
.memory_type = 0x70, \
365364
.capacity = 0x18, \
366365
.max_clock_speed_mhz = 133, \
366+
.quad_enable_bit_mask = 0x02, \
367367
.has_sector_protection = false, \
368368
.supports_fast_read = true, \
369369
.supports_qspi = true, \
370-
.has_quad_enable = true, \
371370
.supports_qspi_writes = true, \
372371
.write_status_register_split = false, \
373372
}

0 commit comments

Comments
 (0)