]> git.ipfire.org Git - people/ms/u-boot.git/commit
sunxi: axp209: fix incorrect limits on ldo3
authorIain Paton <ipaton0@gmail.com>
Wed, 25 Mar 2015 16:03:26 +0000 (16:03 +0000)
committerHans de Goede <hdegoede@redhat.com>
Thu, 26 Mar 2015 12:17:46 +0000 (13:17 +0100)
commit99deda1dff206d679fcc87949b7151df0d47ea73
tree9e1ffc52276d743456698bc599a17a7b31215ff7
parenta923abc2d3044324e3c88af7776469a31edf3121
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>
drivers/power/axp209.c