]> git.sur5r.net Git - u-boot/commitdiff
sunxi: axp152: dcdc3 scale is 50mV / step not 25mV / step
authorHans de Goede <hdegoede@redhat.com>
Mon, 13 Oct 2014 12:51:40 +0000 (14:51 +0200)
committerTom Rini <trini@ti.com>
Mon, 13 Oct 2014 13:02:01 +0000 (09:02 -0400)
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

index fa4ea050a55e30392178a8d61394e4b6aa5541d4..27c2c4c8da0498c37fa3436fa1818ff89e0d77f7 100644 (file)
@@ -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);
 }