diff options
-rw-r--r-- | src/mainboard/google/dedede/variants/kracko/overridetree.cb | 18 | ||||
-rw-r--r-- | src/mainboard/google/dedede/variants/kracko/ramstage.c | 16 |
2 files changed, 34 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/variants/kracko/overridetree.cb b/src/mainboard/google/dedede/variants/kracko/overridetree.cb index 5e39c884e4..2c25e60a1b 100644 --- a/src/mainboard/google/dedede/variants/kracko/overridetree.cb +++ b/src/mainboard/google/dedede/variants/kracko/overridetree.cb @@ -134,6 +134,15 @@ chip soc/intel/jasperlake end end chip drivers/usb/acpi + register "desc" = ""Right Type-C Port"" + register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" + register "group" = "ACPI_PLD_GROUP(2, 1)" + device usb 2.1 on + probe DB_PORTS DB_PORTS_1C_1A + probe DB_PORTS DB_PORTS_1C_LTE + end + end + chip drivers/usb/acpi register "desc" = ""Right Type-A Port"" register "type" = "UPC_TYPE_A" register "group" = "ACPI_PLD_GROUP(2, 2)" @@ -152,6 +161,15 @@ chip soc/intel/jasperlake device usb 2.6 on end end chip drivers/usb/acpi + register "desc" = ""Right Type-C Port"" + register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" + register "group" = "ACPI_PLD_GROUP(2, 1)" + device usb 3.1 on + probe DB_PORTS DB_PORTS_1C_1A + probe DB_PORTS DB_PORTS_1C_LTE + end + end + chip drivers/usb/acpi register "desc" = ""LTE"" register "type" = "UPC_TYPE_INTERNAL" register "group" = "ACPI_PLD_GROUP(2, 2)" diff --git a/src/mainboard/google/dedede/variants/kracko/ramstage.c b/src/mainboard/google/dedede/variants/kracko/ramstage.c index 255e58557e..459fc77dc1 100644 --- a/src/mainboard/google/dedede/variants/kracko/ramstage.c +++ b/src/mainboard/google/dedede/variants/kracko/ramstage.c @@ -11,7 +11,23 @@ static void ext_vr_update(void) cfg->disable_external_bypass_vr = 1; } +static void usb_port_update(void) +{ + struct soc_intel_jasperlake_config *cfg = config_of_soc(); + + if (fw_config_is_provisioned() && + fw_config_probe(FW_CONFIG(DB_PORTS, DB_PORTS_NONE))) { + /* Disable USB C1 port */ + cfg->usb2_ports[1].enable = 0; + cfg->usb3_ports[1].enable = 0; + /* Disable USB A1 port */ + cfg->usb2_ports[3].enable = 0; + cfg->usb3_ports[3].enable = 0; + } +} + void variant_devtree_update(void) { ext_vr_update(); + usb_port_update(); } |