| 1 |
|
| 2 |
|
| 3 |
#include <baseboard/gpio.h> |
| 4 |
#include <baseboard/variants.h> |
| 5 |
#include <console/console.h> |
| 6 |
#include <fw_config.h> |
| 7 |
|
| 8 |
void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config) |
| 9 |
{ |
| 10 |
if (!(fw_config_probe(FW_CONFIG(DB_USB, DB_C_A_LTE)) || |
| 11 |
fw_config_probe(FW_CONFIG(DB_USB, DB_A_HDMI_LTE)))) { |
| 12 |
printk(BIOS_INFO, "Disable usb2_port5 and usb3_port3 of WWAN.\n"); |
| 13 |
|
| 14 |
config->usb2_ports[4] = (struct usb2_port_config) USB2_PORT_EMPTY; |
| 15 |
config->usb3_ports[2] = (struct usb3_port_config) USB3_PORT_EMPTY; |
| 16 |
} |
| 17 |
|
| 18 |
if (!fw_config_probe(FW_CONFIG(WFC, WFC_PRESENT))) { |
| 19 |
printk(BIOS_INFO, "Disable usb2_port7 of WFC.\n"); |
| 20 |
|
| 21 |
config->usb2_ports[6] = (struct usb2_port_config) USB2_PORT_EMPTY; |
| 22 |
} |
| 23 |
|
| 24 |
if (fw_config_probe(FW_CONFIG(DB_USB, DB_A)) || fw_config_probe(FW_CONFIG(DB_USB, DB_A_HDMI_LTE))) { |
| 25 |
printk(BIOS_INFO, "Disable typec aux_bias_pads in the SOC.\n"); |
| 26 |
config->typec_aux_bias_pads[1].pad_auxp_dc = 0x00; |
| 27 |
config->typec_aux_bias_pads[1].pad_auxn_dc = 0x00; |
| 28 |
} |
| 29 |
} |