summaryrefslogtreecommitdiff
path: root/include/axp221.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-01-05 16:41:49 +0100
committerHans de Goede <hdegoede@redhat.com>2015-01-06 11:25:47 +0100
commit5ba471944abc63e837a29c905ac46ae362d5f6a5 (patch)
treea3031383aa7f9f510f8ecc62a2b793703fdb3624 /include/axp221.h
parentd622ac39274a949b6445f1bfd92dc1644014388b (diff)
sunxi: axp221: Fix using the wrong register address for ALDO2
This fixes us never programming ALDO2, and programming the ALDO2 voltage into ALDo1. Reported-by: Siarhei Siamashka <siarhei.siamashka@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/axp221.h')
-rw-r--r--include/axp221.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/axp221.h b/include/axp221.h
index e3b4409a95..26d25ff52e 100644
--- a/include/axp221.h
+++ b/include/axp221.h
@@ -32,7 +32,7 @@
#define AXP221_DCDC4_CTRL 0x24
#define AXP221_DCDC5_CTRL 0x25
#define AXP221_ALDO1_CTRL 0x28
-#define AXP221_ALDO2_CTRL 0x28
+#define AXP221_ALDO2_CTRL 0x29
#define AXP221_ALDO3_CTRL 0x2a
int axp221_set_dcdc1(unsigned int mvolt);