aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/kirby/wakeup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/kirby/wakeup.c')
-rw-r--r--src/mainboard/google/kirby/wakeup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainboard/google/kirby/wakeup.c b/src/mainboard/google/kirby/wakeup.c
index 43bad6f4a5..02305b50d3 100644
--- a/src/mainboard/google/kirby/wakeup.c
+++ b/src/mainboard/google/kirby/wakeup.c
@@ -22,6 +22,8 @@
int wakeup_need_reset(void)
{
- return 0;
+ /* 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);
}