summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorIain Paton <ipaton0@gmail.com>2015-03-25 16:03:26 +0000
committerHans de Goede <hdegoede@redhat.com>2015-03-26 13:17:46 +0100
commit99deda1dff206d679fcc87949b7151df0d47ea73 (patch)
tree9e1ffc52276d743456698bc599a17a7b31215ff7 /drivers
parenta923abc2d3044324e3c88af7776469a31edf3121 (diff)
downloadu-boot-imx-99deda1dff206d679fcc87949b7151df0d47ea73.zip
u-boot-imx-99deda1dff206d679fcc87949b7151df0d47ea73.tar.gz
u-boot-imx-99deda1dff206d679fcc87949b7151df0d47ea73.tar.bz2
sunxi: axp209: fix incorrect limits on ldo3
board/sunxi/board.c tries to set ldo3 to 2.8v however drivers/power/axp209.c contains an incorrect limit on ldo3 of 2.275v The origin of the incorrect limit seems likely due to some inconsistencies in the axp209 datasheet. ldo3 is described with different limits in different sections. register 0x29 uses 7 bits for voltage configuration while the 2.275v limit would apply if only 6 bits were used. Probably this is a cut&paste error from register 0x23 The linux kernel driver has the correct limit and operation up to the 2.8v required by my board has been physically verified with a multimeter. Signed-off-by: Iain Paton <ipaton0@gmail.com> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/axp209.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/axp209.c b/drivers/power/axp209.c
index 4565398..f8c9b77 100644
--- a/drivers/power/axp209.c
+++ b/drivers/power/axp209.c
@@ -119,7 +119,7 @@ int axp209_set_ldo3(int mvolt)
if (mvolt == -1)
cfg = 0x80; /* determined by LDO3IN pin */
else
- cfg = axp209_mvolt_to_cfg(mvolt, 700, 2275, 25);
+ cfg = axp209_mvolt_to_cfg(mvolt, 700, 3500, 25);
return axp209_write(AXP209_LDO3_VOLTAGE, cfg);
}