summaryrefslogtreecommitdiff
path: root/src/drivers/usb
diff options
context:
space:
mode:
authorEric Lai <eric_lai@quanta.corp-partner.google.com>2023-06-06 15:01:02 +0800
committerFelix Held <felix-coreboot@felixheld.de>2023-06-08 15:51:43 +0000
commit9a070dc7468cce530a70eb58e7a12426a9aa741e (patch)
tree04e44f559ba256b4800b196e071a0fea7255b86a /src/drivers/usb
parent2813c7c10c54e176ea0cd5413a8eb78f1664a1c9 (diff)
soc/amd/phoenix: Hook up xhci ops in chipset.cb
Hook up xhci ops for Phoenix xHCI device. Benefit is we don't have to bother by adding xhci DID. BUG=b:285981912 TEST=check coreboot log shows below. [INFO ] \_SB.PCI0.GP41.XHC0.RHUB.SS01: USB3 Type-A Port A0 (MLB) Signed-off-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Change-Id: Ib59874948725966b04b54def3f6de463afeda709 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75659 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'src/drivers/usb')
-rw-r--r--src/drivers/usb/pci_xhci/pci_xhci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/usb/pci_xhci/pci_xhci.c b/src/drivers/usb/pci_xhci/pci_xhci.c
index 63a98c7cd5..ca51278e39 100644
--- a/src/drivers/usb/pci_xhci/pci_xhci.c
+++ b/src/drivers/usb/pci_xhci/pci_xhci.c
@@ -12,7 +12,7 @@
#define PCI_XHCI_CLASSCODE 0x0c0330 /* USB3.0 xHCI controller */
static unsigned int controller_count;
-static const struct device_operations xhci_pci_ops;
+const struct device_operations xhci_pci_ops;
struct port_counts {
unsigned int high_speed;
@@ -240,7 +240,7 @@ static void xhci_enable(struct device *dev)
dev->name = name;
}
-static const struct device_operations xhci_pci_ops = {
+const struct device_operations xhci_pci_ops = {
.read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,