]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: intel_pmc_core: Special case for Coffeelake
authorRajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
Fri, 2 Feb 2018 13:43:37 +0000 (19:13 +0530)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sun, 4 Feb 2018 13:55:53 +0000 (15:55 +0200)
commit0940eb674f94dea41c654d06cc398f4e9aa42820
treecd836a30d362c11ac3b89d467de903f51bb1a399
parentebe08bc318c047219fc32e6395d4a9a823073cca
platform/x86: intel_pmc_core: Special case for Coffeelake

Intel CoffeeLake SoC uses CPU ID of KabyLake but has Cannonlake PCH, so in
this case PMC register details from Cannonlake PCH must be used.

In order to identify whether the given platform is Coffeelake, scan for the
Sunrisepoint PMC PCI Id.

 KBL CPUID SPT PCIID
------------------------------------
KBL | Y | Y   |
------------------------------------
CFL | Y | N   |
------------------------------------

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@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