Debian Codegraph @

src/mainboard/google/brya/variants/rull/variant.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
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 /* Per-pipe DDI Function Control 2 */
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 * Panel CSOT MNB601LS1-3 will flicker once during enter Chrome login screen,
36 * it is because it inserts 12 blank frames if it receives the unmute in VB-ID.
37 *
38 * Always override the mute in VB-ID to avoid Tcon EC detected the
39 * audiomute_flag change.
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 }