File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Original file line number Diff line number Diff line change
1
+ From 17846ae87bbb88df38ef2230566ca18076e7f09f Mon Sep 17 00:00:00 2001
2
+ From: Martino Facchin <m.facchin@arduino.cc>
3
+ Date: Mon, 2 Jan 2023 09:40:40 +0100
4
+ Subject: [PATCH] QSPI: apply Adesto quirk only for AT25SF128A
5
+
6
+ Fixes https://github.com/arduino/ArduinoCore-mbed/issues/600
7
+ ---
8
+ .../COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp | 8 +++++---
9
+ 1 file changed, 5 insertions(+), 3 deletions(-)
10
+
11
+ diff --git a/storage/blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp b/storage/blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp
12
+ index 05968ba7b1..cd21a7354d 100644
13
+ --- a/storage/blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp
14
+ +++ b/storage/blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp
15
+ @@ -1172,9 +1172,11 @@ int QSPIFBlockDevice::_handle_vendor_quirks()
16
+ break;
17
+ case 0x1f:
18
+ // Adesto device
19
+ - tr_debug("Applying quirks for Adesto AT25SF128A");
20
+ - _write_status_reg_2_inst = 0x31;
21
+ - _AT25SF128A_quirk = true;
22
+ + if (vendor_device_ids[1] == 0x89) {
23
+ + tr_debug("Applying quirks for Adesto AT25SF128A");
24
+ + _write_status_reg_2_inst = 0x31;
25
+ + _AT25SF128A_quirk = true;
26
+ + }
27
+ break;
28
+ }
29
+
30
+ - -
31
+ 2.39.0
32
+
You can’t perform that action at this time.
0 commit comments