Skip to content
Snippets Groups Projects
Commit 74bf7961 authored by Hans de Goede's avatar Hans de Goede Committed by Tom Rini
Browse files

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: default avatarHans de Goede <hdegoede@redhat.com>
parent c7ad5cbb
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ int axp152_set_dcdc2(int mvolt) ...@@ -62,7 +62,7 @@ int axp152_set_dcdc2(int mvolt)
int axp152_set_dcdc3(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); return axp152_write(AXP152_DCDC3_VOLTAGE, target);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment