Debian Codegraph @

src/mainboard/google/dedede/variants/cret/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 <fw_config.h>
7 #include <gpio.h>
8 #include <sar.h>
9
10 const char *get_wifi_sar_cbfs_filename(void)
11 {
12 const char *filename = NULL;
13
14 if (fw_config_probe(FW_CONFIG(TABLETMODE, TABLETMODE_ENABLED)))
15 filename = "wifi_sar-cret.hex";
16
17 return filename;
18 }
19
20 static void power_off_lte_module(void)
21 {
22 gpio_output(GPP_H17, 0);
23 mdelay(10);
24 gpio_output(GPP_A10, 0);
25 }
26
27 void variant_smi_sleep(u8 slp_typ)
28 {
29 /*
30 * Once the FW_CONFIG is provisioned, power off LTE module only under
31 * the situation where it is stuffed.
32 */
33 if (slp_typ == ACPI_S5)
34 power_off_lte_module();
35 }