]> 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)
commit847f61879ce588218d601de8bbabbe8fc4df0fe1
treecd836a30d362c11ac3b89d467de903f51bb1a399
parentefae28f8f7f6ca24ce53c92c425991d6e40fc584
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