aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/picasso/usb.c
diff options
context:
space:
mode:
authorMarshall Dawson <marshalldawson3rd@gmail.com>2019-06-30 18:26:35 -0500
committerMartin Roth <martinroth@google.com>2019-07-03 21:46:18 +0000
commitfa4a74b098731bf3e0979c20a65fa883bf4c57f3 (patch)
treea3d7fafa4213e7652f7c8a1fdcd6e4c87d2a0b6c /src/soc/amd/picasso/usb.c
parent19ea0169108dc2eff743ae640a8108eb5852612d (diff)
soc/amd/picasso: Add xhci1 and remove ehci
Change-Id: I9d0098082c224bbf5ab2b4f0f41eb8b5b729eec7 Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33987 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc/amd/picasso/usb.c')
-rw-r--r--src/soc/amd/picasso/usb.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/soc/amd/picasso/usb.c b/src/soc/amd/picasso/usb.c
index ae6c476055..66c8266cd3 100644
--- a/src/soc/amd/picasso/usb.c
+++ b/src/soc/amd/picasso/usb.c
@@ -28,23 +28,24 @@ static void set_usb_over_current(struct device *dev)
{
uint16_t map = USB_OC_DISABLE_ALL;
- if (dev->path.pci.devfn == XHCI_DEVFN) {
- if (mainboard_get_xhci_oc_map(&map) == 0)
+ if (dev->path.pci.devfn == XHCI0_DEVFN) {
+ if (mainboard_get_xhci0_oc_map(&map) == 0)
; // TODO
}
- if (dev->path.pci.devfn == EHCI1_DEVFN)
- if (mainboard_get_ehci_oc_map(&map) == 0)
+ if (dev->path.pci.devfn == XHCI1_DEVFN) {
+ if (mainboard_get_xhci1_oc_map(&map) == 0)
; // TODO
+ }
}
-int __weak mainboard_get_xhci_oc_map(uint16_t *map)
+int __weak mainboard_get_xhci0_oc_map(uint16_t *map)
{
printk(BIOS_DEBUG, "WEAK: %s/%s called\n", __FILE__, __func__);
return -1;
}
-int __weak mainboard_get_ehci_oc_map(uint16_t *map)
+int __weak mainboard_get_xhci1_oc_map(uint16_t *map)
{
printk(BIOS_DEBUG, "WEAK: %s/%s called\n", __FILE__, __func__);
return -1;