summaryrefslogtreecommitdiff
path: root/include/linux/intel_tpmi.h
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2023-07-13 01:59:48 +0300
committerHans de Goede <hdegoede@redhat.com>2023-07-14 16:24:45 +0300
commit61457949686fc4472e6136c72c255b4ad003e084 (patch)
tree779216a832b9c8eebe1b24ec7a842cca88097f67 /include/linux/intel_tpmi.h
parent2dd074c405d4c7bcdf97619c079b345021164109 (diff)
downloadlinux-61457949686fc4472e6136c72c255b4ad003e084.tar.xz
platform/x86/intel/tpmi: Read feature control status
Some of the PM features can be locked or disabled. In that case, write interface can be locked. This status is read via a mailbox. There is one TPMI ID which provides base address for interface and data register for mail box operation. The mailbox operations is defined in the TPMI specification. Refer to https://github.com/intel/tpmi_power_management/ for TPMI specifications. An API is exposed to feature drivers to read feature control status. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20230712225950.171326-2-srinivas.pandruvada@linux.intel.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/linux/intel_tpmi.h')
-rw-r--r--include/linux/intel_tpmi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/intel_tpmi.h b/include/linux/intel_tpmi.h
index f505788c05da..04d937ad4dc4 100644
--- a/include/linux/intel_tpmi.h
+++ b/include/linux/intel_tpmi.h
@@ -27,4 +27,6 @@ struct intel_tpmi_plat_info *tpmi_get_platform_data(struct auxiliary_device *aux
struct resource *tpmi_get_resource_at_index(struct auxiliary_device *auxdev, int index);
int tpmi_get_resource_count(struct auxiliary_device *auxdev);
+int tpmi_get_feature_status(struct auxiliary_device *auxdev, int feature_id, int *locked,
+ int *disabled);
#endif