Commit 7a22dae9 authored by Tim Lin's avatar Tim Lin Committed by Christopher Friedt
Browse files

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: default avatarTim Lin <tim2.lin@ite.corp-partner.google.com>
parent 234afe2d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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. */