OSDN Git Service

platform/x86: intel_pmc_core: Add CNP SLPS0 debug registers
authorBox, David E <david.e.box@intel.com>
Sat, 9 Jun 2018 00:02:37 +0000 (17:02 -0700)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 2 Jul 2018 12:00:30 +0000 (15:00 +0300)
commit4cf2afd6ef0d5e43e92d46401e7c1d3a9fac915b
tree387567a143a538f806ede4d6c3c9702152ad2a11
parent74421786f0bcdc3599983137de4b39b8ff0ff9a2
platform/x86: intel_pmc_core: Add CNP SLPS0 debug registers

Adds debugfs access to registers in the Cannon Point PCH PMC that are
useful for debugging #SLP_S0 signal assertion and other low power relate
activities. Device pm states are latched in these registers whenever the
package enters C10 and can be read from slp_s0_debug_status. The pm
states may also be latched by writing 1 to slp_s0_dbg_latch which will
immediately capture the current state on the next read of
slp_s0_debug_status.

Signed-off-by: Box, David E <david.e.box@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