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 bios_emulator: Fix cast for 64-bit compilation 2016-10-11 11:55:33 +08:00
block block: Move ceva driver to DM 2016-12-20 09:15:27 +01:00
bootcount bootcounter_ram: Fix misaligned cache warning 2016-11-28 15:10:34 -05:00
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 cpu: Add get_vendor callback 2016-10-19 09:01:51 +02:00
crypto crypto: Move CONFIG_SYS_FSL_SEC_LE and _BE to Kconfig 2017-01-04 19:40:19 -05:00
ddr ddr: fsl: Merge macro CONFIG_NUM_DDR_CONTROLLERS and CONFIG_SYS_NUM_DDR_CTRLS 2017-01-04 19:40:52 -05:00
demo dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
dfu dfu: align array in dfu_get_dev_type with enum dfu_device_type 2016-11-03 11:55:25 +01:00
dma treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
fpga fpga: zynqmp: Remove empty functions 2017-01-10 10:18:11 +01:00
gpio Merge git://git.denx.de/u-boot-dm 2017-02-08 16:24:44 -05:00
hwmon mailaddr: Update mail address 2016-01-27 15:32:05 +01:00
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 memory: Move TI_AEMIF config to KCONFIG 2016-04-18 17:11:43 -04:00
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 dm: Use dm_scan_fdt_dev() directly where possible 2016-07-27 14:15:54 -06:00
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 powerpc: P1025: Remove macro CONFIG_P1025 2016-11-23 23:42:10 -08:00
ram ram: rename CONFIG_SPL_RAM_SUPPORT to CONFIG_SPL_RAM 2015-08-18 13:46:02 -04:00
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 rtc: pcf2127: Update Kconfig and code style 2017-01-14 16:47:59 -05:00
serial dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
soc Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
sound of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
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 imx: thermal: Kconfig: add MX7 2017-01-02 17:08:25 +01:00
timer dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
tpm lib: tpm: Add command to flush resources 2017-02-01 09:02:57 +01:00
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 imx_watchdog: Do not assert WDOG_B on watchdog init 2016-10-04 12:01:14 +02:00
Kconfig fsl_ddr: Move DDR config options to driver Kconfig 2017-01-04 19:40:41 -05:00
Makefile spl: Allow PCH drivers to be used in SPL 2017-02-06 11:38:46 +08:00