Commit 74bf7961a0af0b725d7f0376422d0bdd5bd3c707

Authored by Hans de Goede
Committed by Tom Rini
1 parent c7ad5cbb1e

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/power/axp152.c
... ... @@ -62,7 +62,7 @@
62 62  
63 63 int axp152_set_dcdc3(int mvolt)
64 64 {
65   - u8 target = axp152_mvolt_to_target(mvolt, 700, 3500, 25);
  65 + u8 target = axp152_mvolt_to_target(mvolt, 700, 3500, 50);
66 66  
67 67 return axp152_write(AXP152_DCDC3_VOLTAGE, target);
68 68 }