[U-Boot] [PATCH] sunxi: axp221: Fix using the wrong register address for ALDO2

Hans de Goede hdegoede at redhat.com
Mon Jan 5 17:18:07 CET 2015


This fixes us never programming ALDO2, and programming the ALDO2 voltage
into ALDo1.

Reported-by: Siarhei Siamashka <siarhei.siamashka at gmail.com>
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
 include/axp221.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/axp221.h b/include/axp221.h
index a6e52e3..e9552f6 100644
--- a/include/axp221.h
+++ b/include/axp221.h
@@ -43,7 +43,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
 #define AXP221_PAGE		0xff
 
-- 
2.1.0



More information about the U-Boot mailing list