spi_flash: add support for 32Mbit address GD flash, for GD25Q256

This commit is contained in:
Cao Sen Miao
2021-05-18 12:05:41 +08:00
parent 4a87be3ecd
commit fecf27e54c
13 changed files with 182 additions and 5 deletions

View File

@@ -108,6 +108,15 @@ esp_err_t spi_flash_chip_eon_suspend_cmd_conf(esp_flash_t *chip)
return ESP_ERR_NOT_SUPPORTED;
}
spi_flash_caps_t spi_flash_chip_eon_get_caps(esp_flash_t *chip)
{
spi_flash_caps_t caps_flags = 0;
// 32-bit-address flash is not supported
// flash-suspend is not supported
// flash read unique id is not supported.
return caps_flags;
}
// The issi chip can use the functions for generic chips except from set read mode and probe,
// So we only replace these two functions.
const spi_flash_chip_t esp_flash_chip_eon = {
@@ -143,4 +152,5 @@ const spi_flash_chip_t esp_flash_chip_eon = {
.read_reg = spi_flash_chip_generic_read_reg,
.yield = spi_flash_chip_generic_yield,
.sus_setup = spi_flash_chip_eon_suspend_cmd_conf,
.get_chip_caps = spi_flash_chip_eon_get_caps,
};