summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorPranava Y N <pranavayn@google.com>2024-07-31 19:37:14 +0530
committerSubrata Banik <subratabanik@google.com>2024-08-04 06:22:25 +0000
commitf7eef77963471ad8bdcfc59e92a6b949d7a254ef (patch)
tree9269409bcb10f512a94e494e55341e7157075f2a /src/mainboard
parentc242c72206cc344da5cd7f663b9cf0df8d1ec7d1 (diff)
mb/google/brya/var/nova: Adjust Type-C port to USB 2.0 only
This patch introduces the following changes, - Remove TCSS XHCI (USB 3.x) devicetree settings - Update Over Current (OC) & USB 2.0 config - Update TCSS-XHCI capabilities BUG=b:348332200 TEST=Able to build google/nova and ensure lsusb can list genesys hub device. Change-Id: I4b4025bea41f67224ac35ff2077b1394f2c3e380 Signed-off-by: Pranava Y N <pranavayn@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83707 Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Dinesh Gehlot <digehlot@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/brya/variants/nova/overridetree.cb28
1 files changed, 12 insertions, 16 deletions
diff --git a/src/mainboard/google/brya/variants/nova/overridetree.cb b/src/mainboard/google/brya/variants/nova/overridetree.cb
index 6173bc7baf..35cf84bfb8 100644
--- a/src/mainboard/google/brya/variants/nova/overridetree.cb
+++ b/src/mainboard/google/brya/variants/nova/overridetree.cb
@@ -5,6 +5,7 @@ chip soc/intel/alderlake
register "sagv" = "SaGv_Enabled"
+ register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-C Port C0
register "usb2_ports[1]" = "USB2_PORT_EMPTY" # Disable USB2 Port 1
register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port A3
register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port A2
@@ -30,6 +31,11 @@ chip soc/intel/alderlake
register "usb3_ports[2]" = "USB3_PORT_EMPTY" # Disable Type-A port
register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Disable Type-A port
+ register "tcss_ports[0]" = "TCSS_PORT_EMPTY"
+ register "tcss_ports[1]" = "TCSS_PORT_EMPTY"
+ register "tcss_ports[2]" = "TCSS_PORT_EMPTY"
+ register "tcss_ports[3]" = "TCSS_PORT_EMPTY"
+
register "serial_io_i2c_mode" = "{
[PchSerialIoIndexI2C0] = PchSerialIoPci,
[PchSerialIoIndexI2C1] = PchSerialIoPci,
@@ -251,27 +257,17 @@ chip soc/intel/alderlake
end
end
device ref pmc hidden end
- device ref tcss_xhci on
- chip drivers/usb/acpi
- device ref tcss_root_hub on
- chip drivers/usb/acpi
- register "desc" = ""USB3 Type-C Port C0 (MLB)""
- register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
- register "use_custom_pld" = "true"
- register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, CENTER, ACPI_PLD_GROUP(1, 0))"
- device ref tcss_usb3_port1 on end
- end
- end
- end
- end
+ device ref tcss_xhci off end
+ device ref tcss_dma0 off end
+ device ref tcss_dma1 off end
device ref xhci on
chip drivers/usb/acpi
device ref xhci_root_hub on
chip drivers/usb/acpi
- register "desc" = ""USB2 Type-C Port C0 (MLB)""
- register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
+ register "desc" = ""Type-C Charging Port C0 (MLB)""
+ register "type" = "UPC_TYPE_PROPRIETARY"
register "use_custom_pld" = "true"
- register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, CENTER, ACPI_PLD_GROUP(1, 0))"
+ register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, RIGHT, ACPI_PLD_GROUP(0, 2))"
device ref usb2_port1 on end
end
chip drivers/usb/acpi