diff options
author | Martin Roth <gaumless@gmail.com> | 2023-09-27 16:47:15 -0600 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-12-12 12:30:24 +0000 |
commit | 21be665c9a449cff7f9c07e41b032c2d8f596c55 (patch) | |
tree | e02a5e13531b30ae1e2f6c64e1abfab980aaa1aa /src | |
parent | f643a4d77eec14a617e0b75e58a18aec3ebf7686 (diff) |
mb/amd/onyx: Add USB configuration
Drive board specific USB configuration from the coreboot devicetree into
the opensil input block.
In the process of scrubbing opensil for public release USB became non
functional.
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Signed-off-by: Martin Roth <gaumless@gmail.com>
Change-Id: I62eefe1061446612168dd27e673a2742903456c3
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78920
Reviewed-by: Varshit Pandya <pandyavarshit@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/amd/onyx/devicetree.cb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/mainboard/amd/onyx/devicetree.cb b/src/mainboard/amd/onyx/devicetree.cb index 2b37b761fd..04262e3785 100644 --- a/src/mainboard/amd/onyx/devicetree.cb +++ b/src/mainboard/amd/onyx/devicetree.cb @@ -1,5 +1,31 @@ chip soc/amd/genoa + # USB configuration + register "usb.xhci0_enable" = "1" + register "usb.xhci1_enable" = "1" + # OC pins + register "usb.usb2_oc_pins[0].port0" = "0x0" + register "usb.usb2_oc_pins[0].port1" = "0x1" + register "usb.usb2_oc_pins[0].port2" = "0x0" + register "usb.usb2_oc_pins[0].port3" = "0x1" + + register "usb.usb2_oc_pins[1].port0" = "0x0" + register "usb.usb2_oc_pins[1].port1" = "0x1" + + register "usb.usb3_oc_pins[0].port0" = "0x0" + register "usb.usb3_oc_pins[0].port1" = "0x1" + register "usb.usb3_oc_pins[0].port2" = "0x0" + register "usb.usb3_oc_pins[0].port3" = "0x1" + register "usb.usb3_oc_pins[1].port0" = "0x0" + register "usb.usb3_oc_pins[1].port1" = "0x1" + + register "usb.polarity_cfg_low" = "true" + + register "usb.usb3_force_gen1.port0" = "3" + register "usb.usb3_force_gen1.port1" = "3" + register "usb.usb3_force_gen1.port2" = "3" + register "usb.usb3_force_gen1.port3" = "3" + # eSPI configuration register "common_config.espi_config" = "{ .std_io_decode_bitmap = ESPI_DECODE_IO_0x80_EN, @@ -13,6 +39,19 @@ chip soc/amd/genoa .flash_ch_en = 0, }" + # PHY settings + register "usb.usb31_phy_enable" = "1" + register "usb.usb31_phy" = "{ + {0x01, 0x07, 0x00, 0x00, 0x07, 0x01, 0x05, 0x00, 0x05, 0x00, 0x05, 0x00}, + {0x05, 0x07, 0x00, 0x00, 0x07, 0x01, 0x05, 0x00, 0x05, 0x00, 0x05, 0x00}, + {0x05, 0x07, 0x00, 0x00, 0x07, 0x01, 0x05, 0x00, 0x05, 0x00, 0x05, 0x00}, + {0x05, 0x07, 0x00, 0x00, 0x07, 0x01, 0x05, 0x00, 0x05, 0x00, 0x05, 0x00}, + {0x05, 0x01, 0x07, 0x00, 0x00, 0x07, 0x01, 0x05, 0x00, 0x05, 0x00, 0x05}, + {0x00, 0x05, 0x07, 0x00, 0x00, 0x07, 0x01, 0x05, 0x00, 0x05, 0x00, 0x05}, + {0x00, 0x05, 0x07, 0x00, 0x00, 0x07, 0x01, 0x05, 0x00, 0x05, 0x00, 0x05}, + {0x00, 0x05, 0x07, 0x00, 0x00, 0x07, 0x01, 0x05, 0x00, 0x05, 0x00, 0x05}, + }" + device domain 0 on end |