blob: 46e5c7ef740f046b1f290cb1c48c30ec279b4ba7 [file] [log] [blame]
Mariusz Szafranskia4041332017-08-02 17:28:17 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2014 - 2017 Intel Corporation.
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.
14 *
15 */
16
17#include <arch/io.h>
18#include <console/console.h>
19#include <device/device.h>
20#include <device/pci.h>
21#include <device/pci_ids.h>
22
23#include <soc/pci_devs.h>
24#include <soc/ramstage.h>
25
26static void npk_init(device_t dev)
27{
28 printk(BIOS_DEBUG, "pch: npk_init\n");
29
30 /* TODO */
31}
32
33static void pci_npk_read_resources(device_t dev)
34{
35 /* Skip NorthPeak enumeration. */
36}
37
38static struct device_operations pmc_ops = {
39 .read_resources = pci_npk_read_resources,
40 .set_resources = pci_dev_set_resources,
41 .enable_resources = pci_dev_enable_resources,
42 .scan_bus = 0,
43 .init = npk_init,
44 .ops_pci = &soc_pci_ops,
45};
46
47static const struct pci_driver pch_pmc __pci_driver = {
48 .ops = &pmc_ops,
49 .vendor = PCI_VENDOR_ID_INTEL,
50 .device = NPK_DEVID,
51};