diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-09-30 15:12:30 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-10-20 18:40:27 +0200 |
commit | 1df44814f59ed487849bebc5dec0ad605ff226db (patch) | |
tree | 04d911d750927268238f6a1d4db07390115d9a8d /drivers | |
parent | 70ac9295e3d10b0f307dea04e994b0681d87ef60 (diff) | |
download | u-boot-imx-1df44814f59ed487849bebc5dec0ad605ff226db.zip u-boot-imx-1df44814f59ed487849bebc5dec0ad605ff226db.tar.gz u-boot-imx-1df44814f59ed487849bebc5dec0ad605ff226db.tar.bz2 |
sunxi: Kconfig-ify CONFIG_AXP152_POWER and _AXP209_POWER
Kconfig-ify CONFIG_AXP152_POWER and _AXP209_POWER settings, removing
them from CONFIG_SYS_EXTRA_OPTIONS.
Note that sun5i boards can have either an AXP209 or an AXP152 pmic, the
Kconfig default is AXP209, boards with an AXP152 must explicitly select
this. Likewise boards without a pmic must explicitly select SUNXI_NO_PMIC
in their defconfig.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/Kconfig | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig index df5e373..37a41a2 100644 --- a/drivers/power/Kconfig +++ b/drivers/power/Kconfig @@ -4,13 +4,39 @@ source "drivers/power/pmic/Kconfig" source "drivers/power/regulator/Kconfig" +choice + prompt "Select Sunxi PMIC Variant" + depends on ARCH_SUNXI + default AXP209_POWER if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I + default AXP221_POWER if MACH_SUN6I || MACH_SUN8I + +config SUNXI_NO_PMIC + boolean "board without a pmic" + ---help--- + Select this for boards which do not use a PMIC. + +config AXP152_POWER + boolean "axp152 pmic support" + depends on MACH_SUN5I + ---help--- + Select this to enable support for the axp152 pmic found on most + A10s boards. + +config AXP209_POWER + boolean "axp209 pmic support" + depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I + ---help--- + Select this to enable support for the axp209 pmic found on most + A10, A13 and A20 boards. + config AXP221_POWER boolean "axp221 / axp223 pmic support" depends on MACH_SUN6I || MACH_SUN8I - default y ---help--- - Say y here to enable support for the axp221 / axp223 pmic found on most - sun6i (A31) / sun8i (A23) boards. + Select this to enable support for the axp221/axp223 pmic found on most + A23 and A31 boards. + +endchoice config AXP221_DCDC1_VOLT int "axp221 dcdc1 voltage" |