Skip to content

Commit 2373e64

Browse files
authored
Merge pull request #4460 from lyusupov/MX25R1635F_QSPI_FIX
fix for MX25R1635F QSPI mode of operation
2 parents a05aab8 + 76c1ae7 commit 2373e64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

supervisor/shared/external_flash/devices.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -568,17 +568,17 @@ typedef struct {
568568
.single_status_byte = true, \
569569
}
570570

571-
// Settings for the Macronix MX25R1635F 8MiB SPI flash.
571+
// Settings for the Macronix MX25R1635F 2MiB SPI flash.
572572
// Datasheet: https://www.macronix.com/Lists/Datasheet/Attachments/7595/MX25R1635F,%20Wide%20Range,%2016Mb,%20v1.6.pdf
573-
// In low power mode, quad operations can only run at 8 MHz.
573+
// In low power mode, quad operations can only run at 8 MHz. In high power mode it can do 80 MHz.
574574
#define MX25R1635F { \
575575
.total_size = (1 << 21), /* 2 MiB */ \
576576
.start_up_time_us = 800, \
577577
.manufacturer_id = 0xc2, \
578578
.memory_type = 0x28, \
579579
.capacity = 0x15, \
580-
.max_clock_speed_mhz = 33, /* 8 mhz for dual/quad */ \
581-
.quad_enable_bit_mask = 0x80, \
580+
.max_clock_speed_mhz = 8, /* 33 MHz for 1-bit operations */ \
581+
.quad_enable_bit_mask = 0x40, \
582582
.has_sector_protection = false, \
583583
.supports_fast_read = true, \
584584
.supports_qspi = true, \

0 commit comments

Comments
 (0)