platform/x86: intel_pmc_core: Add debugfs support to access live status registers
authorGayatri Kammela <gayatri.kammela@intel.com>
Tue, 4 Feb 2020 23:02:00 +0000 (15:02 -0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 11 Feb 2020 13:04:43 +0000 (15:04 +0200)
commit7adb1e8aeeb5d4d88012568b2049599c1a247cf2
tree999b5fe7dafb486c2051c28a3c33ed3428bf5cc8
parent2e36ac08a98829b132a9d0bf1ca281af1a931747
platform/x86: intel_pmc_core: Add debugfs support to access live status registers

Just like status registers, Tiger Lake has another set of 6 registers
that help with status of the low power mode requirements. They are
latched on every PC10 entry/exit and S0ix.y entry/exit as well.

Though status and live status registers show the status of same list
of requirements, live status registers show the status of the low power
mode requirements at the time of reading.

Cc: Srinivas Pandruvada <srinivas.pandruvada@intel.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: David E. Box <david.e.box@intel.com>
Signed-off-by: Gayatri Kammela <gayatri.kammela@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