From 903454e7b865b5b3d3a1615372d6eb5974ef4435 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Sat, 18 Nov 2023 18:07:27 +0100 Subject: sb/intel/bd82x6x: assign EHCI controller ops in chipset devicetree Since the EHCI controllers in the PCH are always on the same device functions, the device operations can be statically assigned in the devicetree and there's no need to bind the EHCI device operations to the PCI devices during runtime via a list of PCI IDs. Signed-off-by: Felix Held Change-Id: I92ecc3607216fb2f31639db9628898c9ce81770d Reviewed-on: https://review.coreboot.org/c/coreboot/+/79171 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/southbridge/intel/bd82x6x/usb_ehci.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/southbridge/intel/bd82x6x/usb_ehci.c') diff --git a/src/southbridge/intel/bd82x6x/usb_ehci.c b/src/southbridge/intel/bd82x6x/usb_ehci.c index 1cb260ae73..f05d932d12 100644 --- a/src/southbridge/intel/bd82x6x/usb_ehci.c +++ b/src/southbridge/intel/bd82x6x/usb_ehci.c @@ -90,7 +90,7 @@ static struct pci_operations lops_pci = { .set_subsystem = &usb_ehci_set_subsystem, }; -static struct device_operations usb_ehci_ops = { +struct device_operations bd82x6x_usb_ehci_ops = { .read_resources = pci_ehci_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources, @@ -98,12 +98,3 @@ static struct device_operations usb_ehci_ops = { .ops_pci = &lops_pci, .acpi_name = usb_ehci_acpi_name, }; - -static const unsigned short pci_device_ids[] = { 0x1c26, 0x1c2d, 0x1e26, 0x1e2d, - 0 }; - -static const struct pci_driver pch_usb_ehci __pci_driver = { - .ops = &usb_ehci_ops, - .vendor = PCI_VID_INTEL, - .devices = pci_device_ids, -}; -- cgit v1.2.3