diff mbox

[U-Boot,fix,for,v2014.10] sunxi: axp152: dcdc3 scale is 50mV / step not 25mV / step

Message ID 1413204700-8870-2-git-send-email-hdegoede@redhat.com
State Accepted
Headers show

Commit Message

Hans de Goede Oct. 13, 2014, 12:51 p.m. UTC
Currently uboot wrongly uses 25mV / step for dcdc3, this is a copy and paste
error introduced when adding the axp152_mvolt_to_target during review of the
axp152.c driver. This results in u-boot setting Vddr to 2.3V instead of 1.5V.

This commit fixes this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/power/axp152.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini Oct. 13, 2014, 1:02 p.m. UTC | #1
On Mon, Oct 13, 2014 at 02:51:40PM +0200, Hans de Goede wrote:

> Currently uboot wrongly uses 25mV / step for dcdc3, this is a copy and paste
> error introduced when adding the axp152_mvolt_to_target during review of the
> axp152.c driver. This results in u-boot setting Vddr to 2.3V instead of 1.5V.
> 
> This commit fixes this.
> 
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/drivers/power/axp152.c b/drivers/power/axp152.c
index fa4ea05..27c2c4c 100644
--- a/drivers/power/axp152.c
+++ b/drivers/power/axp152.c
@@ -62,7 +62,7 @@  int axp152_set_dcdc2(int mvolt)
 
 int axp152_set_dcdc3(int mvolt)
 {
-	u8 target = axp152_mvolt_to_target(mvolt, 700, 3500, 25);
+	u8 target = axp152_mvolt_to_target(mvolt, 700, 3500, 50);
 
 	return axp152_write(AXP152_DCDC3_VOLTAGE, target);
 }