blob: 04b4d920ca9b65e267f150d06c5e294ee7091d44 [file] [log] [blame]
Angel Pons182dbde2020-04-02 23:49:05 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03002
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03003#include <device/device.h>
4#include <device/pci.h>
5#include <device/pci_ids.h>
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03006#include <device/pci_ehci.h>
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03007#include "hudson.h"
8
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03009static void usb_init(struct device *dev)
10{
11}
12
13static struct device_operations usb_ops = {
14 .read_resources = pci_ehci_read_resources,
15 .set_resources = pci_dev_set_resources,
16 .enable_resources = pci_dev_enable_resources,
17 .init = usb_init,
Angel Pons1fc0edd2020-05-31 00:03:28 +020018 .ops_pci = &pci_dev_ops_pci,
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030019};
20
WANG Siyuanf2dfef02015-05-20 14:41:01 +080021static const unsigned short pci_device_ids[] = {
Felix Singer43b7f412022-03-07 04:34:52 +010022 PCI_DID_AMD_SB900_USB_18_0,
23 PCI_DID_AMD_SB900_USB_18_2,
24 PCI_DID_AMD_SB900_USB_20_5,
25 PCI_DID_AMD_CZ_USB_0,
26 PCI_DID_AMD_CZ_USB_1,
27 PCI_DID_AMD_CZ_USB3_0,
WANG Siyuanf2dfef02015-05-20 14:41:01 +080028 0
29};
30
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030031static const struct pci_driver usb_0_driver __pci_driver = {
32 .ops = &usb_ops,
Felix Singer43b7f412022-03-07 04:34:52 +010033 .vendor = PCI_VID_AMD,
WANG Siyuanf2dfef02015-05-20 14:41:01 +080034 .devices = pci_device_ids,
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030035};