mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-20 08:36:41 +08:00
feat(spi_flash): Support Flash ID 0x164068
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);
|
||||
}
|
||||
}
|
||||
} 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
|
||||
else {
|
||||
@ -435,6 +441,10 @@ void user_spi_flash_dio_to_qio_pre_init(void)
|
||||
to_qio = true;
|
||||
}
|
||||
//ENBALE FLASH QIO 0X01H+0X00+0X02
|
||||
} else if (flash_id == 0x164068) {
|
||||
if (flash_gd25q32c_enable_QIO_mode() == true) {
|
||||
to_qio = true;
|
||||
}
|
||||
} else {
|
||||
if (spi_flash_enable_qmode_raw(&g_rom_flashchip) == ESP_OK) {
|
||||
to_qio = true;
|
||||
|
Reference in New Issue
Block a user