Debian Codegraph @

src/mainboard/google/dedede/variants/kracko/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 #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)
29 power_off_lte_module();
30 }