Skip to content

Commit 456854b

Browse files
giulcioffifacchinm
authored andcommitted
QSPI: Disable fast mode for vendor ID 0xc22018
1 parent 4d9daca commit 456854b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

storage/blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,8 +1092,10 @@ int QSPIFBlockDevice::_handle_vendor_quirks()
10921092
// 2. Require setting a "fast mode" bit in config register 2 to operate at higher clock rates
10931093
// 3. Should never attempt to enable 4-byte addressing (it causes reads and writes to fail)
10941094
tr_debug("Applying quirks for macronix");
1095-
_needs_fast_mode = true;
1096-
_num_status_registers = 3;
1095+
if (vendor_device_ids[1] != 0x20) {
1096+
_needs_fast_mode = true;
1097+
_num_status_registers = 3;
1098+
}
10971099
_read_status_reg_2_inst = QSPIF_INST_RDCR;
10981100
_attempt_4_byte_addressing = false;
10991101
break;

0 commit comments

Comments
 (0)