mbox series

[v2,0/2] Rockchip: Add option to prevent boot on plug-in

Message ID 20220527181820.24948-1-macroalpha82@gmail.com
Headers show
Series Rockchip: Add option to prevent boot on plug-in | expand

Message

Chris Morgan May 27, 2022, 6:18 p.m. UTC
From: Chris Morgan <macromorgan@hotmail.com>

Sometimes it is desirable to prevent a board from automatically booting
as soon as the power cable is plugged in. For boards with an rk8xx
PMIC, (excluding the rk808) we can actually query the power up source.

Changes from V1:
 - Moved a comment as requested to be above a function.
 - Removed unneeded variable of "plug_in".

Chris Morgan (2):
  power: pmic: rk8xx: Support sysreset shutdown method
  rockchip: Add option to prevent booting on power plug-in

 arch/arm/mach-rockchip/Kconfig | 10 ++++
 drivers/power/pmic/rk8xx.c     | 84 +++++++++++++++++++++++++++++++++-
 include/power/rk8xx_pmic.h     |  3 ++
 3 files changed, 96 insertions(+), 1 deletion(-)