]> asedeno.scripts.mit.edu Git - linux.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)
commit661405bd817b209ac9bd4812c63d90873a7f2993
treecd836a30d362c11ac3b89d467de903f51bb1a399
parent291101f6a73566f5d1ab597784288c5bc85906fd
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