From 1abcdf9145eaa4508546190f76577289dcd04803 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Mon, 4 May 2015 11:46:02 -0700 Subject: [PATCH] ryu: fix physical power button on P5 On P5, the lid detection interrupt has been hijacked to workaround the power sequencing issue. So the lid state is sometimes inconsistent, so we need to ignore the current lid state when the power button is pressed, else we sometimes ignore the power-request by wrongly thinking that the lid is closed. Signed-off-by: Vincent Palatin BRANCH=none BUG=chrome-os-partner:38689 TEST=on Ryu P5, switch on the system by pressing the power button either on the servo board or the casing and see the system turning on. Change-Id: I88b2e1f06ed8b4a155a42dac640f8b946db214ea Reviewed-on: https://chromium-review.googlesource.com/269132 Trybot-Ready: Vincent Palatin Tested-by: Vincent Palatin Reviewed-by: Alec Berg Commit-Queue: Vincent Palatin --- board/ryu_p4p5/board.h | 1 + 1 file changed, 1 insertion(+) diff --git a/board/ryu_p4p5/board.h b/board/ryu_p4p5/board.h index 6ded87e243..104e3d0fb9 100644 --- a/board/ryu_p4p5/board.h +++ b/board/ryu_p4p5/board.h @@ -67,6 +67,7 @@ #define CONFIG_POWER_COMMON #define CONFIG_POWER_BUTTON #define CONFIG_POWER_BUTTON_ACTIVE_STATE 1 +#define CONFIG_POWER_BUTTON_IGNORE_LID /* I2C ports configuration */ #define I2C_PORT_MASTER 0