summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2020-08-06 15:04:15 +0200
committerFelix Held <felix-coreboot@felixheld.de>2020-08-11 16:21:36 +0000
commit04394d69d49df57ef29b38f940bb51b65571cccc (patch)
tree8f0f57ed913deadd360b64190cb61a1e29209211 /src
parent4e0cd82b5b96ac729654a19eff445b0b4cc10350 (diff)
mb/google/zork: move USB OC pin mapping to trembyle base board
The USB OC pin mapping is similar enough to move it to the base board and just have two overrides for trembyle, which is based on an older version of the schematics, and one override for woomax, which doesn't use one USB port. BUG=b:163081097 Change-Id: I7e305d7e6f51d7ef7a4c699e3bacc6bcd699d2f2 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44269 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/zork/variants/baseboard/devicetree_trembyle.cb6
-rw-r--r--src/mainboard/google/zork/variants/berknip/overridetree.cb6
-rw-r--r--src/mainboard/google/zork/variants/ezkinil/overridetree.cb6
-rw-r--r--src/mainboard/google/zork/variants/morphius/overridetree.cb6
-rw-r--r--src/mainboard/google/zork/variants/trembyle/overridetree.cb2
-rw-r--r--src/mainboard/google/zork/variants/woomax/overridetree.cb3
6 files changed, 5 insertions, 24 deletions
diff --git a/src/mainboard/google/zork/variants/baseboard/devicetree_trembyle.cb b/src/mainboard/google/zork/variants/baseboard/devicetree_trembyle.cb
index 6d26179afd..d38aaf221e 100644
--- a/src/mainboard/google/zork/variants/baseboard/devicetree_trembyle.cb
+++ b/src/mainboard/google/zork/variants/baseboard/devicetree_trembyle.cb
@@ -139,7 +139,11 @@ chip soc/amd/picasso
.read_mode = SPI_READ_MODE_DUAL122,
}"
- # common USB OC pin mapping
+ # USB OC pin mapping
+ register "usb_port_overcurrent_pin[0]" = "USB_OC_PIN_0" # USB C0
+ register "usb_port_overcurrent_pin[1]" = "USB_OC_PIN_0" # USB A0
+ register "usb_port_overcurrent_pin[2]" = "USB_OC_PIN_1" # USB A1
+ register "usb_port_overcurrent_pin[3]" = "USB_OC_PIN_1" # USB C1
register "usb_port_overcurrent_pin[4]" = "USB_OC_NONE" # Camera or internal hub
register "usb_port_overcurrent_pin[5]" = "USB_OC_NONE" # Bluetooth
diff --git a/src/mainboard/google/zork/variants/berknip/overridetree.cb b/src/mainboard/google/zork/variants/berknip/overridetree.cb
index a469fb9340..f0f92c5a31 100644
--- a/src/mainboard/google/zork/variants/berknip/overridetree.cb
+++ b/src/mainboard/google/zork/variants/berknip/overridetree.cb
@@ -22,12 +22,6 @@ chip soc/amd/picasso
# End : OPN Performance Configuration
- # USB OC pin mapping
- register "usb_port_overcurrent_pin[0]" = "USB_OC_PIN_0" # USB C0
- register "usb_port_overcurrent_pin[1]" = "USB_OC_PIN_0" # USB A0
- register "usb_port_overcurrent_pin[2]" = "USB_OC_PIN_1" # USB A1
- register "usb_port_overcurrent_pin[3]" = "USB_OC_PIN_1" # USB C1
-
# Enable I2C2 for trackpad, touchscreen, pen at 400kHz
register "i2c[2]" = "{
.speed = I2C_SPEED_FAST,
diff --git a/src/mainboard/google/zork/variants/ezkinil/overridetree.cb b/src/mainboard/google/zork/variants/ezkinil/overridetree.cb
index 6b4331fe69..6156cd54cf 100644
--- a/src/mainboard/google/zork/variants/ezkinil/overridetree.cb
+++ b/src/mainboard/google/zork/variants/ezkinil/overridetree.cb
@@ -22,12 +22,6 @@ chip soc/amd/picasso
# End : OPN Performance Configuration
- # USB OC pin mapping
- register "usb_port_overcurrent_pin[0]" = "USB_OC_PIN_0" # USB C0
- register "usb_port_overcurrent_pin[1]" = "USB_OC_PIN_0" # USB A0
- register "usb_port_overcurrent_pin[2]" = "USB_OC_PIN_1" # USB A1
- register "usb_port_overcurrent_pin[3]" = "USB_OC_PIN_1" # USB C1
-
register "xhci0_force_gen1" = "1"
# Enable I2C2 for trackpad, touchscreen, pen at 400kHz
diff --git a/src/mainboard/google/zork/variants/morphius/overridetree.cb b/src/mainboard/google/zork/variants/morphius/overridetree.cb
index e39596d134..75e7057622 100644
--- a/src/mainboard/google/zork/variants/morphius/overridetree.cb
+++ b/src/mainboard/google/zork/variants/morphius/overridetree.cb
@@ -22,12 +22,6 @@ chip soc/amd/picasso
# End : OPN Performance Configuration
- # USB OC pin mapping
- register "usb_port_overcurrent_pin[0]" = "USB_OC_PIN_0" # USB C0
- register "usb_port_overcurrent_pin[1]" = "USB_OC_PIN_0" # USB A0
- register "usb_port_overcurrent_pin[2]" = "USB_OC_PIN_1" # USB A1
- register "usb_port_overcurrent_pin[3]" = "USB_OC_PIN_1" # USB C1
-
# Enable I2C2 for trackpad, touchscreen, pen at 400kHz
register "i2c[2]" = "{
.speed = I2C_SPEED_FAST,
diff --git a/src/mainboard/google/zork/variants/trembyle/overridetree.cb b/src/mainboard/google/zork/variants/trembyle/overridetree.cb
index 39b4fcb70b..001403c87b 100644
--- a/src/mainboard/google/zork/variants/trembyle/overridetree.cb
+++ b/src/mainboard/google/zork/variants/trembyle/overridetree.cb
@@ -23,10 +23,8 @@ chip soc/amd/picasso
# End : OPN Performance Configuration
# USB OC pin mapping: existing trembyle boards are based on old schematics version
- register "usb_port_overcurrent_pin[0]" = "USB_OC_PIN_0" # USB C0
register "usb_port_overcurrent_pin[1]" = "USB_OC_PIN_2" # USB A0
register "usb_port_overcurrent_pin[2]" = "USB_OC_PIN_4" # USB A1
- register "usb_port_overcurrent_pin[3]" = "USB_OC_PIN_1" # USB C1
# Enable I2C2 for trackpad, touchscreen, pen at 400kHz
register "i2c[2]" = "{
diff --git a/src/mainboard/google/zork/variants/woomax/overridetree.cb b/src/mainboard/google/zork/variants/woomax/overridetree.cb
index 557e032a49..2f925f5644 100644
--- a/src/mainboard/google/zork/variants/woomax/overridetree.cb
+++ b/src/mainboard/google/zork/variants/woomax/overridetree.cb
@@ -24,10 +24,7 @@ chip soc/amd/picasso
# End : OPN Performance Configuration
# USB OC pin mapping
- register "usb_port_overcurrent_pin[0]" = "USB_OC_PIN_0" # USB C0
- register "usb_port_overcurrent_pin[1]" = "USB_OC_PIN_0" # USB A0
register "usb_port_overcurrent_pin[2]" = "USB_OC_NONE" # NC
- register "usb_port_overcurrent_pin[3]" = "USB_OC_PIN_1" # USB C1
# Enable I2C2 for trackpad, touchscreen, pen at 400kHz
register "i2c[2]" = "{