blob: 33762b04b3dda524c440f9aa56505a55c186240d [file] [log] [blame]
Angel Pons80d92382020-04-05 15:47:00 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Mariusz Szafranskia4041332017-08-02 17:28:17 +02002
Mariusz Szafranskia4041332017-08-02 17:28:17 +02003#include <console/console.h>
4#include <device/device.h>
5#include <device/pci.h>
6#include <device/pci_ids.h>
7
8#include <soc/pci_devs.h>
9#include <soc/ramstage.h>
10
Elyes HAOUAS2ec41832018-05-27 17:40:58 +020011static void npk_init(struct device *dev)
Mariusz Szafranskia4041332017-08-02 17:28:17 +020012{
13 printk(BIOS_DEBUG, "pch: npk_init\n");
14
15 /* TODO */
16}
17
Elyes HAOUAS2ec41832018-05-27 17:40:58 +020018static void pci_npk_read_resources(struct device *dev)
Mariusz Szafranskia4041332017-08-02 17:28:17 +020019{
20 /* Skip NorthPeak enumeration. */
21}
22
23static struct device_operations pmc_ops = {
24 .read_resources = pci_npk_read_resources,
25 .set_resources = pci_dev_set_resources,
26 .enable_resources = pci_dev_enable_resources,
Mariusz Szafranskia4041332017-08-02 17:28:17 +020027 .init = npk_init,
28 .ops_pci = &soc_pci_ops,
29};
30
31static const struct pci_driver pch_pmc __pci_driver = {
32 .ops = &pmc_ops,
33 .vendor = PCI_VENDOR_ID_INTEL,
Felix Singerdbc90df2019-11-22 00:10:20 +010034 .device = PCI_DEVICE_ID_INTEL_DENVERTON_TRACEHUB,
Mariusz Szafranskia4041332017-08-02 17:28:17 +020035};