diff options
Diffstat (limited to 'drivers/acpi/pmic/intel_pmic.h')
-rw-r--r-- | drivers/acpi/pmic/intel_pmic.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/acpi/pmic/intel_pmic.h b/drivers/acpi/pmic/intel_pmic.h new file mode 100644 index 000000000000..d4e90af8f0dd --- /dev/null +++ b/drivers/acpi/pmic/intel_pmic.h | |||
@@ -0,0 +1,25 @@ | |||
1 | #ifndef __INTEL_PMIC_H | ||
2 | #define __INTEL_PMIC_H | ||
3 | |||
4 | struct pmic_table { | ||
5 | int address; /* operation region address */ | ||
6 | int reg; /* corresponding thermal register */ | ||
7 | int bit; /* control bit for power */ | ||
8 | }; | ||
9 | |||
10 | struct intel_pmic_opregion_data { | ||
11 | int (*get_power)(struct regmap *r, int reg, int bit, u64 *value); | ||
12 | int (*update_power)(struct regmap *r, int reg, int bit, bool on); | ||
13 | int (*get_raw_temp)(struct regmap *r, int reg); | ||
14 | int (*update_aux)(struct regmap *r, int reg, int raw_temp); | ||
15 | int (*get_policy)(struct regmap *r, int reg, u64 *value); | ||
16 | int (*update_policy)(struct regmap *r, int reg, int enable); | ||
17 | struct pmic_table *power_table; | ||
18 | int power_table_count; | ||
19 | struct pmic_table *thermal_table; | ||
20 | int thermal_table_count; | ||
21 | }; | ||
22 | |||
23 | int intel_pmic_install_opregion_handler(struct device *dev, acpi_handle handle, struct regmap *regmap, struct intel_pmic_opregion_data *d); | ||
24 | |||
25 | #endif | ||