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:
Tim Lin 2021-09-02 18:45:33 +08:00 committed by Christopher Friedt
commit 7a22dae91a

View file

@ -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. */