summaryrefslogtreecommitdiff
path: root/include/linux/mfd/axp20x.h
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2016-09-15 10:37:10 +0200
committerKlaus Goger <klaus.goger@theobroma-systems.com>2016-09-18 15:53:10 +0200
commit9ef7c38d84fe452ab6806cc326083c03f1bdfe22 (patch)
treedc4632cc41d0f693edf43af6e4d2e8789760fe32 /include/linux/mfd/axp20x.h
parent345b19bca4b1c336f61f17b9aa6a180d934b299f (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.h3
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