From c3d2007728504855198964033be46d428cde2f12 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 7 Sep 2013 03:32:39 -0700 Subject: [PATCH] kirby: Check the right GPIO when checking for a "bad wake". Pit used GPIO X06, and while that's connected in the schematic on kirby as well, it's with an unstuffed resistor. The line is actually connected to GPIO Y00. BUG=None TEST=Built and booted on kirby with corresponding kernel device tree changes. Suspended and resumed using the lid switch on servo and saw that the firmware resumed instead of rebooting. BRANCH=None Change-Id: Iaa7497899cb4514ba94b1e414377799a0ce30e51 Signed-off-by: Gabe Black Reviewed-on: https://chromium-review.googlesource.com/168521 Reviewed-by: ron minnich Commit-Queue: Gabe Black Tested-by: Gabe Black --- src/mainboard/google/kirby/wakeup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainboard/google/kirby/wakeup.c b/src/mainboard/google/kirby/wakeup.c index 02305b50d3..ace543988a 100644 --- a/src/mainboard/google/kirby/wakeup.c +++ b/src/mainboard/google/kirby/wakeup.c @@ -24,6 +24,6 @@ int wakeup_need_reset(void) { /* The "wake up" event is not reliable (known as "bad wakeup") and needs * reset if the TPM reset mask GPIO value is high. */ - return gpio_get_value(GPIO_X06); + return gpio_get_value(GPIO_Y00); }