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

@@ -75,6 +75,11 @@ extern "C" int spi_flash_get_erase_cycles(size_t sector)
return spiflash.get_erase_cycles(sector);
}
extern "C" esp_err_t bootloader_flash_unlock(void)
{
return ESP_OK;
}
esp_rom_spiflash_result_t esp_rom_spiflash_read(uint32_t target, uint32_t *dest, int32_t len)
{
return spiflash.read(target, dest, len);