kc1: Power off when the power on reason is not a valid one

Some power on reasons are not desirable (e.g. too short press on the power
button), battery plug. Thus, power off the device when one of those occurs.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
This commit is contained in:
Paul Kocialkowski
2016-02-27 19:19:14 +01:00
committed by Tom Rini
parent 461484c27e
commit ee85a41525
2 changed files with 22 additions and 0 deletions

View File

@@ -104,6 +104,12 @@
#define CONFIG_TWL6030_POWER
/*
* Input
*/
#define CONFIG_TWL6030_INPUT
/*
* Partitions
*/