From afebab1ebe109c7b9ca9820679a4681b996bce0b Mon Sep 17 00:00:00 2001 From: Felix Held Date: Sat, 18 Nov 2023 18:03:40 +0100 Subject: sb/intel/bd82x6x: assign PCH XHCI controller ops in chipset devicetree Since the XHCI controller in the PCH is always on the same device function, the device operations can be statically assigned in the devicetree and there's no need to bind the XHCI device operations to the PCI device during runtime via a list of PCI IDs. Signed-off-by: Felix Held Change-Id: I8685bec734415346a53330c9bd1aa82986995f1a Reviewed-on: https://review.coreboot.org/c/coreboot/+/79170 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/southbridge/intel/bd82x6x/usb_xhci.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/southbridge') diff --git a/src/southbridge/intel/bd82x6x/usb_xhci.c b/src/southbridge/intel/bd82x6x/usb_xhci.c index 5607b16ae4a0..f71a50550b7d 100644 --- a/src/southbridge/intel/bd82x6x/usb_xhci.c +++ b/src/southbridge/intel/bd82x6x/usb_xhci.c @@ -41,7 +41,7 @@ static const char *xhci_acpi_name(const struct device *dev) return "XHC"; } -static struct device_operations usb_xhci_ops = { +struct device_operations bd82x6x_usb_xhci_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources, @@ -49,11 +49,3 @@ static struct device_operations usb_xhci_ops = { .ops_pci = &pci_dev_ops_pci, .acpi_name = xhci_acpi_name, }; - -static const unsigned short pci_device_ids[] = { 0x1e31, 0 }; - -static const struct pci_driver pch_usb_xhci __pci_driver = { - .ops = &usb_xhci_ops, - .vendor = PCI_VID_INTEL, - .devices = pci_device_ids, -}; -- cgit v1.2.3