diff options
| author | Srinivas Pandruvada <[email protected]> | 2023-07-12 15:59:48 -0700 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2023-07-14 15:24:45 +0200 |
| commit | 61457949686fc4472e6136c72c255b4ad003e084 (patch) | |
| tree | 779216a832b9c8eebe1b24ec7a842cca88097f67 /include/linux | |
| parent | 2dd074c405d4c7bcdf97619c079b345021164109 (diff) | |
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 <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/intel_tpmi.h | 2 |
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 |