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
)
22
power_off_lte_module
();
23
}
GPP_H17
#define GPP_H17
Definition:
gpio_soc_defs.h:233
GPP_A10
#define GPP_A10
Definition:
gpio_soc_defs.h:129
delay.h
mdelay
void mdelay(unsigned int msecs)
Definition:
delay.c:2
variant_smi_sleep
void variant_smi_sleep(u8 slp_typ)
Definition:
variant.c:15
power_off_lte_module
static void power_off_lte_module(void)
Definition:
variant.c:8
acpi.h
ACPI_S5
@ ACPI_S5
Definition:
acpi.h:1385
gpio_output
void gpio_output(gpio_t gpio, int value)
Definition:
gpio.c:194
u8
uint8_t u8
Definition:
stdint.h:45
src
mainboard
google
dedede
variants
storo
variant.c
Generated by
1.9.1