mb/google/brya/var/felwinter: Configurate AUX pin for USB3 MB
USB3 MB doesn't have re-timer. Thus we have to configurate the AUX pin. For now, we use USB3 DB to determine the USB3 MB. BUG=b:197907500 TEST=NA Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com> Change-Id: Ide45c77e0a6f736a02d5dc9ad05aa1ef9e754fa5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/57656 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
parent
50eff1c083
commit
1897a3abd9
|
@ -2,3 +2,4 @@
|
||||||
bootblock-y += gpio.c
|
bootblock-y += gpio.c
|
||||||
|
|
||||||
ramstage-y += gpio.c
|
ramstage-y += gpio.c
|
||||||
|
ramstage-$(CONFIG_FW_CONFIG) += variant.c
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
fw_config
|
||||||
|
field DB_USB 0 2
|
||||||
|
option USB_ABSENT 0
|
||||||
|
option USB3_PS8815 1
|
||||||
|
option USB4_KB8001 2
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
chip soc/intel/alderlake
|
chip soc/intel/alderlake
|
||||||
register "SaGv" = "SaGv_Disabled"
|
register "SaGv" = "SaGv_Disabled"
|
||||||
|
|
||||||
|
@ -7,8 +15,6 @@ chip soc/intel/alderlake
|
||||||
.configure_ext_fivr = 1,
|
.configure_ext_fivr = 1,
|
||||||
}"
|
}"
|
||||||
|
|
||||||
register "typec_aux_bias_pads[2]" = "{.pad_auxp_dc = GPP_A19, .pad_auxn_dc = GPP_A20}"
|
|
||||||
|
|
||||||
register "usb2_ports[3]" = "USB2_PORT_EMPTY"
|
register "usb2_ports[3]" = "USB2_PORT_EMPTY"
|
||||||
register "usb3_ports[3]" = "USB3_PORT_EMPTY"
|
register "usb3_ports[3]" = "USB3_PORT_EMPTY"
|
||||||
|
|
||||||
|
@ -48,7 +54,9 @@ chip soc/intel/alderlake
|
||||||
chip drivers/intel/usb4/retimer
|
chip drivers/intel/usb4/retimer
|
||||||
register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)"
|
register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)"
|
||||||
use tcss_usb3_port3 as dfp[0].typec_port
|
use tcss_usb3_port3 as dfp[0].typec_port
|
||||||
device generic 0 on end
|
device generic 0 on
|
||||||
|
probe DB_USB USB4_KB8001
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
device ref pcie_rp8 on
|
device ref pcie_rp8 on
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
|
#include <chip.h>
|
||||||
|
#include <fw_config.h>
|
||||||
|
#include <baseboard/variants.h>
|
||||||
|
|
||||||
|
void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config)
|
||||||
|
{
|
||||||
|
if (fw_config_probe(FW_CONFIG(DB_USB, USB3_PS8815))) {
|
||||||
|
config->typec_aux_bias_pads[2].pad_auxp_dc = GPP_A19;
|
||||||
|
config->typec_aux_bias_pads[2].pad_auxn_dc = GPP_A20;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue