diff options
author | Ting Shen <phoenixshen@google.com> | 2019-03-22 20:30:49 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-06-20 09:38:50 +0000 |
commit | 8b6200d6c6caaf1dc1b65db5dac85ba1bb9ccd49 (patch) | |
tree | 891879043d90124c3ef77d6b282f7942df79f048 /board/kukui/gpio.inc | |
parent | 8efa67d5d535e10021edbb7034ff83e6b76452a8 (diff) | |
download | chrome-ec-8b6200d6c6caaf1dc1b65db5dac85ba1bb9ccd49.tar.gz |
kukui: implement pogo charge logic
Added a dedicated(POGO) charge port and related costomization
functions.
BUG=b:128386458
TEST=`gpioset POGO_VBUS_PRESENT 0/1` to simulate pogo charger
presence, and a normal usb charger for usb port to check its behavior.
BRANCH=None
Change-Id: If102c57088f1aafee437c7cc912992dc0cf8e9da
Signed-off-by: Ting Shen <phoenixshen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1535087
Reviewed-by: Yilun Lin <yllin@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Auto-Submit: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/kukui/gpio.inc')
-rw-r--r-- | board/kukui/gpio.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/kukui/gpio.inc b/board/kukui/gpio.inc index eebe21587c..cba7902172 100644 --- a/board/kukui/gpio.inc +++ b/board/kukui/gpio.inc @@ -45,6 +45,8 @@ GPIO_INT(GAUGE_INT_ODL, PIN(C, 9), GPIO_INT_FALLING | GPIO_PULL_UP, gauge_interrupt) GPIO_INT(POGO_ADC_INT_L, PIN(A, 6), GPIO_INT_BOTH | GPIO_ANALOG, pogo_adc_interrupt) +GPIO_INT(POGO_VBUS_PRESENT, PIN(A, 14), GPIO_INT_BOTH, + pogo_vbus_present) /* Reset pins */ GPIO(AP_SYS_RST_L, PIN(C, 11), GPIO_OUT_LOW) @@ -71,7 +73,6 @@ GPIO(EC_SKU_ID, PIN(B, 0), GPIO_ANALOG) GPIO(WP_L, PIN(C, 8), GPIO_INPUT) /* EC_FLASH_WP_ODL */ GPIO(BOOT0, PIN(F, 11), GPIO_INPUT) GPIO(CCD_MODE_ODL, PIN(A, 1), GPIO_INPUT) -GPIO(POGO_VBUS_PRESENT, PIN(A, 14), GPIO_INPUT) /* Other output pins */ GPIO(ENTERING_RW, PIN(C, 6), GPIO_ODR_HIGH) /* EC_ENTERING_RW_ODL */ |