ITE: soc: it8xxx2: add initialization setting for hibernate mode
Setting this bit will wake up CPU if it is in low power mode and an interrupt is pending. Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
This commit is contained in:
parent
234afe2d0d
commit
7a22dae91a
1 changed files with 6 additions and 0 deletions
|
@ -136,6 +136,12 @@ static int ite_it8xxx2_init(const struct device *arg)
|
|||
{
|
||||
ARG_UNUSED(arg);
|
||||
|
||||
/*
|
||||
* bit7: wake up CPU if it is in low power mode and
|
||||
* an interrupt is pending.
|
||||
*/
|
||||
IT83XX_GCTRL_WMCR |= BIT(7);
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart1), okay)
|
||||
/* UART1 board init */
|
||||
/* bit2: clocks to UART1 modules are not gated. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue