summaryrefslogtreecommitdiff
path: root/src/soc/amd/stoneyridge/usb.c
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2018-05-07 15:37:28 -0700
committerPatrick Georgi <pgeorgi@google.com>2018-05-18 12:23:17 +0000
commit32bdffaf54700bce12b3a9a3e232c2274ebf56f1 (patch)
tree65dfd01526dd49b05dab93e8618069e582ced3bf /src/soc/amd/stoneyridge/usb.c
parentbf713b04b6f04ebf91eea40867a5354c958182f4 (diff)
downloadcoreboot-32bdffaf54700bce12b3a9a3e232c2274ebf56f1.tar.xz
soc/amd/stoneyridge: Support ACPI USB code generation
To support generating USB devices in ACPI the platform needs to know how to determine a device name for each USB port, and for any root hubs that may be present. The AMD Stoney Ridge platform has separate controllers for USB 2.0 and USB 3.0. The USB 2.0 ports are connected through a hub to an EHCI controller while the USB 3.0 ports are directly connected to the xHCI controller. This topology is described in ACPI and the port names are exposed by the soc_acpi_name() function. The USB controllers are configured to scan for static USB devices in the devicetree and use the soc_acpi_name() function to identify them. Change-Id: I2bb677f84a49d2531929985dba319455b88e1686 Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://review.coreboot.org/26175 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/amd/stoneyridge/usb.c')
-rw-r--r--src/soc/amd/stoneyridge/usb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/soc/amd/stoneyridge/usb.c b/src/soc/amd/stoneyridge/usb.c
index e6d608e7dc..6007af116b 100644
--- a/src/soc/amd/stoneyridge/usb.c
+++ b/src/soc/amd/stoneyridge/usb.c
@@ -21,6 +21,7 @@
#include <device/pci_ops.h>
#include <device/pci_ehci.h>
#include <arch/io.h>
+#include <soc/acpi.h>
#include <soc/pci_devs.h>
#include <soc/southbridge.h>
@@ -64,7 +65,8 @@ static struct device_operations usb_ops = {
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = set_usb_over_current,
- .scan_bus = NULL,
+ .scan_bus = scan_usb_bus,
+ .acpi_name = soc_acpi_name,
.ops_pci = &lops_pci,
};