Files
u-boot/board
Chris Morgan 52bcc4f053 sunxi: Add option to prevent booting on power plug-in
For sunxi boards with the AXP209, AXP221, AXP809, and AXP818 PMICs
(plus possibly others, I only confirmed the datasheets for these),
it is sometimes desirable to not boot whenever the device is
plugged in. An example would be when using the NTC CHIP inside a
PocketCHIP.
This provides a configurable option to check if bit 0 of
register 0 of the PMIC says it was powered because of a power button
press (0) or a plug-in event (1). 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.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
[Andre: reword to speak of boot, remove #ifdefs]
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2022-01-30 01:25:00 +00:00
..
2021-09-04 12:26:02 -04:00
2022-01-10 14:01:57 -05:00
2021-11-07 18:36:55 +01:00
2022-01-19 18:11:34 +01:00
2021-09-07 16:22:30 -04:00
2022-01-10 14:01:57 -05:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2021-10-27 16:38:26 -04:00
2021-09-04 11:42:41 -04:00
2021-09-07 16:22:30 -04:00
2021-09-07 16:22:30 -04:00
2021-06-17 09:40:58 +08:00
2022-01-19 18:11:34 +01:00
2021-10-20 17:54:31 +02:00
2022-01-08 11:16:03 -05:00