summaryrefslogtreecommitdiff
path: root/drivers/power/pmic/Kconfig
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2021-10-08 08:17:16 +0300
committerAndre Przywara <andre.przywara@arm.com>2021-10-12 11:41:57 +0300
commit526c4f2e43bb61b849817ed069607dd2c475a17c (patch)
tree3b73982beb1d4a51366ca5ef4db5746c61648639 /drivers/power/pmic/Kconfig
parent3fd90e43d9238d5b24f1d71a5eadb5ac2b51e4a8 (diff)
downloadu-boot-526c4f2e43bb61b849817ed069607dd2c475a17c.tar.xz
power: pmic: Add a driver for X-Powers AXP PMICs
These PMICs provide some combination of battery charger, fuel gauge, GPIOs, regulators, and VBUS routing. These functions are represented as child nodes in the device tree. Add the minimal driver needed to probe these child devices and provide the DM_PMIC ops. Enable the driver by default for SoCs that normally pair with a PMIC. Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'drivers/power/pmic/Kconfig')
-rw-r--r--drivers/power/pmic/Kconfig14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/power/pmic/Kconfig b/drivers/power/pmic/Kconfig
index e8a04325f8..fcb517f104 100644
--- a/drivers/power/pmic/Kconfig
+++ b/drivers/power/pmic/Kconfig
@@ -63,6 +63,20 @@ config PMIC_ACT8846
functions. It uses an I2C interface and is designed for use with
tablets and smartphones.
+config PMIC_AXP
+ bool "Enable Driver Model for X-Powers AXP PMICs"
+ depends on DM_I2C
+ help
+ This config enables driver-model PMIC uclass features for
+ X-Powers AXP152, AXP2xx, and AXP8xx PMICs.
+
+config SPL_PMIC_AXP
+ bool "Enable Driver Model for X-Powers AXP PMICs in SPL"
+ depends on SPL_DM_I2C && SPL_DM_PMIC
+ help
+ This config enables driver-model PMIC uclass features in the SPL for
+ X-Powers AXP152, AXP2xx, and AXP8xx PMICs.
+
config DM_PMIC_DA9063
bool "Enable Driver Model for the Dialog DA9063 PMIC"
help