u-boot/drivers
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
..
adc dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
bios_emulator
block
bootcount
clk Merge git://git.denx.de/u-boot-dm 2017-02-08 16:24:44 -05:00
core simple-bus: enable support for of-platdata 2017-02-08 06:12:16 -07:00
cpu
crypto
ddr
demo dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
dfu
dma
fpga
gpio Merge git://git.denx.de/u-boot-dm 2017-02-08 16:24:44 -05:00
hwmon
i2c fsl_i2c.c: Fix warning on gcc-6.x 2017-02-17 14:15:12 -05:00
input dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
led dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
mailbox dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
memory
misc cros_ec: i2c: Add support for version 3 of the EC protocol 2017-02-08 06:12:16 -07:00
mmc omap_hsmmc.c: Fix build warning on non-omap3 2017-02-09 13:41:28 -05:00
mtd mtd: nand: build MXS driver for MX7 as well 2017-02-19 16:20:28 +01:00
net net: zynq_gem: Fix masking of supported phydev features 2017-03-07 11:27:33 -06:00
pch
pci dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
pcmcia
phy/marvell dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
pinctrl pinctrl: uniphier: support pin configuration 2017-02-23 08:37:56 +09:00
power sunxi: power: axp809.c: Fix aldo1-2 being disabled for mvolt != 0 2017-03-09 11:26:02 +09:00
pwm pwm: remove unneeded ifdef CONFIG_DM_PWM ... endif 2017-02-08 16:24:26 -05:00
qe
ram
remoteproc dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
reset dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
rtc
serial dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
soc
sound
spi dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
spmi dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
sysreset dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
thermal
timer dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
tpm
twserial
usb usb: gadget: f_dfu: set serial number if serial# is valid 2017-02-26 13:24:30 +01:00
video video: cfb_console: fix 32-bit display on 64-bit architectures 2017-03-07 21:18:23 +01:00
watchdog
Kconfig
Makefile spl: Allow PCH drivers to be used in SPL 2017-02-06 11:38:46 +08:00