blob: 151992376e994599171d7575bd279b6319b303f2 [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{
Elyes HAOUASf9e18522021-01-16 17:33:24 +010013 printk(BIOS_DEBUG, "pch: %s\n", __func__);
Mariusz Szafranskia4041332017-08-02 17:28:17 +020014
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,
Felix Singer43b7f412022-03-07 04:34:52 +010033 .vendor = PCI_VID_INTEL,
34 .device = PCI_DID_INTEL_DNV_TRACEHUB,
Mariusz Szafranskia4041332017-08-02 17:28:17 +020035};