From 36df8427f457c38a4fd435c6d05336a0460a681f Mon Sep 17 00:00:00 2001 From: Divya Sasidharan Date: Wed, 11 Apr 2018 13:47:59 -0700 Subject: yorp: Configure CONFIG_EXTPOWER_DEBOUNCE_MS Without this configuration defined the board assumes battery only mode for G3->S5 boot up power sequence and thereby waits for power button press. BUG=b:76230069;b:75974377 BRANCH=None TEST=On yorp, with battery and external power connected reboot on EC console boot the SoC to S0. Verify on both ports. Change-Id: I837b7f99bd3c238ce74e394c773169d703ad9392 Signed-off-by: Divya Sasidharan Reviewed-on: https://chromium-review.googlesource.com/1008247 Commit-Ready: Aaron Durbin Tested-by: Divya S Sasidharan Reviewed-by: Vijay P Hiremath Reviewed-by: Aaron Durbin Reviewed-by: Jett Rink --- board/yorp/board.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/board/yorp/board.h b/board/yorp/board.h index bf3522cd45..e827677578 100644 --- a/board/yorp/board.h +++ b/board/yorp/board.h @@ -143,7 +143,12 @@ #define CONFIG_POWER_BUTTON #define CONFIG_POWER_BUTTON_X86 #define CONFIG_EXTPOWER_GPIO -/* TODO(b/75974377), increase CONFIG_EXTPOWER_DEBOUNCE_MS from 30 to 1000? */ +#undef CONFIG_EXTPOWER_DEBOUNCE_MS +/* + * ISL923x driver sets "Adapter insertion to Switching Debounce" + * CONTROL2 REG 0x3DH to 1 which is 150 ms + */ +#define CONFIG_EXTPOWER_DEBOUNCE_MS 200 #ifndef __ASSEMBLER__ -- cgit v1.2.1