From 880ce3c25aedb8ef184ed619556ffd13cdd4c260 Mon Sep 17 00:00:00 2001 From: Cao Sen Miao Date: Mon, 14 Mar 2022 17:06:30 +0800 Subject: [PATCH] spi_flash: remove xmc hpm support, because there is some compatible issue with ROM, Closes https://github.com/espressif/esp-idf/issues/8560 --- components/spi_flash/spi_flash_hpm_enable.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/components/spi_flash/spi_flash_hpm_enable.c b/components/spi_flash/spi_flash_hpm_enable.c index 70d56bd46f..6ba9fd5906 100644 --- a/components/spi_flash/spi_flash_hpm_enable.c +++ b/components/spi_flash/spi_flash_hpm_enable.c @@ -79,7 +79,7 @@ static spi_flash_requirement_t spi_flash_hpm_chip_hpm_requirement_check_with_cmd /* The flash listed here should enter the HPM with command 0xA3 */ case 0xC84016: case 0xC84017: - if (freq_mhz >= 80) { + if (freq_mhz > 80) { chip_cap = SPI_FLASH_HPM_NEEDED; } break; @@ -123,12 +123,9 @@ static esp_err_t spi_flash_high_performance_check_hpf_bit_5(void) */ static esp_err_t spi_flash_hpm_probe_chip_with_dummy(uint32_t flash_id) { - ESP_EARLY_LOGW(HPM_TAG, "Enter HPM by reconfiguring dummy has not been fully tested"); esp_err_t ret = ESP_OK; switch (flash_id) { /* The flash listed here should enter the HPM by adjusting dummy cycles */ - case 0x204017: - break; default: ret = ESP_ERR_NOT_FOUND; break; @@ -239,7 +236,9 @@ esp_err_t spi_flash_enable_high_performance_mode(void) chip_hpm = chip; if (ret != ESP_OK) { - ESP_EARLY_LOGE(HPM_TAG, "Flash high performance mode hasn't been supported"); +#if (FLASH_FREQUENCY == 120) + ESP_EARLY_LOGW(HPM_TAG, "Flash high performance mode hasn't been supported"); +#endif return ret; }