summaryrefslogtreecommitdiff
path: root/src/mainboard/up/squared/devicetree.cb
diff options
context:
space:
mode:
authorMaxim Polyakov <max.senia.poliak@gmail.com>2020-02-26 12:39:09 +0300
committerPatrick Georgi <pgeorgi@google.com>2020-03-06 07:59:29 +0000
commitbb65180ee8b2cb26ac75fe6ccc9525ecc060c1e3 (patch)
tree2b1b751c15a6004b0dfab11eee300139276e0b58 /src/mainboard/up/squared/devicetree.cb
parent3b89ebd8913427b018ca895d7a0683f403029bdf (diff)
downloadcoreboot-bb65180ee8b2cb26ac75fe6ccc9525ecc060c1e3.tar.xz
mb/up/squared: move USB config to device tree
Change-Id: Ic4db37112e7b2329f9e4885139deca12557ffe3a Signed-off-by: Maxim Polyakov <max.senia.poliak@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39134 Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/up/squared/devicetree.cb')
-rw-r--r--src/mainboard/up/squared/devicetree.cb14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mainboard/up/squared/devicetree.cb b/src/mainboard/up/squared/devicetree.cb
index 66be75cc05..d7281a6cd8 100644
--- a/src/mainboard/up/squared/devicetree.cb
+++ b/src/mainboard/up/squared/devicetree.cb
@@ -1,5 +1,19 @@
chip soc/intel/apollolake
+ # Override USB port configuration
+ register "usb_config_override" = "1"
+ # USB 2.0
+ register "usb2_port[0]" = "PORT_EN(OC0)"
+ register "usb2_port[1]" = "PORT_EN(OC1)"
+ register "usb2_port[2]" = "PORT_EN(OC1)"
+ register "usb2_port[3]" = "PORT_EN(OC1)"
+ register "usb2_port[4]" = "PORT_EN(OC1)"
+ register "usb2_port[5]" = "PORT_EN(OC1)"
+ register "usb2_port[6]" = "PORT_EN(OC_SKIP)"
+ register "usb2_port[7]" = "PORT_EN(OC_SKIP)"
+ # USB 3.0
+ register "usb3_port[0]" = "PORT_EN(OC0)"
+
register "enable_vtd" = "1"
device cpu_cluster 0 on