coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
wakeup.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <soc/gpio.h>
4
#include <
soc/wakeup.h
>
5
6
int
wakeup_need_reset
(
void
)
7
{
8
/* The "wake up" event is not reliable (known as "bad wakeup") and needs
9
* reset if the TPM reset mask GPIO value is high. */
10
return
gpio_get_value
(
GPIO_X06
);
11
}
wakeup_need_reset
int wakeup_need_reset(void)
Definition:
wakeup.c:6
gpio_get_value
int gpio_get_value(unsigned int gpio)
Get a GPIO's value.
Definition:
gpio.c:167
GPIO_X06
@ GPIO_X06
Definition:
gpio.h:273
wakeup.h
src
mainboard
google
peach_pit
wakeup.c
Generated by
1.9.1