| 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 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
if (fw_config_probe(FW_CONFIG(DB_AUX_BIAS, SOC))) { |
| 32 |
printk(BIOS_INFO, "DB DP AUX BIAS connect to SOC.\n"); |
| 33 |
config->tcss_aux_ori = 5; |
| 34 |
config->typec_aux_bias_pads[0].pad_auxp_dc = GPP_A19; |
| 35 |
config->typec_aux_bias_pads[0].pad_auxn_dc = GPP_A20; |
| 36 |
config->typec_aux_bias_pads[1].pad_auxp_dc = GPP_E22; |
| 37 |
config->typec_aux_bias_pads[1].pad_auxn_dc = GPP_E23; |
| 38 |
} else { |
| 39 |
printk(BIOS_INFO, "DB DP AUX BIAS connect to redriver IC.\n"); |
| 40 |
config->tcss_aux_ori = 4; |
| 41 |
config->typec_aux_bias_pads[1].pad_auxp_dc = GPP_E22; |
| 42 |
config->typec_aux_bias_pads[1].pad_auxn_dc = GPP_E23; |
| 43 |
} |
| 44 |
} |
| 45 |
|
| 46 |
void variant_finalize(void) |
| 47 |
{ |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
graphics_gtt_rmw(TRANS_DDI_FUNC_CTL2_A, ~TRANS_DDI_AUDIO_MUTE_OVERRIDE_BITS_FIELDS, |
| 56 |
TRANS_DDI_AUDIO_MUTE_OVERRIDE_BITS_FIELDS); |
| 57 |
} |