mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/fix_mspi_timing_tuning_psram_timing_issue_v4.4' into 'release/v4.4'
mspi_tuning: fix psram timing tuning bug (v4.4) See merge request espressif/esp-idf!21625
This commit is contained in:
commit
3ecf906721
@ -392,6 +392,9 @@ static void clear_timing_tuning_regs(bool control_spi1)
|
|||||||
} else {
|
} else {
|
||||||
//Won't touch SPI1 registers
|
//Won't touch SPI1 registers
|
||||||
}
|
}
|
||||||
|
|
||||||
|
spi_timing_config_psram_set_din_mode_num(0, 0, 0);
|
||||||
|
spi_timing_config_psram_set_extra_dummy(0, 0);
|
||||||
}
|
}
|
||||||
#endif //#if SPI_TIMING_FLASH_NEEDS_TUNING || SPI_TIMING_PSRAM_NEEDS_TUNING
|
#endif //#if SPI_TIMING_FLASH_NEEDS_TUNING || SPI_TIMING_PSRAM_NEEDS_TUNING
|
||||||
|
|
||||||
@ -414,6 +417,9 @@ void spi_timing_enter_mspi_low_speed_mode(bool control_spi1)
|
|||||||
spi_timing_config_set_flash_clock(1, 4);
|
spi_timing_config_set_flash_clock(1, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Set PSRAM module clock
|
||||||
|
spi_timing_config_set_psram_clock(0, 4);
|
||||||
|
|
||||||
#if SPI_TIMING_FLASH_NEEDS_TUNING || SPI_TIMING_PSRAM_NEEDS_TUNING
|
#if SPI_TIMING_FLASH_NEEDS_TUNING || SPI_TIMING_PSRAM_NEEDS_TUNING
|
||||||
clear_timing_tuning_regs(control_spi1);
|
clear_timing_tuning_regs(control_spi1);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user