]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sunxi: axp221: Allow specifying dcdc2 voltage via Kconfig
authorHans de Goede <hdegoede@redhat.com>
Fri, 14 Aug 2015 14:19:34 +0000 (16:19 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 10:19:12 +0000 (12:19 +0200)
Allow specifying the axp221 dcdc2 voltage via Kconfig, this is necessary
because on some boards the 1.2V default does not work reliable.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
board/sunxi/board.c
drivers/power/Kconfig

index f85e825891bc0dbf8009d8f77c37281917f699a9..680523ac63a24b3628a1d5f87a4ce1a05da610c3 100644 (file)
@@ -437,7 +437,7 @@ 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); /* A31:VDD-GPU, A23:VDD-SYS */
+       power_failed |= axp221_set_dcdc2(CONFIG_AXP221_DCDC2_VOLT);
        power_failed |= axp221_set_dcdc3(1200); /* VDD-CPU */
 #ifdef CONFIG_MACH_SUN6I
        power_failed |= axp221_set_dcdc4(1200); /* A31:VDD-SYS */
index 23cdd714ae6aac75424c0151cba43902362e69b8..df5e3734b05f20e8ff9db1c83dea2aad3a41fe0f 100644 (file)
@@ -22,6 +22,15 @@ config AXP221_DCDC1_VOLT
        things like GPIO-s, sdcard interfaces, etc. On most boards this is
        undervolted to 3.0V to safe battery.
 
+config AXP221_DCDC2_VOLT
+       int "axp221 dcdc2 voltage"
+       depends on AXP221_POWER
+       default 1200
+       ---help---
+       Set the voltage (mV) to program the axp221 dcdc2 at, set to 0 to
+       disable dcdc2. On A31 boards this is typically used for VDD-GPU,
+       on A23/A33 for VDD-SYS, this should normally be set to 1.2V.
+
 config AXP221_DLDO1_VOLT
        int "axp221 dldo1 voltage"
        depends on AXP221_POWER