2015-05-06 00:07:29 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the coreboot project.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2014 Google Inc.
|
2015-04-21 00:20:28 +02:00
|
|
|
* Copyright (C) 2015 Intel Corp.
|
2015-05-06 00:07:29 +02:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
#include <arch/io.h>
|
|
|
|
#include <console/console.h>
|
|
|
|
#include <device/device.h>
|
|
|
|
#include <device/pci.h>
|
|
|
|
#include <device/pci_def.h>
|
|
|
|
#include <device/pci_ids.h>
|
|
|
|
#include <reg_script.h>
|
|
|
|
|
2015-04-21 00:20:28 +02:00
|
|
|
#include <soc/hda.h>
|
2015-05-06 00:07:29 +02:00
|
|
|
#include <soc/iomap.h>
|
|
|
|
#include <soc/pci_devs.h>
|
|
|
|
#include <soc/ramstage.h>
|
|
|
|
|
|
|
|
static const struct device_operations device_ops = {
|
|
|
|
.read_resources = pci_dev_read_resources,
|
|
|
|
.set_resources = pci_dev_set_resources,
|
|
|
|
.enable_resources = pci_dev_enable_resources,
|
2015-04-21 00:20:28 +02:00
|
|
|
.init = NULL,
|
2015-05-06 00:07:29 +02:00
|
|
|
.enable = NULL,
|
|
|
|
.scan_bus = NULL,
|
|
|
|
.ops_pci = &soc_pci_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct pci_driver southcluster __pci_driver = {
|
|
|
|
.ops = &device_ops,
|
|
|
|
.vendor = PCI_VENDOR_ID_INTEL,
|
|
|
|
.device = HDA_DEVID,
|
|
|
|
};
|