]> git.baikalelectronics.ru Git - uboot.git/commit
rockchip: Add option to prevent booting on power plug-in
authorChris Morgan <macromorgan@hotmail.com>
Fri, 27 May 2022 18:18:20 +0000 (13:18 -0500)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 29 Jun 2022 03:42:10 +0000 (11:42 +0800)
commit30010109d74c2af3f5fbfb8ae53480aecf20b96d
tree4d2325fd71c45dd00d82c50d8fcb3f007f783ca5
parent2d8446b70981caff1875c093b3148d7aa228eb4c
rockchip: Add option to prevent booting on power plug-in

For Rockchip boards with the all rk8xx series PMICs (excluding the
rk808), it is sometimes desirable to not boot whenever the device is
plugged in. An example would be for the Odroid Go Advance.

This provides a configurable option to check the PMIC says it was
powered because of a plug-in event. If the value is 1 and this option
is selected, the device shuts down shortly after printing a message
to console stating the reason why it's shutting down. Powering up the
board with the power button is not affected.

This patch parallels the work done in the following patch series:
https://lore.kernel.org/u-boot/20220121133732.2397273-1-andre.przywara@arm.com/

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
arch/arm/mach-rockchip/Kconfig
drivers/power/pmic/rk8xx.c
include/power/rk8xx_pmic.h