mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/wifi-6570' into 'master'
fix the issue of wifipwr losing its clock during sleep on the esp32c6 eco1 Closes WIFI-6570 See merge request espressif/esp-idf!31586
This commit is contained in:
commit
e14eadf952
@ -392,9 +392,9 @@ void modem_clock_select_lp_clock_source(periph_module_t module, modem_clock_lpcl
|
||||
if (efuse_hal_chip_revision() != 0) {
|
||||
if (src == MODEM_CLOCK_LPCLK_SRC_MAIN_XTAL) {
|
||||
pmu_sleep_enable_hp_sleep_sysclk(true);
|
||||
modem_clock_hal_enable_wifipwr_clock(MODEM_CLOCK_instance()->hal, true);
|
||||
modem_clock_domain_clk_gate_disable(MODEM_CLOCK_DOMAIN_WIFIPWR, PMU_HP_ICG_MODEM_CODE_SLEEP);
|
||||
}
|
||||
modem_clock_hal_enable_wifipwr_clock(MODEM_CLOCK_instance()->hal, true);
|
||||
modem_clock_domain_clk_gate_disable(MODEM_CLOCK_DOMAIN_WIFIPWR, PMU_HP_ICG_MODEM_CODE_SLEEP);
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
@ -461,9 +461,9 @@ void modem_clock_deselect_lp_clock_source(periph_module_t module)
|
||||
if (efuse_hal_chip_revision() != 0) {
|
||||
if (last_src == MODEM_CLOCK_LPCLK_SRC_MAIN_XTAL) {
|
||||
pmu_sleep_enable_hp_sleep_sysclk(false);
|
||||
modem_clock_hal_enable_wifipwr_clock(MODEM_CLOCK_instance()->hal, false);
|
||||
modem_clock_domain_clk_gate_enable(MODEM_CLOCK_DOMAIN_WIFIPWR, PMU_HP_ICG_MODEM_CODE_SLEEP);
|
||||
}
|
||||
modem_clock_hal_enable_wifipwr_clock(MODEM_CLOCK_instance()->hal, false);
|
||||
modem_clock_domain_clk_gate_enable(MODEM_CLOCK_DOMAIN_WIFIPWR, PMU_HP_ICG_MODEM_CODE_SLEEP);
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user