diff options
author | Rask Ingemann Lambertsen <rask@formelder.dk> | 2017-01-18 21:53:40 +0100 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2017-03-09 11:26:02 +0900 |
commit | 3cc293e26fa87f54d4a4c70448ff99b817c76913 (patch) | |
tree | f59bb58de39e3f0f3cfd61581d52a24adae9a472 /configs/kmvect1_defconfig | |
parent | 0574f786d3c85ab1a9fe9ee8ade65e3ae83e18a4 (diff) | |
download | u-boot-imx-3cc293e26fa87f54d4a4c70448ff99b817c76913.zip u-boot-imx-3cc293e26fa87f54d4a4c70448ff99b817c76913.tar.gz u-boot-imx-3cc293e26fa87f54d4a4c70448ff99b817c76913.tar.bz2 |
sunxi: power: axp809.c: Fix aldo1-2 being disabled for mvolt != 0
The execution flow is currently like this for aldo_num == 1 or 2:
int axp_set_aldo(int aldo_num, unsigned int mvolt)
{
...
if (mvolt == 0)
return pmic_bus_clrbits(AXP809_OUTPUT_CTRL1,
AXP809_OUTPUT_CTRL1_ALDO1_EN << (aldo_num - 1));
...
return pmic_bus_clrbits(AXP809_OUTPUT_CTRL1,
AXP809_OUTPUT_CTRL1_ALDO1_EN << (aldo_num - 1));
}
I.e. aldo1 and aldo2 will always be disabled. This patch fixes it by
setting (rather than clearing) the enable bit when mvolt != 0.
Signed-off-by: Rask Ingemann Lambertsen <rask@formelder.dk>
Fixes: 795857df413a ("sunxi: power: add AXP809 support")
Diffstat (limited to 'configs/kmvect1_defconfig')
0 files changed, 0 insertions, 0 deletions