From bf713b04b6f04ebf91eea40867a5354c958182f4 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 7 May 2018 15:33:18 -0700 Subject: soc/intel: Add support for USB ACPI 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. Recent Intel platforms route all ports to an XHCI controller through a root hub. This is supported by considering the root hub to be USB port type 0, the USB 2.0 ports to be type 2, and the USB 3.0 ports to be type 3. This was tested with a Kaby Lake platform by adding entries to the devicetree and checking the resulting SSDT. Change-Id: I527a63bdc64f9243fe57487363ee6d5f60be84ca Signed-off-by: Duncan Laurie Reviewed-on: https://review.coreboot.org/26174 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- src/soc/intel/common/block/xhci/xhci.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/soc/intel/common/block/xhci/xhci.c') diff --git a/src/soc/intel/common/block/xhci/xhci.c b/src/soc/intel/common/block/xhci/xhci.c index 737c8cfe7e..d76426211c 100644 --- a/src/soc/intel/common/block/xhci/xhci.c +++ b/src/soc/intel/common/block/xhci/xhci.c @@ -19,6 +19,7 @@ #include #include #include +#include #include __weak void soc_xhci_init(struct device *dev) { /* no-op */ } @@ -29,6 +30,8 @@ static struct device_operations usb_xhci_ops = { .enable_resources = &pci_dev_enable_resources, .init = soc_xhci_init, .ops_pci = &pci_dev_ops_pci, + .scan_bus = &scan_usb_bus, + .acpi_name = &soc_acpi_name, }; static const unsigned short pci_device_ids[] = { -- cgit v1.2.3