ulp: Keep RTC_CNTL_COCPU_SHUT_RESET_EN set for ULP RISC-V

RTC_CNTL_COCPU_SHUT_RESET_EN register was being reset during ULP RISC-V
initialization which does not let the ULP RISC-V coprocessor to reset
after it goes to halt. For proper operation of the coprocessor, it must
be reset after each cycle and hence this commit keeps
RTC_CNTL_COCPU_SHUT_RESET_EN set.
This commit is contained in:
Sudeep Mohanty
2022-04-27 14:56:55 +05:30
parent 9b64c40981
commit f709faea7c
2 changed files with 8 additions and 8 deletions

View File

@@ -13,7 +13,7 @@
void ulp_riscv_rescue_from_monitor(void)
{
/* Rescue RISCV from monitor state. */
CLEAR_PERI_REG_MASK(RTC_CNTL_COCPU_CTRL_REG, RTC_CNTL_COCPU_DONE | RTC_CNTL_COCPU_SHUT_RESET_EN);
CLEAR_PERI_REG_MASK(RTC_CNTL_COCPU_CTRL_REG, RTC_CNTL_COCPU_DONE);
}
void ulp_riscv_wakeup_main_processor(void)