mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 18:41:11 +00:00
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 <chlin56@nuvoton.com> Reviewed-on: https://chromium-review.googlesource.com/314971 Commit-Ready: CH Lin <chlin56@nuvoton.com> Tested-by: CH Lin <chlin56@nuvoton.com> Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user