summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/peach_pit/wakeup.c
blob: 1c302f0a676bc813cbccd3a428dfd8720dfcffbe (plain)
1
2
3
4
5
6
7
8
9
10
11
/* SPDX-License-Identifier: GPL-2.0-only */

#include <soc/gpio.h>
#include <soc/wakeup.h>

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);
}