blob: 1cd8953c17c6c1d743b40e5d4b0dd04c1a8a1fbe [file] [log] [blame]
zbao246e84b2012-07-13 18:47:03 +08001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2010 Advanced Micro Devices, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
zbao246e84b2012-07-13 18:47:03 +080014 */
15
zbao246e84b2012-07-13 18:47:03 +080016#include <device/device.h>
17#include <device/pci.h>
18#include <device/pci_ids.h>
19#include <device/pci_ops.h>
zbao246e84b2012-07-13 18:47:03 +080020#include <delay.h>
21#include "hudson.h"
22
23
24static void hda_init(struct device *dev)
25{
26}
27
28static struct pci_operations lops_pci = {
29 .set_subsystem = pci_dev_set_subsystem,
30};
31
32static struct device_operations hda_audio_ops = {
33 .read_resources = pci_dev_read_resources,
34 .set_resources = pci_dev_set_resources,
35 .enable_resources = pci_dev_enable_resources,
36 .init = hda_init,
37 .scan_bus = 0,
38 .ops_pci = &lops_pci,
39};
40
41static const struct pci_driver hdaaudio_driver __pci_driver = {
42 .ops = &hda_audio_ops,
43 .vendor = PCI_VENDOR_ID_AMD,
Kyösti Mälkki9d9a5522016-11-19 22:14:59 +020044 .device = PCI_DEVICE_ID_AMD_SB900_HDA,
zbao246e84b2012-07-13 18:47:03 +080045};