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 #include <sar.h>
8 
9 const char *get_wifi_sar_cbfs_filename(void)
10 {
11  return "wifi_sar-kracko.hex";
12 }
13 
14 
15 static void power_off_lte_module(void)
16 {
17  gpio_output(GPP_H17, 0);
18  mdelay(20);
19  gpio_output(GPP_A10, 0);
20 }
21 
22 void variant_smi_sleep(u8 slp_typ)
23 {
24  /*
25  * Once the FW_CONFIG is provisioned, power off LTE module only under
26  * the situation where it is stuffed.
27  */
28  if (slp_typ == ACPI_S5)
30 }
#define GPP_H17
#define GPP_A10
void mdelay(unsigned int msecs)
Definition: delay.c:2
const char * get_wifi_sar_cbfs_filename(void)
Definition: variant.c:5
void variant_smi_sleep(u8 slp_typ)
Definition: variant.c:15
static void power_off_lte_module(void)
Definition: variant.c:15
@ 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