summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/brya/variants/kuldax/gpio.c5
-rw-r--r--src/mainboard/google/brya/variants/kuldax/overridetree.cb14
-rw-r--r--src/mainboard/google/brya/variants/kuldax/variant.c6
3 files changed, 25 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/kuldax/gpio.c b/src/mainboard/google/brya/variants/kuldax/gpio.c
index 5282298f95..556e8b694c 100644
--- a/src/mainboard/google/brya/variants/kuldax/gpio.c
+++ b/src/mainboard/google/brya/variants/kuldax/gpio.c
@@ -25,6 +25,11 @@ static const struct pad_config override_gpio_table[] = {
/* B8 : ISH_I2C1_SCL ==> PCH_I2C_MISCB_SCL */
PAD_CFG_NF_LOCK(GPP_B8, NONE, NF2, LOCK_CONFIG),
+ /* C3 : SML0CLK ==> USB_C0_AUX_DC_P */
+ PAD_CFG_NF(GPP_C3, NONE, DEEP, NF6),
+ /* C4 : SML0DATA ==> USB_C0_AUX_DC_N */
+ PAD_CFG_NF(GPP_C4, NONE, DEEP, NF6),
+
/* D0 : ISH_GP0 ==> NC */
PAD_NC_LOCK(GPP_D0, NONE, LOCK_CONFIG),
/* D1 : ISH_GP1 ==> NC */
diff --git a/src/mainboard/google/brya/variants/kuldax/overridetree.cb b/src/mainboard/google/brya/variants/kuldax/overridetree.cb
index 35af1cf50c..6168b2fd22 100644
--- a/src/mainboard/google/brya/variants/kuldax/overridetree.cb
+++ b/src/mainboard/google/brya/variants/kuldax/overridetree.cb
@@ -9,6 +9,10 @@ fw_config
option BJ_POWER_65W 2
option BJ_POWER_135W 3
end
+ field MB_USBC 6 7
+ option TC_USB4 0
+ option TC_USB3 1
+ end
end
chip soc/intel/alderlake
@@ -135,7 +139,17 @@ chip soc/intel/alderlake
.flags = PCIE_RP_LTR | PCIE_RP_AER,
}"
end
+ device ref tbt_pcie_rp0 on
+ probe MB_USBC TC_USB4
+ end
+ device ref tbt_pcie_rp1 on
+ probe MB_USBC TC_USB4
+ end
+ device ref tbt_pcie_rp2 on
+ probe MB_USBC TC_USB4
+ end
device ref tcss_dma0 on
+ probe MB_USBC TC_USB4
chip drivers/intel/usb4/retimer
register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)"
use tcss_usb3_port1 as dfp[0].typec_port
diff --git a/src/mainboard/google/brya/variants/kuldax/variant.c b/src/mainboard/google/brya/variants/kuldax/variant.c
index e9b11a639b..b7cba968a5 100644
--- a/src/mainboard/google/brya/variants/kuldax/variant.c
+++ b/src/mainboard/google/brya/variants/kuldax/variant.c
@@ -14,4 +14,10 @@ void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config)
{
config->cnvi_bt_audio_offload = fw_config_probe(FW_CONFIG(AUDIO,
NAU88L25B_I2S));
+
+ if (fw_config_probe(FW_CONFIG(MB_USBC, TC_USB3))) {
+ config->tcss_aux_ori = 1;
+ config->typec_aux_bias_pads[0].pad_auxp_dc = GPP_C3;
+ config->typec_aux_bias_pads[0].pad_auxn_dc = GPP_C4;
+ }
}