fix(pm): add hp power_supply_wait_time_us to avoid power glitch

This commit is contained in:
Lou Tianhao
2024-08-28 20:30:25 +08:00
parent 46af50ee5a
commit d5c58a1d8c
2 changed files with 4 additions and 1 deletions

View File

@@ -474,7 +474,7 @@ typedef struct pmu_sleep_machine_constant {
.analog_wait_time_us = 154, \
.isolate_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, \
.regdma_s2m_work_time_us = 172, \
.regdma_s2a_work_time_us = 480, \

View File

@@ -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)
{
if (cycle > 0x1FF) {
cycle = 0x1FF;
}
hw->power.wait_timer0.wait_timer = cycle;
}