diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2016-09-15 10:37:10 +0200 |
---|---|---|
committer | Klaus Goger <klaus.goger@theobroma-systems.com> | 2016-09-18 15:53:10 +0200 |
commit | 9ef7c38d84fe452ab6806cc326083c03f1bdfe22 (patch) | |
tree | dc4632cc41d0f693edf43af6e4d2e8789760fe32 /include/linux/mfd/axp20x.h | |
parent | 345b19bca4b1c336f61f17b9aa6a180d934b299f (diff) |
mfd: axp20x: Mark the AXP809's die-temperature ADC reading 'volatile'
The AXP809 provides an internal temperature sensor, measuring the
PMIC's die temperature and exporting this reading in an ADC register.
This change splits the AXP809 register definition from the AXP22x
to allow higher-layer (e.g. hwmon) drivers to read the current
temperature of the chip.
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'include/linux/mfd/axp20x.h')
-rw-r--r-- | include/linux/mfd/axp20x.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/axp20x.h b/include/linux/mfd/axp20x.h index 2ecf8c0b13d1..635fdc79d635 100644 --- a/include/linux/mfd/axp20x.h +++ b/include/linux/mfd/axp20x.h @@ -167,6 +167,9 @@ enum { #define AXP20X_IPSOUT_V_HIGH_H 0x7e #define AXP20X_IPSOUT_V_HIGH_L 0x7f +#define AXP809_TEMP_ADC_H 0x56 +#define AXP809_TEMP_ADC_L 0x57 + /* Power supply */ #define AXP20X_DCDC_MODE 0x80 #define AXP20X_ADC_EN1 0x82 |