mb/google/nissa/var/rull: Change padbased_override to rtd3 of wifi
[coreboot2.git] / src / mainboard / google / brya / variants / rull / variant.c
blob8bb7fac97f3be945e3db100b7381e17a5498cf5a
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;
28 void variant_finalize(void)
31 * Panel CSOT MNB601LS1-3 will flicker once during enter Chrome login screen,
32 * it is because it inserts 12 blank frames if it receives the unmute in VB-ID.
34 * Always override the mute in VB-ID to avoid Tcon EC detected the
35 * audiomute_flag change.
37 graphics_gtt_rmw(TRANS_DDI_FUNC_CTL2_A, ~TRANS_DDI_AUDIO_MUTE_OVERRIDE_BITS_FIELDS,
38 TRANS_DDI_AUDIO_MUTE_OVERRIDE_BITS_FIELDS);