diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2023-11-18 18:07:27 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-12-06 16:20:24 +0000 |
commit | 903454e7b865b5b3d3a1615372d6eb5974ef4435 (patch) | |
tree | 0f464e852014a3174e03a50ef592b6dbd53182c4 /src/southbridge/intel/bd82x6x/usb_ehci.c | |
parent | afebab1ebe109c7b9ca9820679a4681b996bce0b (diff) |
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 <felix-coreboot@felixheld.de>
Change-Id: I92ecc3607216fb2f31639db9628898c9ce81770d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79171
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Diffstat (limited to 'src/southbridge/intel/bd82x6x/usb_ehci.c')
-rw-r--r-- | src/southbridge/intel/bd82x6x/usb_ehci.c | 11 |
1 files changed, 1 insertions, 10 deletions
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, -}; |