[PATCH 0/4] power: axp: Move poweroff to DM_PMIC/SYSRESET driver

Samuel Holland samuel at sholland.org
Mon Aug 23 01:18:02 CEST 2021


This series replaces the do_poweroff() implementation from the non-DM
AXP PMIC drivers with a sysreset uclass device, if sysreset is providing
its own do_poweroff() definition.

This depends on the following series, which adds the AXP DM_PMIC driver:
https://patchwork.ozlabs.org/project/uboot/list/?series=259089

Congratulations for making it this far! :) If you apply this series,
along with all of the other sysreset and watchdog series I sent this
weekend, and further enable three Kconfig options:
  SYSRESET
  SYSRESET_WATCHDOG
  SYSRESET_WATCHDOG_AUTO
you will have removed exactly one (1) call to pmic_bus_write() from
U-Boot, hopefully without breaking anything else. Once all of these
series land, I will send a patch enabling those options, and we will be
one quarter of the way to removing pmic_bus from U-Boot proper.

Note that because SYSRESET is disabled by default, each of the other
series I sent can be applied independently.


Samuel Holland (4):
  include: axp_pmic: Add missing header guard definition
  include: axp_pmic: Include headers for all variants
  power: axp: Avoid do_poweroff conflict with sysreset
  power: pmic: axp: Implement poweroff via sysreset

 drivers/power/axp152.c     |  2 ++
 drivers/power/axp209.c     |  2 ++
 drivers/power/axp221.c     |  2 ++
 drivers/power/axp305.c     |  2 +-
 drivers/power/axp809.c     |  2 ++
 drivers/power/axp818.c     |  2 ++
 drivers/power/pmic/Kconfig |  2 ++
 drivers/power/pmic/axp.c   | 36 ++++++++++++++++++++++++++++++++++++
 include/axp152.h           |  2 ++
 include/axp209.h           |  2 ++
 include/axp221.h           |  2 ++
 include/axp809.h           |  2 ++
 include/axp818.h           |  2 ++
 include/axp_pmic.h         | 13 +------------
 14 files changed, 60 insertions(+), 13 deletions(-)

-- 
2.31.1



More information about the U-Boot mailing list