blob: 26575559643a20d880e9583c198a6cf83627e77c [file] [log] [blame]
Angel Pons182dbde2020-04-02 23:49:05 +02001/* SPDX-License-Identifier: GPL-2.0-only */
2/* This file is part of the coreboot project. */
zbao246e84b2012-07-13 18:47:03 +08003
zbao246e84b2012-07-13 18:47:03 +08004#include <device/device.h>
5#include <device/pci.h>
6#include <device/pci_ids.h>
Kyösti Mälkkie2227a22014-02-05 13:02:55 +02007#include <device/pci_ehci.h>
zbao246e84b2012-07-13 18:47:03 +08008#include "hudson.h"
9
10static struct pci_operations lops_pci = {
11 .set_subsystem = pci_dev_set_subsystem,
12};
13
14static void usb_init(struct device *dev)
15{
16}
17
zbao246e84b2012-07-13 18:47:03 +080018static struct device_operations usb_ops = {
Kyösti Mälkkifb387df2013-06-07 22:16:52 +030019 .read_resources = pci_ehci_read_resources,
20 .set_resources = pci_dev_set_resources,
zbao246e84b2012-07-13 18:47:03 +080021 .enable_resources = pci_dev_enable_resources,
22 .init = usb_init,
23 .scan_bus = 0,
24 .ops_pci = &lops_pci,
25};
26
27static const struct pci_driver usb_0_driver __pci_driver = {
28 .ops = &usb_ops,
29 .vendor = PCI_VENDOR_ID_AMD,
Kyösti Mälkki9d9a5522016-11-19 22:14:59 +020030 .device = PCI_DEVICE_ID_AMD_SB900_USB_18_0,
zbao246e84b2012-07-13 18:47:03 +080031};
Kyösti Mälkkid61d07b2016-11-19 22:38:13 +020032
zbao246e84b2012-07-13 18:47:03 +080033static const struct pci_driver usb_1_driver __pci_driver = {
34 .ops = &usb_ops,
35 .vendor = PCI_VENDOR_ID_AMD,
Kyösti Mälkki9d9a5522016-11-19 22:14:59 +020036 .device = PCI_DEVICE_ID_AMD_SB900_USB_18_2,
zbao246e84b2012-07-13 18:47:03 +080037};
38
zbao246e84b2012-07-13 18:47:03 +080039static const struct pci_driver usb_4_driver __pci_driver = {
40 .ops = &usb_ops,
41 .vendor = PCI_VENDOR_ID_AMD,
Kyösti Mälkki9d9a5522016-11-19 22:14:59 +020042 .device = PCI_DEVICE_ID_AMD_SB900_USB_20_5,
zbao246e84b2012-07-13 18:47:03 +080043};