diff options
author | Chen-Yu Tsai <wens@csie.org> | 2016-01-12 14:42:40 +0800 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2016-01-26 16:20:05 +0100 |
commit | f3c5045a95e0b9f164178bbf8de98b9adf3b099e (patch) | |
tree | 9e9c2abc4245f4236f42ea709a8875d2e9036c6b /board | |
parent | f7b4fff3f08e75c58f1819e8e7ca68af8afa61c2 (diff) | |
download | u-boot-imx-f3c5045a95e0b9f164178bbf8de98b9adf3b099e.zip u-boot-imx-f3c5045a95e0b9f164178bbf8de98b9adf3b099e.tar.gz u-boot-imx-f3c5045a95e0b9f164178bbf8de98b9adf3b099e.tar.bz2 |
sunxi: power: axp818: Enable support for ALDOs
Previously, AXP818 ALDO support was partially added to Kconfig, but
never enabled in the board file, nor properly set or configured in
Kconfig. The boards continue to work because the AXP818 is designed
to pair with the A83T/H8, and the default voltages match the reference
design's requirements.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/sunxi/board.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 958f5c5..420481a 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -452,20 +452,18 @@ void sunxi_board_init(void) power_failed |= axp_set_dcdc5(CONFIG_AXP_DCDC5_VOLT); #endif -#ifdef CONFIG_AXP221_POWER +#if defined CONFIG_AXP221_POWER || defined CONFIG_AXP818_POWER power_failed |= axp_set_aldo1(CONFIG_AXP_ALDO1_VOLT); #endif -#ifndef CONFIG_AXP818_POWER power_failed |= axp_set_aldo2(CONFIG_AXP_ALDO2_VOLT); -#endif -#if !defined(CONFIG_AXP152_POWER) && !defined(CONFIG_AXP818_POWER) +#if !defined(CONFIG_AXP152_POWER) power_failed |= axp_set_aldo3(CONFIG_AXP_ALDO3_VOLT); #endif #ifdef CONFIG_AXP209_POWER power_failed |= axp_set_aldo4(CONFIG_AXP_ALDO4_VOLT); #endif -#ifdef CONFIG_AXP221_POWER +#if defined(CONFIG_AXP221_POWER) || defined(CONFIG_AXP818_POWER) power_failed |= axp_set_dldo(1, CONFIG_AXP_DLDO1_VOLT); power_failed |= axp_set_dldo(2, CONFIG_AXP_DLDO2_VOLT); power_failed |= axp_set_dldo(3, CONFIG_AXP_DLDO3_VOLT); |