X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fsunxi%2Fboard.c;h=7d6d075f145ee93d4e3463544b7ccd3694ec9771;hb=032c6867a2925c95897afe07d1f0678114254cf6;hp=b5dfe958ad82b3461944abb9c59db66ef3273d4c;hpb=cac5b1cc0d6daa0c0a037fd24a87d4db4e0a1456;p=u-boot diff --git a/board/sunxi/board.c b/board/sunxi/board.c index b5dfe958ad..7d6d075f14 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -175,26 +175,20 @@ void sunxi_board_init(void) #endif #ifdef CONFIG_AXP221_POWER power_failed = axp221_init(); - power_failed |= axp221_set_dcdc1(3000); - power_failed |= axp221_set_dcdc2(1200); - power_failed |= axp221_set_dcdc3(1200); - power_failed |= axp221_set_dcdc4(1200); - power_failed |= axp221_set_dcdc5(1500); -#if CONFIG_AXP221_DLDO1_VOLT != -1 + power_failed |= axp221_set_dcdc1(CONFIG_AXP221_DCDC1_VOLT); + 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); -#endif -#if CONFIG_AXP221_DLDO4_VOLT != -1 power_failed |= axp221_set_dldo4(CONFIG_AXP221_DLDO4_VOLT); -#endif -#if CONFIG_AXP221_ALDO1_VOLT != -1 power_failed |= axp221_set_aldo1(CONFIG_AXP221_ALDO1_VOLT); -#endif -#if CONFIG_AXP221_ALDO2_VOLT != -1 power_failed |= axp221_set_aldo2(CONFIG_AXP221_ALDO2_VOLT); -#endif -#if CONFIG_AXP221_ALDO3_VOLT != -1 power_failed |= axp221_set_aldo3(CONFIG_AXP221_ALDO3_VOLT); -#endif #endif printf("DRAM:");