diff options
author | Bruno Prémont <bonbons@linux-vserver.org> | 2015-08-08 17:58:40 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-08-12 09:59:11 +0100 |
commit | 553ed4b5dff66dbb10c20599e493b72ec6af72ab (patch) | |
tree | 275e7bede68653709eb5daac41288a7556e7358f /include/linux/mfd | |
parent | 3762aede11e516b7a392afdc1e070171e6f6cd00 (diff) | |
download | talos-obmc-linux-553ed4b5dff66dbb10c20599e493b72ec6af72ab.tar.gz talos-obmc-linux-553ed4b5dff66dbb10c20599e493b72ec6af72ab.zip |
mfd: axp20x: Add missing registers, and mark more registers volatile
Add an extra set of registers which is necessary tu support the PMICs
battery charger function, and mark registers which contain status bits,
gpio status, and adc readings as volatile.
Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/axp20x.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mfd/axp20x.h b/include/linux/mfd/axp20x.h index 52203d5f7984..cc8ad1e1a307 100644 --- a/include/linux/mfd/axp20x.h +++ b/include/linux/mfd/axp20x.h @@ -190,6 +190,12 @@ enum { #define AXP20X_CC_CTRL 0xb8 #define AXP20X_FG_RES 0xb9 +/* OCV */ +#define AXP20X_RDC_H 0xba +#define AXP20X_RDC_L 0xbb +#define AXP20X_OCV(m) (0xc0 + (m)) +#define AXP20X_OCV_MAX 0xf + /* AXP22X specific registers */ #define AXP22X_BATLOW_THRES1 0xe6 |