diff options
author | Daniel_Peng <Daniel_Peng@pegatron.corp-partner.google.com> | 2024-10-07 11:50:26 +0800 |
---|---|---|
committer | Eric Lai <ericllai@google.com> | 2024-10-09 02:00:34 +0000 |
commit | 0c0f5499b30af1f2df05af0317247171b6893f4c (patch) | |
tree | 475f8d56935a1ea1bc4f4e3fb428e71853244036 /src/mainboard/google/brya/variants/glassway/variant.c | |
parent | 073a713ace56a0b8ae09b223b74bbb8cdeaabfdd (diff) |
mb/google/brya/var/glassway: Add WFC Function
1.Add WFC fw_config setting.
2.Used USB2 Port7 for WFC.
BUG=b:365184481
BRANCH=firmware-nissa-15217.B
TEST=emerge-nissa coreboot
Change-Id: Ie5dcf5ed8f72a4bdf4c2c7fc63bf94dc7b869eef
Signed-off-by: Daniel_Peng <Daniel_Peng@pegatron.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84685
Reviewed-by: Eric Lai <ericllai@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src/mainboard/google/brya/variants/glassway/variant.c')
-rw-r--r-- | src/mainboard/google/brya/variants/glassway/variant.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/glassway/variant.c b/src/mainboard/google/brya/variants/glassway/variant.c index 906d9aa0e4..2a4d4f112a 100644 --- a/src/mainboard/google/brya/variants/glassway/variant.c +++ b/src/mainboard/google/brya/variants/glassway/variant.c @@ -9,3 +9,16 @@ const char *get_wifi_sar_cbfs_filename(void) { return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_SAR_ID)); } + +void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config) +{ + if (!fw_config_probe(FW_CONFIG(WFC, WFC_PRESENT))) { + printk(BIOS_INFO, "Disable usb2_port7 of WFC.\n"); + config->usb2_ports[6].enable = 0; + config->usb2_ports[6].ocpin = OC_SKIP; + config->usb2_ports[6].tx_bias = USB2_BIAS_0MV; + config->usb2_ports[6].tx_emp_enable = USB2_EMP_OFF; + config->usb2_ports[6].pre_emp_bias = USB2_BIAS_0MV; + config->usb2_ports[6].pre_emp_bit = USB2_HALF_BIT_PRE_EMP; + } +} |