From 00f889bfcf324197f9469febc696bae5983c4775 Mon Sep 17 00:00:00 2001 From: Ting Shen Date: Mon, 29 Apr 2019 16:54:29 +0800 Subject: kukui: implement pogo adc interrupt enable/disable pogo power supply when POGO_ADC_INT_L detected. BUG=b:131389131 TEST=make BRANCH=None Change-Id: I875b8b65c3077d2e7aeca312f244d178917e634b Signed-off-by: Ting Shen Reviewed-on: https://chromium-review.googlesource.com/1585485 Commit-Ready: Ting Shen Tested-by: Ting Shen Reviewed-by: Yilun Lin Reviewed-by: Ting Shen --- board/kukui/gpio.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'board/kukui/gpio.inc') diff --git a/board/kukui/gpio.inc b/board/kukui/gpio.inc index 2581810d68..1b5333fbeb 100644 --- a/board/kukui/gpio.inc +++ b/board/kukui/gpio.inc @@ -43,10 +43,8 @@ GPIO_INT(HALL_INT_L, PIN(C, 5), GPIO_INT_FALLING, hall_interrupt) GPIO_INT(GAUGE_INT_ODL, PIN(C, 9), GPIO_INT_FALLING | GPIO_PULL_UP, gauge_interrupt) - -/* Interrupts not implemented yet */ -/* TODO(b:122993147): It's also an analog input. */ -GPIO(POGO_ADC_INT_L, PIN(A, 6), GPIO_INPUT) +GPIO_INT(POGO_ADC_INT_L, PIN(A, 6), GPIO_INT_BOTH | GPIO_ANALOG, + pogo_adc_interrupt) /* Reset pins */ GPIO(AP_SYS_RST_L, PIN(C, 11), GPIO_OUT_LOW) -- cgit v1.2.1