Skip to content

Commit 7a22dae

Browse files
GTLin08cfriedt
authored andcommitted
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 <[email protected]>
1 parent 234afe2 commit 7a22dae

File tree

1 file changed

+6
-0
lines changed
  • soc/riscv/riscv-ite/it8xxx2

1 file changed

+6
-0
lines changed

soc/riscv/riscv-ite/it8xxx2/soc.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ static int ite_it8xxx2_init(const struct device *arg)
136136
{
137137
ARG_UNUSED(arg);
138138

139+
/*
140+
* bit7: wake up CPU if it is in low power mode and
141+
* an interrupt is pending.
142+
*/
143+
IT83XX_GCTRL_WMCR |= BIT(7);
144+
139145
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart1), okay)
140146
/* UART1 board init */
141147
/* bit2: clocks to UART1 modules are not gated. */

0 commit comments

Comments
 (0)