ulp: added sleep support for lp core

Added support for running LP core while hp core sleeps, as well
as waking up the hp core.
This commit is contained in:
Marius Vikhammer
2023-04-25 11:51:35 +08:00
parent 269ff98449
commit 359b237cc5
33 changed files with 307 additions and 27 deletions
@@ -506,6 +506,11 @@ FORCE_INLINE_ATTR bool pmu_ll_hp_is_sleep_reject(pmu_dev_t *hw)
return (hw->hp_ext.int_raw.reject == 1);
}
FORCE_INLINE_ATTR void pmu_ll_hp_clear_sw_intr_status(pmu_dev_t *hw)
{
hw->hp_ext.int_clr.sw = 1;
}
FORCE_INLINE_ATTR void pmu_ll_hp_clear_wakeup_intr_status(pmu_dev_t *hw)
{
hw->hp_ext.int_clr.wakeup = 1;