forked from espressif/esp-idf
fix(pm): add hp power_supply_wait_time_us to avoid power glitch
This commit is contained in:
@@ -474,7 +474,7 @@ typedef struct pmu_sleep_machine_constant {
|
|||||||
.analog_wait_time_us = 154, \
|
.analog_wait_time_us = 154, \
|
||||||
.isolate_wait_time_us = 1, \
|
.isolate_wait_time_us = 1, \
|
||||||
.reset_wait_time_us = 1, \
|
.reset_wait_time_us = 1, \
|
||||||
.power_supply_wait_time_us = 2, \
|
.power_supply_wait_time_us = 20, \
|
||||||
.power_up_wait_time_us = 2, \
|
.power_up_wait_time_us = 2, \
|
||||||
.regdma_s2m_work_time_us = 172, \
|
.regdma_s2m_work_time_us = 172, \
|
||||||
.regdma_s2a_work_time_us = 480, \
|
.regdma_s2a_work_time_us = 480, \
|
||||||
|
@@ -680,6 +680,9 @@ FORCE_INLINE_ATTR uint32_t pmu_ll_hp_get_analog_wait_target_cycle(pmu_dev_t *hw)
|
|||||||
|
|
||||||
FORCE_INLINE_ATTR void pmu_ll_hp_set_digital_power_supply_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
FORCE_INLINE_ATTR void pmu_ll_hp_set_digital_power_supply_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
||||||
{
|
{
|
||||||
|
if (cycle > 0x1FF) {
|
||||||
|
cycle = 0x1FF;
|
||||||
|
}
|
||||||
hw->power.wait_timer0.wait_timer = cycle;
|
hw->power.wait_timer0.wait_timer = cycle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user