mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
spi_flash: remove xmc hpm support, because there is some compatible issue with ROM,
Closes https://github.com/espressif/esp-idf/issues/8560
This commit is contained in:
parent
4074221540
commit
b0ceb22bef
@ -173,7 +173,7 @@ unsigned bootloader_read_status_8b_rdsr3(void)
|
|||||||
return bootloader_execute_flash_command(CMD_RDSR3, 0, 0, 8);
|
return bootloader_execute_flash_command(CMD_RDSR3, 0, 0, 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned read_status_16b_rdsr_rdsr2(void)
|
unsigned bootloader_read_status_16b_rdsr_rdsr2(void)
|
||||||
{
|
{
|
||||||
return bootloader_execute_flash_command(CMD_RDSR, 0, 0, 8) | (bootloader_execute_flash_command(CMD_RDSR2, 0, 0, 8) << 8);
|
return bootloader_execute_flash_command(CMD_RDSR, 0, 0, 8) | (bootloader_execute_flash_command(CMD_RDSR2, 0, 0, 8) << 8);
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,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 */
|
/* The flash listed here should enter the HPM with command 0xA3 */
|
||||||
case 0xC84016:
|
case 0xC84016:
|
||||||
case 0xC84017:
|
case 0xC84017:
|
||||||
if (freq_mhz >= 80) {
|
if (freq_mhz > 80) {
|
||||||
chip_cap = SPI_FLASH_HPM_NEEDED;
|
chip_cap = SPI_FLASH_HPM_NEEDED;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -124,12 +124,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)
|
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;
|
esp_err_t ret = ESP_OK;
|
||||||
switch (flash_id) {
|
switch (flash_id) {
|
||||||
/* The flash listed here should enter the HPM by adjusting dummy cycles */
|
/* The flash listed here should enter the HPM by adjusting dummy cycles */
|
||||||
case 0x204017:
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
ret = ESP_ERR_NOT_FOUND;
|
ret = ESP_ERR_NOT_FOUND;
|
||||||
break;
|
break;
|
||||||
@ -240,7 +237,9 @@ esp_err_t spi_flash_enable_high_performance_mode(void)
|
|||||||
chip_hpm = chip;
|
chip_hpm = chip;
|
||||||
|
|
||||||
if (ret != ESP_OK) {
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user