diff options
author | Yilun Lin <yllin@google.com> | 2018-07-31 18:22:48 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-01 14:52:31 -0700 |
commit | 295ccc36eaa01eccb0db2079122ca12cdec55044 (patch) | |
tree | dab42723c234e67beb945bf1826dfd71ebf9e190 /board/kukui | |
parent | 347d2912e71a4e1c7f962448ac22cd2c3d3e4866 (diff) | |
download | chrome-ec-295ccc36eaa01eccb0db2079122ca12cdec55044.tar.gz |
charger/mt6370: Init charger IRQs.
Init all the mt6370 charger IRQs. We masked out all the other IRQs
except VBUS detach/attach interrupts. Also, fix GPIO typo in
CHARGER_INT_ODL, it should be GPIO_INT_FALLING.
TEST=make flash_ec BOARD=kukui; check gpioget CHARGER_INT_ODL = 1
BUG=b:110241788
BRANCH=None
Change-Id: I57beec78d74598d161c66f25ee149b3044d020ad
Signed-off-by: Yilun Lin <yllin@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1157726
Commit-Ready: Yilun Lin <yllin@chromium.org>
Tested-by: Yilun Lin <yllin@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'board/kukui')
-rw-r--r-- | board/kukui/gpio.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/kukui/gpio.inc b/board/kukui/gpio.inc index edceecff56..954f9bee7a 100644 --- a/board/kukui/gpio.inc +++ b/board/kukui/gpio.inc @@ -37,7 +37,7 @@ GPIO_INT(ACCEL_INT_ODL, PIN(A, 4), GPIO_INT_FALLING | GPIO_SEL_1P8V | GPIO_P GPIO_INT(SYNC_INT, PIN(A, 5), GPIO_INT_RISING | GPIO_PULL_DOWN, sync_interrupt) #endif -GPIO_INT(CHARGER_INT_ODL, PIN(C, 13), GPIO_INPUT | GPIO_PULL_UP, +GPIO_INT(CHARGER_INT_ODL, PIN(C, 13), GPIO_INT_FALLING | GPIO_PULL_UP, rt946x_interrupt) #ifdef SECTION_IS_RO GPIO_INT(EMMC_CMD, PIN(A, 14), GPIO_INT_FALLING, |