blob: d03694c2abd946582ef3b8749fe2022f62e5b5fd [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>
zbao246e84b2012-07-13 18:47:03 +08007
Elyes HAOUASbf0970e2019-03-21 11:10:03 +01008#include "hudson.h"
zbao246e84b2012-07-13 18:47:03 +08009
10static void hda_init(struct device *dev)
11{
12}
13
14static struct pci_operations lops_pci = {
15 .set_subsystem = pci_dev_set_subsystem,
16};
17
18static struct device_operations hda_audio_ops = {
19 .read_resources = pci_dev_read_resources,
20 .set_resources = pci_dev_set_resources,
21 .enable_resources = pci_dev_enable_resources,
22 .init = hda_init,
23 .scan_bus = 0,
24 .ops_pci = &lops_pci,
25};
26
27static const struct pci_driver hdaaudio_driver __pci_driver = {
28 .ops = &hda_audio_ops,
29 .vendor = PCI_VENDOR_ID_AMD,
Kyösti Mälkki9d9a5522016-11-19 22:14:59 +020030 .device = PCI_DEVICE_ID_AMD_SB900_HDA,
zbao246e84b2012-07-13 18:47:03 +080031};