Angel Pons | 80d9238 | 2020-04-05 15:47:00 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 2 | |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 3 | #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 HAOUAS | 2ec4183 | 2018-05-27 17:40:58 +0200 | [diff] [blame] | 11 | static void npk_init(struct device *dev) |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 12 | { |
Elyes HAOUAS | f9e1852 | 2021-01-16 17:33:24 +0100 | [diff] [blame] | 13 | printk(BIOS_DEBUG, "pch: %s\n", __func__); |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 14 | |
| 15 | /* TODO */ |
| 16 | } |
| 17 | |
Elyes HAOUAS | 2ec4183 | 2018-05-27 17:40:58 +0200 | [diff] [blame] | 18 | static void pci_npk_read_resources(struct device *dev) |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 19 | { |
| 20 | /* Skip NorthPeak enumeration. */ |
| 21 | } |
| 22 | |
| 23 | static 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 Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 27 | .init = npk_init, |
| 28 | .ops_pci = &soc_pci_ops, |
| 29 | }; |
| 30 | |
| 31 | static const struct pci_driver pch_pmc __pci_driver = { |
| 32 | .ops = &pmc_ops, |
Felix Singer | 43b7f41 | 2022-03-07 04:34:52 +0100 | [diff] [blame] | 33 | .vendor = PCI_VID_INTEL, |
| 34 | .device = PCI_DID_INTEL_DNV_TRACEHUB, |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 35 | }; |