Debian Codegraph @

src/mainboard/google/dedede/variants/beadrix/variant.c

raw symbols SCIP
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(20);
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 }