]> 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)
commite86d48fb6227e107dd8062fd57a056dbe6791186
tree2dd464dcbcbf2ec9a38400ac05533119e9c97615
parent8ed33a6b9c15a281c2a4573e58033151b5e53302
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