Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 1 | /* |
| 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 Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 17 | #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 HAOUAS | 2ec4183 | 2018-05-27 17:40:58 +0200 | [diff] [blame] | 25 | static void npk_init(struct device *dev) |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 26 | { |
| 27 | printk(BIOS_DEBUG, "pch: npk_init\n"); |
| 28 | |
| 29 | /* TODO */ |
| 30 | } |
| 31 | |
Elyes HAOUAS | 2ec4183 | 2018-05-27 17:40:58 +0200 | [diff] [blame] | 32 | static void pci_npk_read_resources(struct device *dev) |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 33 | { |
| 34 | /* Skip NorthPeak enumeration. */ |
| 35 | } |
| 36 | |
| 37 | static 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 | |
| 46 | static const struct pci_driver pch_pmc __pci_driver = { |
| 47 | .ops = &pmc_ops, |
| 48 | .vendor = PCI_VENDOR_ID_INTEL, |
Felix Singer | dbc90df | 2019-11-22 00:10:20 +0100 | [diff] [blame^] | 49 | .device = PCI_DEVICE_ID_INTEL_DENVERTON_TRACEHUB, |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 50 | }; |