From d161f78d42e6c08e1d1b4aa291664bad42eac5df Mon Sep 17 00:00:00 2001 From: CHLin Date: Tue, 1 Dec 2015 13:21:28 +0800 Subject: [PATCH] nuc: enable CLKRUN functionality for SERIRQ quiet mode. Set alternative pin from GPIO to CLKRUN if SERIRQ is under quiet mode Once we need LCLK, CLKRUN will pull low automatically. Modified drivers: 1. lpc.c.: enable CLKRUN functionality for SERIRQ no matter continuous or quiet mode. BUG=chrome-os-partner:34346 TEST=make buildall -j; test nuvoton IC specific drivers BRANCH=none Change-Id: I58b11340833b26bc64bfe499272fd3b319b33202 Signed-off-by: CHLin Reviewed-on: https://chromium-review.googlesource.com/314971 Commit-Ready: CH Lin Tested-by: CH Lin Reviewed-by: Randall Spangler --- chip/npcx/lpc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chip/npcx/lpc.c b/chip/npcx/lpc.c index 3d193abe73..ff1049e1ff 100644 --- a/chip/npcx/lpc.c +++ b/chip/npcx/lpc.c @@ -764,6 +764,12 @@ static void lpc_init(void) /* Clear Host Access Hold state */ NPCX_SMC_CTL = 0xC0; + /* + * Set alternative pin from GPIO to CLKRUN no matter SERIRQ is under + * continuous or quiet mode. + */ + SET_BIT(NPCX_DEVALT(1), NPCX_DEVALT1_CLKRN_SL); + /* Initialize Hardware for UART Host */ #if CONFIG_UART_HOST /* Init COMx LPC UART */