summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2015-10-23 14:42:09 -0700
committerChromeOS bot <3su6n15k.default@developer.gserviceaccount.com>2015-10-23 21:58:14 +0000
commit659d826b4efcd391eced3d4dda319d502d028457 (patch)
treef5c642bd6c7488a5205520e495b1e6a7531f3cb2
parent53e49d6d6541183349bb7267fa5ec2b1db250d99 (diff)
downloadchrome-ec-659d826b4efcd391eced3d4dda319d502d028457.tar.gz
ryu: fix lid close detection
Now we are using LID_OPEN *and* BASE_PRES_L for lid close detection, we need an interrupt on both to debounce arbitrarily long delay between the transitions of the 2 GPIOs. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=smaug BUG=chrome-os-partner:46189 TEST=manual: activate manually LID_OPEN and BASE_PRES_L hall sensors in very slow sequences and see the proper "lid close"/"lid open" traces, whatever sequence I do. Change-Id: Id170c1a6a46d36aee658f6b01f974887c597ddf1 Reviewed-on: https://chromium-review.googlesource.com/308513 Trybot-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--board/ryu/gpio.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/ryu/gpio.inc b/board/ryu/gpio.inc
index b2321e819b..445fb79c5e 100644
--- a/board/ryu/gpio.inc
+++ b/board/ryu/gpio.inc
@@ -10,6 +10,7 @@ GPIO_INT(CHGR_ACOK, PIN(D, 4), GPIO_INT_BOTH, vbus_evt)
GPIO_INT(POWER_BUTTON_L, PIN(C, 13), GPIO_INT_BOTH, power_button_interrupt) /* active high, the name is for compatibility with existing code */
GPIO_INT(USBC_BC12_INT_L, PIN(D, 11), GPIO_INT_FALLING | GPIO_PULL_UP, usb_evt)
GPIO_INT(LID_OPEN, PIN(E, 1), GPIO_INT_BOTH | GPIO_PULL_UP, lid_interrupt)
+GPIO_INT(BASE_PRES_L, PIN(E, 10), GPIO_INT_BOTH | GPIO_PULL_UP, lid_interrupt)
GPIO_INT(CHARGE_DONE, PIN(E, 6), GPIO_INT_BOTH, inductive_charging_interrupt)
GPIO_INT(AP_IN_SUSPEND, PIN(F, 9), GPIO_INT_BOTH, power_signal_interrupt)
GPIO_INT(AP_HOLD, PIN(E, 3), GPIO_INT_BOTH, power_signal_interrupt)
@@ -21,7 +22,6 @@ GPIO_INT(ALS_PROXY_INT_L, PIN(E, 15), GPIO_INT_FALLING | GPIO_PULL_UP, si11
GPIO(BC_TEMP_ALERT_L, PIN(C, 5), GPIO_INT_FALLING)
GPIO(LB_INT_L, PIN(C, 14), GPIO_INT_FALLING | GPIO_PULL_UP)
GPIO(LIGHTBAR_EN_L, PIN(E, 8), GPIO_INT_FALLING | GPIO_PULL_UP)
-GPIO(BASE_PRES_L, PIN(E, 10), GPIO_INT_BOTH | GPIO_PULL_UP)
GPIO(CAM_SYNC_INT_L, PIN(C, 7), GPIO_INT_FALLING)
GPIO(COMPASS_DRDY, PIN(A, 8), GPIO_INPUT)