]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: intel_pmc_core: Substitute PCI with CPUID enumeration
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 19 Jan 2018 08:58:21 +0000 (14:28 +0530)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 29 Jan 2018 18:44:15 +0000 (20:44 +0200)
commit0a71aa90e9ef9b60c3a4c307c7e2c4c8b61dd190
tree2dd464dcbcbf2ec9a38400ac05533119e9c97615
parent4b7b22e06b6da931a845dc89ac5df5e1c7182653
platform/x86: intel_pmc_core: Substitute PCI with CPUID enumeration

The Only use of PCI device enumeration here is to get the PMC base address
which is a fixed value i.e. 0xFE000000. On some platforms this can be read
through a non standard PCI BAR. But after Kabylake, PMC is not exposed as a
PCI device anymore. There are other non standard methods like ACPI LPIT
which can also be used for obtaining this value.

For simplicity, this value can be hardcoded as it won't change.

Since we don't have a PMC PCI device on any platform after Kabylake, this
creates a foundation for future SoC support.

Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_pmc_core.c
drivers/platform/x86/intel_pmc_core.h