Skip to content
Snippets Groups Projects
Commit d3a96f7a authored by Hans de Goede's avatar Hans de Goede
Browse files

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: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>
parent 50e0d5e6
No related branches found
No related tags found
No related merge requests found
...@@ -176,10 +176,14 @@ void sunxi_board_init(void) ...@@ -176,10 +176,14 @@ void sunxi_board_init(void)
#ifdef CONFIG_AXP221_POWER #ifdef CONFIG_AXP221_POWER
power_failed = axp221_init(); power_failed = axp221_init();
power_failed |= axp221_set_dcdc1(CONFIG_AXP221_DCDC1_VOLT); power_failed |= axp221_set_dcdc1(CONFIG_AXP221_DCDC1_VOLT);
power_failed |= axp221_set_dcdc2(1200); power_failed |= axp221_set_dcdc2(1200); /* A31:VDD-GPU, A23:VDD-SYS */
power_failed |= axp221_set_dcdc3(1200); power_failed |= axp221_set_dcdc3(1200); /* VDD-CPU */
power_failed |= axp221_set_dcdc4(1200); #ifdef CONFIG_MACH_SUN6I
power_failed |= axp221_set_dcdc5(1500); 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_dldo1(CONFIG_AXP221_DLDO1_VOLT);
power_failed |= axp221_set_dldo4(CONFIG_AXP221_DLDO4_VOLT); power_failed |= axp221_set_dldo4(CONFIG_AXP221_DLDO4_VOLT);
power_failed |= axp221_set_aldo1(CONFIG_AXP221_ALDO1_VOLT); power_failed |= axp221_set_aldo1(CONFIG_AXP221_ALDO1_VOLT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment