coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smihandler.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <acpi/acpi.h>
4 #include <baseboard/variants.h>
5 #include <gpio.h>
6 
7 #define TS_ENABLE GPP_B4
8 
9 void variant_smi_sleep(u8 slp_typ)
10 {
11  if (slp_typ == ACPI_S5) {
12  /* Set TS to disable */
13  gpio_set(TS_ENABLE, 0);
14  }
15 }
@ ACPI_S5
Definition: acpi.h:1385
void gpio_set(gpio_t gpio, int value)
Definition: gpio.c:174
void __weak variant_smi_sleep(u8 slp_typ)
Definition: smihandler.c:52
#define TS_ENABLE
Definition: smihandler.c:7
uint8_t u8
Definition: stdint.h:45