sunxi: Add option to prevent boot on plug-in
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest2 patches 2 repliesIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | pmic: axp: define ALDO_IN startup bitinclude/ include/ include/ +3 more | +13 | 0 replies | |
| 2/2 | sunxi: Add option to prevent booting on power plug-inarch/ board/ | +21 | 2 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Chris Morgan |
|---|---|
| 1/2 | |
| 2/2 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] sunxi: Add option to prevent boot on plug-in
Sometimes it is desirable to prevent a board from automatically booting as soon as the power cable is plugged in. For boards with an AXP PMIC, we can actually query the power up source.
Add a AXP_DISABLE_BOOT_ON_POWERON Kconfig option to enable this behaviour.
Patch 1 prepares the PMIC header files to export the same symbol, which Chris' patch 2 then uses to do the actual work.
I rearranged Chris' code to get rid of the nasty #ifdef's. This function is already a "good" example of why #ifdefs are bad, we don't need to add to that. I will try to clean that up further, but for now this doesn't need to block this patch.
Cheers,
Andre.
Andre Przywara (1):
pmic: axp: define ALDO_IN startup bit
Chris Morgan (1):
sunxi: Add option to prevent booting on power plug-in
arch/arm/mach-sunxi/Kconfig | 10 ++++++++++ board/sunxi/board.c | 11 +++++++++++ include/axp152.h | 2 ++ include/axp209.h | 3 ++- include/axp221.h | 3 ++- include/axp305.h | 3 +++ include/axp809.h | 3 ++- include/axp818.h | 3 ++- 8 files changed, 34 insertions(+), 4 deletions(-)
Signature · 1 line
2.25.1