mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #15493 from macronix/macronix_qspi_driver
Add configurable status register number in mbed_lib.json for QSPIBlockDevice driver to support different Flash EPNpull/15518/head
commit
869f0d708a
|
@ -18,11 +18,13 @@
|
||||||
"QSPI_POLARITY_MODE": 0,
|
"QSPI_POLARITY_MODE": 0,
|
||||||
"QSPI_FREQ": "40000000",
|
"QSPI_FREQ": "40000000",
|
||||||
"QSPI_MIN_READ_SIZE": "1",
|
"QSPI_MIN_READ_SIZE": "1",
|
||||||
"QSPI_MIN_PROG_SIZE": "1"
|
"QSPI_MIN_PROG_SIZE": "1",
|
||||||
|
"QSPI_NUM_STATUS_REGISTER":"2"
|
||||||
},
|
},
|
||||||
"target_overrides": {
|
"target_overrides": {
|
||||||
"MX25R6435F": {
|
"MX25R6435F": {
|
||||||
"QSPI_FREQ": "8000000"
|
"QSPI_FREQ": "8000000",
|
||||||
|
"QSPI_NUM_STATUS_REGISTER":"3"
|
||||||
},
|
},
|
||||||
"MX25L51245G": {
|
"MX25L51245G": {
|
||||||
"QSPI_FREQ": "8000000"
|
"QSPI_FREQ": "8000000"
|
||||||
|
|
|
@ -1093,7 +1093,7 @@ int QSPIFBlockDevice::_handle_vendor_quirks()
|
||||||
// 3. Should never attempt to enable 4-byte addressing (it causes reads and writes to fail)
|
// 3. Should never attempt to enable 4-byte addressing (it causes reads and writes to fail)
|
||||||
tr_debug("Applying quirks for macronix");
|
tr_debug("Applying quirks for macronix");
|
||||||
_needs_fast_mode = true;
|
_needs_fast_mode = true;
|
||||||
_num_status_registers = 3;
|
_num_status_registers = MBED_CONF_QSPI_NUM_STATUS_REGISTER;
|
||||||
_read_status_reg_2_inst = QSPIF_INST_RDCR;
|
_read_status_reg_2_inst = QSPIF_INST_RDCR;
|
||||||
_attempt_4_byte_addressing = false;
|
_attempt_4_byte_addressing = false;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue