mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-07 01:29:51 +01:00
spiflash ROM functions: Remove Quad I/O mode enable/disable code from flash ROM functions
Confusion here is that original ROM has two functions: * SPIReadModeCnfig() - sets mode, calls enable_qio_mode/disable_qio_mode * SPIMasterReadModeCnfig() - As above, but doesn't set QIO mode in status register However we never want to use the ROM method to set/clear QIO mode flag, as not all flash chips work this way. Instead we do it in flash_qio_mode.c in bootloader. So in both cases (ROM or "patched ROM") we now call SPIMasterReadModeCnfig(), which is now named esp_rom_spiflash_config_readmode().
This commit is contained in:
committed by
Angus Gratton
parent
66308774db
commit
85e76a7cfc
@@ -180,7 +180,8 @@ static void enable_qio_mode(read_status_fn_t read_status_fn,
|
||||
#else
|
||||
mode = ESP_ROM_SPIFLASH_QIO_MODE;
|
||||
#endif
|
||||
esp_rom_spiflash_master_config_readmode(mode);
|
||||
esp_rom_spiflash_config_readmode(mode);
|
||||
|
||||
}
|
||||
|
||||
static unsigned read_status_8b_rdsr()
|
||||
|
||||
Reference in New Issue
Block a user