coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
variant.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #include <acpi/acpi.h>
4 #include <baseboard/variants.h>
5 #include <delay.h>
6 #include <gpio.h>
7 
8 static void power_off_lte_module(void)
9 {
10  gpio_output(GPP_H17, 0);
11  mdelay(10);
12  gpio_output(GPP_A10, 0);
13 }
14 
15 void variant_smi_sleep(u8 slp_typ)
16 {
17  /*
18  * Once the FW_CONFIG is provisioned, power off LTE module only under
19  * the situation where it is stuffed.
20  */
21  if (slp_typ == ACPI_S5)
23 }
#define GPP_H17
#define GPP_A10
void mdelay(unsigned int msecs)
Definition: delay.c:2
void variant_smi_sleep(u8 slp_typ)
Definition: variant.c:15
static void power_off_lte_module(void)
Definition: variant.c:8
@ ACPI_S5
Definition: acpi.h:1385
void gpio_output(gpio_t gpio, int value)
Definition: gpio.c:194
uint8_t u8
Definition: stdint.h:45