1 /* SPDX-License-Identifier: GPL-2.0-only */
4 #include <baseboard/variants.h>
6 #include <drivers/intel/gma/opregion.h>
10 #include <ec/google/chromeec/ec.h>
13 OSCINO_SKU_START
= 0x40004,
14 OSCINO_SKU_END
= 0x40005,
17 const char *get_wifi_sar_cbfs_filename(void)
19 uint32_t sku_id
= google_chromeec_get_board_sku();
21 if (fw_config_probe(FW_CONFIG(TABLETMODE
, TABLETMODE_ENABLED
))) {
22 if (sku_id
>= OSCINO_SKU_START
&& sku_id
<= OSCINO_SKU_END
)
23 return "wifi_sar-oscino.hex";
25 return "wifi_sar-drawcia.hex";
28 return WIFI_SAR_CBFS_DEFAULT_FILENAME
;
31 const char *mainboard_vbt_filename(void)
33 if (fw_config_probe(FW_CONFIG(DB_PORTS
, DB_PORTS_1A_HDMI
)) ||
34 fw_config_probe(FW_CONFIG(DB_PORTS
, DB_PORTS_1A_HDMI_LTE
)))
35 return "vbt_drawman.bin";
40 static void power_off_lte_module(void)
42 gpio_output(GPP_H0
, 0);
43 gpio_output(GPP_H17
, 0);
45 gpio_output(GPP_A10
, 0);
48 void variant_smi_sleep(u8 slp_typ
)
51 * Once the FW_CONFIG is provisioned, power off LTE module only under
52 * the situation where it is stuffed.
54 if (slp_typ
== ACPI_S5
)
55 power_off_lte_module();