diff options
author | Samuel Holland <samuel@sholland.org> | 2021-10-25 05:00:10 +0300 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2021-10-25 16:51:03 +0300 |
commit | 95d9ffd7b678414cc79365c8d2be0d12c326a7ad (patch) | |
tree | 221402462b6719441d6aa190d0fab404999b5481 /drivers/power/pmic/Kconfig | |
parent | 830e161eb4e9dbd3e9eb20ad6a3255eb8b4ed3c4 (diff) | |
download | u-boot-95d9ffd7b678414cc79365c8d2be0d12c326a7ad.tar.xz |
power: pmic: axp: Implement poweroff via sysreset
The AXP PMICs have the ability to power off the system. The existing
code for this is duplicated for each PMIC variant, and uses the legacy
non-DM "pmic_bus" interface. When SYSRESET is enabled, this can all be
replaced with a sysreset device using the DM_PMIC interface.
Since the trigger bit is the same on all PMIC variants, use the register
definitions from the oldest supported 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/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/pmic/Kconfig b/drivers/power/pmic/Kconfig index 92e2ace279..b9fda428df 100644 --- a/drivers/power/pmic/Kconfig +++ b/drivers/power/pmic/Kconfig @@ -66,6 +66,8 @@ config PMIC_ACT8846 config PMIC_AXP bool "Enable Driver Model for X-Powers AXP PMICs" depends on DM_I2C + select SYSRESET_CMD_POWEROFF if SYSRESET && CMD_POWEROFF + imply CMD_POWEROFF if SYSRESET help This config enables driver-model PMIC uclass features for X-Powers AXP152, AXP2xx, and AXP8xx PMICs. |