From 0cab97574be2a2d1be35af3985425f898df6a731 Mon Sep 17 00:00:00 2001 From: philipchen Date: Sat, 25 Jun 2016 15:32:11 -0700 Subject: Cleanup: gate RTC console/host command behind new config options Put RTC code supporting console/host command behind new flags 'CONFIG_CMD_RTC'/'CONFIG_HOSTCMD_RTC' BUG=chromium:613699 TEST=make buildall BRANCH=master Change-Id: Ida52265d124978f48bd6ca522be3badee9f99588 Reviewed-on: https://chromium-review.googlesource.com/356206 Commit-Ready: Philip Chen Tested-by: Philip Chen Reviewed-by: Aseda Aboagye Reviewed-by: Shawn N --- chip/npcx/gpio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chip/npcx/gpio.c') diff --git a/chip/npcx/gpio.c b/chip/npcx/gpio.c index fb95f101f1..edd9597aad 100644 --- a/chip/npcx/gpio.c +++ b/chip/npcx/gpio.c @@ -805,11 +805,13 @@ void __gpio_wk0efgh_interrupt(void) void __gpio_rtc_interrupt(void) { /* Check pending bit 7 */ +#ifdef CONFIG_HOSTCMD_RTC if (NPCX_WKPND(MIWU_TABLE_0, MIWU_GROUP_4) & 0x80) { /* Clear pending bit for WUI */ SET_BIT(NPCX_WKPCL(MIWU_TABLE_0, MIWU_GROUP_4), 7); host_set_events(EC_HOST_EVENT_MASK(EC_HOST_EVENT_RTC)); } else +#endif gpio_interrupt(NPCX_IRQ_MTC_WKINTAD_0); } -- cgit v1.2.1