| 1 |
|
| 2 |
|
| 3 |
#include <baseboard/variants.h> |
| 4 |
#include <chip.h> |
| 5 |
#include <fw_config.h> |
| 6 |
#include <sar.h> |
| 7 |
#include <soc/gpio_soc_defs.h> |
| 8 |
#include <intelblocks/graphics.h> |
| 9 |
#include <acpi/acpi.h> |
| 10 |
#include <acpi/acpigen.h> |
| 11 |
#include <variant/gpio.h> |
| 12 |
|
| 13 |
const char *get_wifi_sar_cbfs_filename(void) |
| 14 |
{ |
| 15 |
return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI)); |
| 16 |
} |
| 17 |
|
| 18 |
void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config) |
| 19 |
{ |
| 20 |
if (fw_config_probe(FW_CONFIG(WIFI, WIFI_CNVI_WIFI6E)) |
| 21 |
|| fw_config_probe(FW_CONFIG(WIFI, WIFI_UNKNOWN))) { |
| 22 |
printk(BIOS_INFO, "CNVi bluetooth enabled by fw_config\n"); |
| 23 |
config->cnvi_bt_core = true; |
| 24 |
config->cnvi_bt_audio_offload = true; |
| 25 |
} else { |
| 26 |
printk(BIOS_INFO, "CNVi bluetooth disabled by fw_config\n"); |
| 27 |
config->cnvi_bt_core = false; |
| 28 |
config->cnvi_bt_audio_offload = false; |
| 29 |
} |
| 30 |
} |
| 31 |
|
| 32 |
void variant_generate_s0ix_hook(enum s0ix_entry entry) |
| 33 |
{ |
| 34 |
if (entry == S0IX_ENTRY) |
| 35 |
acpigen_soc_clear_tx_gpio(SLP_S0_HDMI_EN); |
| 36 |
else if (entry == S0IX_EXIT) |
| 37 |
acpigen_soc_set_tx_gpio(SLP_S0_HDMI_EN); |
| 38 |
} |