blob: a92d7a9c8aee53efe39a5d988d2246574ee0b4ed [file] [log] [blame]
Lee Leahy77ff0b12015-05-05 15:07:29 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2014 Google Inc.
Lee Leahy32471722015-04-20 15:20:28 -07005 * Copyright (C) 2015 Intel Corp.
Lee Leahy77ff0b12015-05-05 15:07:29 -07006 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
Lee Leahy77ff0b12015-05-05 15:07:29 -070015 */
16#include <arch/io.h>
17#include <console/console.h>
18#include <device/device.h>
19#include <device/pci.h>
20#include <device/pci_def.h>
21#include <device/pci_ids.h>
22#include <reg_script.h>
23
Lee Leahy32471722015-04-20 15:20:28 -070024#include <soc/hda.h>
Lee Leahy77ff0b12015-05-05 15:07:29 -070025#include <soc/iomap.h>
Lee Leahy77ff0b12015-05-05 15:07:29 -070026#include <soc/pci_devs.h>
27#include <soc/ramstage.h>
28
Lee Leahy77ff0b12015-05-05 15:07:29 -070029static const struct device_operations device_ops = {
30 .read_resources = pci_dev_read_resources,
31 .set_resources = pci_dev_set_resources,
32 .enable_resources = pci_dev_enable_resources,
Lee Leahy32471722015-04-20 15:20:28 -070033 .init = NULL,
Lee Leahy77ff0b12015-05-05 15:07:29 -070034 .enable = NULL,
35 .scan_bus = NULL,
36 .ops_pci = &soc_pci_ops,
37};
38
39static const struct pci_driver southcluster __pci_driver = {
40 .ops = &device_ops,
41 .vendor = PCI_VENDOR_ID_INTEL,
42 .device = HDA_DEVID,
43};