u-boot/drivers/power
Rask Ingemann Lambertsen 3cc293e26f 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: 795857df41 ("sunxi: power: add AXP809 support")
2017-03-09 11:26:02 +09:00
..
battery power: change from meaningless value to error number 2017-01-11 19:40:14 +09:00
domain dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
fuel_gauge power: change from meaningless value to error number 2017-01-11 19:40:14 +09:00
mfd power: change from meaningless value to error number 2017-01-11 19:40:14 +09:00
pmic power: pmic: add the max8997 controller for DM 2017-02-09 14:28:37 +09:00
regulator Merge git://git.denx.de/u-boot-dm 2017-02-08 16:24:44 -05:00
as3722.c power: Export register access functions from as3722 2015-05-13 09:24:07 -07:00
axp152.c power: change from meaningless value to error number 2017-01-11 19:40:14 +09:00
axp209.c power: change from meaningless value to error number 2017-01-11 19:40:14 +09:00
axp221.c sunxi: axp2xx: disable ldoio0/1 at boot 2016-09-17 14:37:39 +02:00
axp809.c sunxi: power: axp809.c: Fix aldo1-2 being disabled for mvolt != 0 2017-03-09 11:26:02 +09:00
axp818.c sunxi: Implement poweroff support for axp818 pmic 2016-05-25 17:52:39 +02:00
exynos-tmu.c power: change from meaningless value to error number 2017-01-11 19:40:14 +09:00
ftpmu010.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
Kconfig kconfig: use bool instead of boolean for type definition attributes 2016-08-12 09:23:49 -04:00
Makefile sunxi: power: add AXP809 support 2016-05-25 17:52:39 +02:00
palmas.c power: change from meaningless value to error number 2017-01-11 19:40:14 +09:00
power_core.c power: change from meaningless value to error number 2017-01-11 19:40:14 +09:00
power_dialog.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
power_fsl.c power: Rename CONFIG_PMIC_... to CONFIG_POWER_... 2014-05-28 10:58:18 +09:00
power_i2c.c power_i2c.c: Fix unused variable warning 2017-01-11 09:16:05 -05:00
power_spi.c power: change from meaningless value to error number 2017-01-11 19:40:14 +09:00
sy8106a.c sunxi: power: add support for sy8106a driver 2016-02-23 20:50:07 +01:00
tps6586x.c power: change from meaningless value to error number 2017-01-11 19:40:14 +09:00
twl4030.c power: twl4030: Power off support 2015-08-12 20:47:35 -04:00
twl6030.c power: twl6030: fix code refactoring 2016-10-24 08:04:38 -04:00