diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-12-13 13:20:09 (GMT) |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-01-14 13:56:37 (GMT) |
commit | d3a96f7a688c63883ed135518a8757b8c57f1f7b (patch) | |
tree | 9a473be112daf63aee8740a650c8585d2beabb30 /board/sunxi/board.c | |
parent | 50e0d5e60b0a4c2c9de5ba332be1c36a31d728d3 (diff) | |
download | u-boot-d3a96f7a688c63883ed135518a8757b8c57f1f7b.tar.xz |
sunxi: axp221: Disable dcdc4 on sun8i (A23)
dcdc4 is not used on sun8i, disable it.
While at it also add comments to the other fixed voltages to document what
they are used for.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'board/sunxi/board.c')
-rw-r--r-- | board/sunxi/board.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 5bf19b7..7d6d075 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -176,10 +176,14 @@ void sunxi_board_init(void) #ifdef CONFIG_AXP221_POWER power_failed = axp221_init(); power_failed |= axp221_set_dcdc1(CONFIG_AXP221_DCDC1_VOLT); - power_failed |= axp221_set_dcdc2(1200); - power_failed |= axp221_set_dcdc3(1200); - power_failed |= axp221_set_dcdc4(1200); - power_failed |= axp221_set_dcdc5(1500); + power_failed |= axp221_set_dcdc2(1200); /* A31:VDD-GPU, A23:VDD-SYS */ + power_failed |= axp221_set_dcdc3(1200); /* VDD-CPU */ +#ifdef CONFIG_MACH_SUN6I + power_failed |= axp221_set_dcdc4(1200); /* A31:VDD-SYS */ +#else + power_failed |= axp221_set_dcdc4(0); /* A23:unused */ +#endif + power_failed |= axp221_set_dcdc5(1500); /* VCC-DRAM */ power_failed |= axp221_set_dldo1(CONFIG_AXP221_DLDO1_VOLT); power_failed |= axp221_set_dldo4(CONFIG_AXP221_DLDO4_VOLT); power_failed |= axp221_set_aldo1(CONFIG_AXP221_ALDO1_VOLT); |