mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-03 23:48:59 +08:00
Merge branch 'feature/flash_support_id_0x164068' into 'master'
feat(spi_flash): Support ID 0x164068 See merge request sdk/ESP8266_RTOS_SDK!1659
This commit is contained in:
@ -259,6 +259,12 @@ bool spi_flash_check_wr_protect(void)
|
|||||||
special_flash_write_status(0x01, status&(~(SPI_GD25Q32_FLASH_WRITE_PROTECT_STATUS)), 1, true);
|
special_flash_write_status(0x01, status&(~(SPI_GD25Q32_FLASH_WRITE_PROTECT_STATUS)), 1, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (flash_id == 0x164068) {
|
||||||
|
if(spi_flash_read_status(&status)==0) { //Read status Ok
|
||||||
|
if(status&SPI_GD25Q32_FLASH_WRITE_PROTECT_STATUS) {
|
||||||
|
special_flash_write_status(0x01, status&(~(SPI_GD25Q32_FLASH_WRITE_PROTECT_STATUS)), 1, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//Others
|
//Others
|
||||||
else {
|
else {
|
||||||
@ -435,6 +441,10 @@ void user_spi_flash_dio_to_qio_pre_init(void)
|
|||||||
to_qio = true;
|
to_qio = true;
|
||||||
}
|
}
|
||||||
//ENBALE FLASH QIO 0X01H+0X00+0X02
|
//ENBALE FLASH QIO 0X01H+0X00+0X02
|
||||||
|
} else if (flash_id == 0x164068) {
|
||||||
|
if (flash_gd25q32c_enable_QIO_mode() == true) {
|
||||||
|
to_qio = true;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (spi_flash_enable_qmode_raw(&g_rom_flashchip) == ESP_OK) {
|
if (spi_flash_enable_qmode_raw(&g_rom_flashchip) == ESP_OK) {
|
||||||
to_qio = true;
|
to_qio = true;
|
||||||
|
Reference in New Issue
Block a user