From 12608eceb6a4bed6e09380f6811e2280aed94d6e Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Tue, 30 Aug 2016 18:20:21 -0700 Subject: [PATCH] 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 Tested-by: David Hendricks Reviewed-by: Shawn N --- board/reef/board.h | 2 ++ 1 file changed, 2 insertions(+) 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