| 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 |
|
| 10 |
|
| 11 |
#define TRANS_DDI_FUNC_CTL2_A 0x60404 |
| 12 |
#define TRANS_DDI_AUDIO_MUTE_OVERRIDE_BITS_FIELDS (3 << 6) |
| 13 |
|
| 14 |
const char *get_wifi_sar_cbfs_filename(void) |
| 15 |
{ |
| 16 |
return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI)); |
| 17 |
} |
| 18 |
|
| 19 |
void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config) |
| 20 |
{ |
| 21 |
if (fw_config_probe(FW_CONFIG(WIFI, WIFI_CNVI_WIFI6E)) || 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_finalize(void) |
| 33 |
{ |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
graphics_gtt_rmw(TRANS_DDI_FUNC_CTL2_A, ~TRANS_DDI_AUDIO_MUTE_OVERRIDE_BITS_FIELDS, |
| 42 |
TRANS_DDI_AUDIO_MUTE_OVERRIDE_BITS_FIELDS); |
| 43 |
} |