platform/x86: intel_pmc_core: Add debugfs entry for low power mode status registers
authorGayatri Kammela <gayatri.kammela@intel.com>
Tue, 4 Feb 2020 23:01:55 +0000 (15:01 -0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 Feb 2020 15:47:38 +0000 (17:47 +0200)
commitf632817d5ef369a6f433449a1b8fa26627fc40e0
tree75b94d68abc738875f1088dc62204abb0ae602f7
parenta45096ac70e59498ef3d1fe67ab6a10dbccf59ef
platform/x86: intel_pmc_core: Add debugfs entry for low power mode status registers

Tiger Lake has 6 status registers that are memory mapped. These
registers show the status of the low power mode requirements. The
registers are latched on every C10 entry or exit and on every s0ix.y
entry/exit. Accessing these registers is useful for debugging any low
power related activities.

Thus, add debugfs entry to access low power mode status registers.

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