blob: 631aac762af1642da6d5e94131734cf3cad65a24 [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
Mariusz Szafranskia4041332017-08-02 17:28:17 +020017#include <console/console.h>
18#include <device/device.h>
19#include <device/pci.h>
20#include <device/pci_ids.h>
21
22#include <soc/pci_devs.h>
23#include <soc/ramstage.h>
24
Elyes HAOUAS2ec41832018-05-27 17:40:58 +020025static void npk_init(struct device *dev)
Mariusz Szafranskia4041332017-08-02 17:28:17 +020026{
27 printk(BIOS_DEBUG, "pch: npk_init\n");
28
29 /* TODO */
30}
31
Elyes HAOUAS2ec41832018-05-27 17:40:58 +020032static void pci_npk_read_resources(struct device *dev)
Mariusz Szafranskia4041332017-08-02 17:28:17 +020033{
34 /* Skip NorthPeak enumeration. */
35}
36
37static struct device_operations pmc_ops = {
38 .read_resources = pci_npk_read_resources,
39 .set_resources = pci_dev_set_resources,
40 .enable_resources = pci_dev_enable_resources,
41 .scan_bus = 0,
42 .init = npk_init,
43 .ops_pci = &soc_pci_ops,
44};
45
46static const struct pci_driver pch_pmc __pci_driver = {
47 .ops = &pmc_ops,
48 .vendor = PCI_VENDOR_ID_INTEL,
Felix Singerdbc90df2019-11-22 00:10:20 +010049 .device = PCI_DEVICE_ID_INTEL_DENVERTON_TRACEHUB,
Mariusz Szafranskia4041332017-08-02 17:28:17 +020050};