Commit Graph

4 Commits

Author SHA1 Message Date
Dima Zavin
e60b38622e input: keyreset: add support for reset after timeout
If a timeout is requested, a delayed work item will be
scheduled to restart the device. If the keys are released
before the timeout expires, the reset is aborted.

As expected, the reset_fn can be used to reset the device
after the timeout.

Bug: 7344361
Change-Id: I1d77cdb3dcc63f579b1250506f0a30de1e033d67
Signed-off-by: Dima Zavin <dima@android.com>
2013-03-04 12:47:30 -08:00
Dima Zavin
0d90c6ea86 input: keyreset: move init to subsys to be ready early
Bug: 7344361
Change-Id: I3564a354fddd69f352704c9e819ea4538096264a
Signed-off-by: Dima Zavin <dima@android.com>
2013-03-04 12:47:29 -08:00
Dima Zavin
2768c87ae4 input: keyreset: process pressed keys at init
Bug: 7344361
Change-Id: I92c9ec8a7d2882f280af9a5807a6052e54ecc16a
Signed-off-by: Dima Zavin <dima@android.com>
2013-03-04 12:47:29 -08:00
Arve Hjønnevåg
42e58cb244 input: Add keyreset driver.
Add a platform device in the board file to specify a reset key-combo.
The first time the key-combo is detected a work function that syncs
the filesystems is scheduled. If all the keys are released and then
pressed again, it calls panic. Reboot on panic should be set for
this to work.

Change-Id: I9d54283ca1fba45e4b1ae1a407524cdda8171143
Signed-off-by: Arve Hjønnevåg <arve@android.com>
2012-04-09 13:53:16 -07:00