poppy: Increase base debounce time to 20ms

From our testing, 5ms seems a little short: 20ms is probably better.

BRANCH=none
BUG=b:62393957
BUG=b:35586668
TEST=Test that base is always detected.

Change-Id: I8d0041fc387568cfa0983584ca1d68711c70d9cf
Reviewed-on: https://chromium-review.googlesource.com/535214
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
Nicolas Boichat
2017-06-14 10:20:56 +08:00
committed by chrome-bot
parent 9f37e4a655
commit 43391ca415

View File

@@ -142,7 +142,7 @@ void anx74xx_cable_det_interrupt(enum gpio_signal signal)
*
* TODO(b/35585396): Fine-tune these values.
*/
#define BASE_DETECT_DEBOUNCE_US (5 * MSEC)
#define BASE_DETECT_DEBOUNCE_US (20 * MSEC)
/*
* rev0: Lid has 100K pull-up, base has 5.1K pull-down, so the ADC