From 79fe9ee1a53421ef50efa66650632fac44e27150 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Thu, 23 Jul 2015 11:14:13 -0700 Subject: [PATCH] ryu: update closed lid detection algorithm use (LID_OPEN == 0 && BASE_PRES_L == 0) as the lid closed condition to avoid false triggers. Signed-off-by: Vincent Palatin BRANCH=smaug BUG=chrome-os-partner:42110 TEST=on Smaug EVT2, play with magnets and the genuine lid, check we get the right "lid open" / "lid close" messages on the console. Change-Id: Ie0a34fb7e45e8a424ff1cfda7662543d4f336f1a Reviewed-on: https://chromium-review.googlesource.com/287853 Trybot-Ready: Vincent Palatin Tested-by: Vincent Palatin Reviewed-by: Alec Berg Commit-Queue: Vincent Palatin --- board/ryu/board.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/ryu/board.h b/board/ryu/board.h index 89ba110d40..83c612e3f1 100644 --- a/board/ryu/board.h +++ b/board/ryu/board.h @@ -50,6 +50,8 @@ #define CONFIG_HW_CRC #define CONFIG_I2C #define CONFIG_LID_SWITCH +#define CONFIG_LID_SWITCH_GPIO_LIST LID_GPIO(GPIO_LID_OPEN)\ + LID_GPIO(GPIO_BASE_PRES_L) #define CONFIG_LOW_POWER_IDLE #define CONFIG_MKBP_EVENT #define CONFIG_VBOOT_HASH