| 1 |
|
| 2 |
|
| 3 |
#include <baseboard/gpio.h> |
| 4 |
#include <baseboard/variants.h> |
| 5 |
#include <console/console.h> |
| 6 |
#include <fw_config.h> |
| 7 |
#include <sar.h> |
| 8 |
|
| 9 |
const char *get_wifi_sar_cbfs_filename(void) |
| 10 |
{ |
| 11 |
return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI)); |
| 12 |
} |
| 13 |
|
| 14 |
void variant_update_soc_chip_config(struct soc_intel_pantherlake_config *config) |
| 15 |
{ |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
if (fw_config_probe(FW_CONFIG(FPMCU, FP_USB))) { |
| 24 |
printk(BIOS_INFO, "Disable GSPI\n"); |
| 25 |
config->serial_io_gspi_mode[PchSerialIoIndexGSPI0] = PchSerialIoDisabled; |
| 26 |
printk(BIOS_INFO, "usb2_port6 to FP\n"); |
| 27 |
config->usb2_ports[5] = (struct usb2_port_config) USB2_PORT_MID(OC_SKIP); |
| 28 |
} |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
if (fw_config_probe(FW_CONFIG(IO_PORT, USB3C))) { |
| 54 |
printk(BIOS_INFO, "Disable Type-A Port A0/A1\n"); |
| 55 |
config->usb3_ports[0] = (struct usb3_port_config) USB3_PORT_EMPTY; |
| 56 |
config->usb3_ports[1] = (struct usb3_port_config) USB3_PORT_EMPTY; |
| 57 |
|
| 58 |
printk(BIOS_INFO, "usb2_port5 to USB2_C2(DB).\n"); |
| 59 |
config->usb2_ports[4] = (struct usb2_port_config) USB2_PORT_TYPE_C(OC_SKIP); |
| 60 |
|
| 61 |
printk(BIOS_INFO, "Enable tcss_usb3_port1 to USB3_C2(DB)\n"); |
| 62 |
config->tcss_ports[1] = (struct tcss_port_config) TCSS_PORT_DEFAULT(OC_SKIP); |
| 63 |
printk(BIOS_INFO, "Disable tcss_usb3_port2\n"); |
| 64 |
config->tcss_ports[2] = (struct tcss_port_config) TCSS_PORT_EMPTY; |
| 65 |
printk(BIOS_INFO, "Enable tcss_usb3_port3 to USB3_C1(MB)\n"); |
| 66 |
config->tcss_ports[3] = (struct tcss_port_config) TCSS_PORT_DEFAULT(OC_SKIP); |
| 67 |
} |
| 68 |
} |