summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2016-08-30 18:20:21 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-09-02 15:12:15 -0700
commit12608eceb6a4bed6e09380f6811e2280aed94d6e (patch)
tree80d345fa186774e8fd0c3d807518a471e5c2bc3d
parent26c5a22125916a53b62ac8226eb10af4c7a77c58 (diff)
downloadchrome-ec-12608eceb6a4bed6e09380f6811e2280aed94d6e.tar.gz
reef: Debounce extpower signal for 1sec
This fixes an issue where the power+charge LED sometimes changes more than once when power is plugged in. BUG=chrome-os-partner:56471 BRANCH=none TEST=Reef power+charger LED changes from one color to another instead of back and forth (unless there are a lot of PD hard resets, but that's another matter) Change-Id: I0ea0dd59cbb7c86b758123fd4e6c8e7b20efa5df Reviewed-on: https://chromium-review.googlesource.com/378756 Commit-Ready: David Hendricks <dhendrix@chromium.org> Tested-by: David Hendricks <dhendrix@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r--board/reef/board.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/reef/board.h b/board/reef/board.h
index 02efe5b454..31035abdde 100644
--- a/board/reef/board.h
+++ b/board/reef/board.h
@@ -98,6 +98,8 @@
#define CONFIG_BOARD_SPECIFIC_VERSION
#define CONFIG_BUTTON_COUNT 2
#define CONFIG_EXTPOWER_GPIO
+#undef CONFIG_EXTPOWER_DEBOUNCE_MS
+#define CONFIG_EXTPOWER_DEBOUNCE_MS 1000
#define CONFIG_FPU
#define CONFIG_I2C
#define CONFIG_I2C_MASTER