spi_flash: move the unlock patch to bootloader and add support for GD

This commit is contained in:
Cao Sen Miao
2021-05-07 15:25:06 +08:00
parent 47e1b41563
commit c29b3e2e36
15 changed files with 128 additions and 18 deletions

View File

@@ -202,7 +202,7 @@ static esp_err_t bootloader_init_spi_flash(void)
#endif
bootloader_spi_flash_resume();
esp_rom_spiflash_unlock();
bootloader_flash_unlock();
#if CONFIG_ESPTOOLPY_FLASHMODE_QIO || CONFIG_ESPTOOLPY_FLASHMODE_QOUT
bootloader_enable_qio_mode();