summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-10-13 14:51:40 +0200
committerTom Rini <trini@ti.com>2014-10-13 09:02:01 -0400
commit74bf7961a0af0b725d7f0376422d0bdd5bd3c707 (patch)
treea148ba04398f6e83654c0799cca83bf7de48a77b /drivers/power
parentc7ad5cbb1ef2c33883f0fa7d0455095004fd306d (diff)
downloadu-boot-imx-74bf7961a0af0b725d7f0376422d0bdd5bd3c707.zip
u-boot-imx-74bf7961a0af0b725d7f0376422d0bdd5bd3c707.tar.gz
u-boot-imx-74bf7961a0af0b725d7f0376422d0bdd5bd3c707.tar.bz2
sunxi: axp152: dcdc3 scale is 50mV / step not 25mV / step
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>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/axp152.c2
1 files changed, 1 insertions, 1 deletions
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);
}