mb/google/fatcat: Move CSE sync at payload
[coreboot2.git] / src / mainboard / google / brya / variants / rull / variant.c
blobe1a95e6aa992e733fcf9e67451999d4fdc7fc458
1 /* SPDX-License-Identifier: GPL-2.0-only */
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>
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)
14 const char *get_wifi_sar_cbfs_filename(void)
16 return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI));
19 void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config)
21 if (!fw_config_is_provisioned() || fw_config_probe(FW_CONFIG(WIFI, WIFI_CNVI_WIFI6E))) {
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;
32 void variant_finalize(void)
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.
38 * Always override the mute in VB-ID to avoid Tcon EC detected the
39 * audiomute_flag change.
41 graphics_gtt_rmw(TRANS_DDI_FUNC_CTL2_A, ~TRANS_DDI_AUDIO_MUTE_OVERRIDE_BITS_FIELDS,
42 TRANS_DDI_AUDIO_MUTE_OVERRIDE_BITS_FIELDS);