From 764b2e57e741b9d83fa603993ba80e0696fd1333 Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Tue, 6 Sep 2016 11:31:34 -0700 Subject: kevin: Use 32.768KHz input clock for improved RTC accuracy BUG=chrome-os-partner:56949 BRANCH=None TEST=Run stopwatch for 10 minutes, verify 'rtc' time difference matches stopwatch. Change-Id: I3aed54b17433f9acfe284e9c8846d4e1e7c1a199 Signed-off-by: Shawn Nematbakhsh Reviewed-on: https://chromium-review.googlesource.com/381571 Commit-Ready: Shawn N Tested-by: Shawn N Reviewed-by: Aseda Aboagye Reviewed-by: Mulin Chao --- chip/npcx/clock.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chip/npcx/clock.c') diff --git a/chip/npcx/clock.c b/chip/npcx/clock.c index 725473cccb..f6a65cb02f 100644 --- a/chip/npcx/clock.c +++ b/chip/npcx/clock.c @@ -159,6 +159,9 @@ void clock_init(void) /* Notify modules of frequency change */ hook_notify(HOOK_FREQ_CHANGE); + + /* Configure alt. clock GPIOs (eg. optional 32KHz clock) */ + gpio_config_module(MODULE_CLOCK, 1); } /** -- cgit v1.2.1