summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/intel/pmc/core.h
diff options
context:
space:
mode:
authorRajvi Jingar <rajvi.jingar@linux.intel.com>2023-12-18 20:22:10 -0800
committerHans de Goede <hdegoede@redhat.com>2023-12-19 16:48:17 +0100
commitb6258fa2c7b3dd23e362801410f171567d0d16af (patch)
tree21a3177f3a5efa4b0a5f9cdee765397e55925b22 /drivers/platform/x86/intel/pmc/core.h
parent1f5e56c9f6cc92c45d27adfe78fb54c716fed2e2 (diff)
downloadlinux-b6258fa2c7b3dd23e362801410f171567d0d16af.tar.gz
linux-b6258fa2c7b3dd23e362801410f171567d0d16af.tar.bz2
linux-b6258fa2c7b3dd23e362801410f171567d0d16af.zip
platform/x86/intel/pmc: Add PSON residency counter
Tiger Lake platform onwards, devices have the capability to track the duration of time that their Power Supply Units (PSUs) are turned off during S0ix. This patch adds a debugfs file `pson_residency_usec` to provide access to this counter. Signed-off-by: Michael Bottini <michael.a.bottini@linux.intel.com> Signed-off-by: Rajvi Jingar <rajvi.jingar@linux.intel.com> Signed-off-by: David E. Box <david.e.box@linux.intel.com> Link: https://lore.kernel.org/r/20231219042216.2592029-2-rajvi.jingar@linux.intel.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86/intel/pmc/core.h')
-rw-r--r--drivers/platform/x86/intel/pmc/core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/intel/pmc/core.h b/drivers/platform/x86/intel/pmc/core.h
index 6d7673145f90..91cb34a6505c 100644
--- a/drivers/platform/x86/intel/pmc/core.h
+++ b/drivers/platform/x86/intel/pmc/core.h
@@ -323,6 +323,8 @@ struct pmc_reg_map {
const u32 lpm_live_status_offset;
const u32 etr3_offset;
const u8 *lpm_reg_index;
+ const u32 pson_residency_offset;
+ const u32 pson_residency_counter_step;
};
/**