Message ID | 1437398238-27912-11-git-send-email-contact@paulk.fr |
---|---|
State | Accepted |
Delegated to: | Tom Rini |
Headers | show |
On Mon, Jul 20, 2015 at 03:17:16PM +0200, Paul Kocialkowski wrote: > This adds support for resetting the device on a long press on the power button. > > Signed-off-by: Paul Kocialkowski <contact@paulk.fr> Reviewed-by: Tom Rini <trini@konsulko.com>
On Mon, Jul 20, 2015 at 03:17:16PM +0200, Paul Kocialkowski wrote: > This adds support for resetting the device on a long press on the power button. > > Signed-off-by: Paul Kocialkowski <contact@paulk.fr> > Reviewed-by: Tom Rini <trini@konsulko.com> Applied to u-boot/master, thanks!
diff --git a/board/lge/sniper/sniper.c b/board/lge/sniper/sniper.c index 2bfc9c5..97c2ed0 100644 --- a/board/lge/sniper/sniper.c +++ b/board/lge/sniper/sniper.c @@ -95,6 +95,10 @@ int misc_init_r(void) char reboot_mode[2] = { 0 }; u32 dieid[4] = { 0 }; + /* Power button reset init */ + + twl4030_power_reset_init(); + /* Reboot mode */ reboot_mode[0] = omap_reboot_mode();
This adds support for resetting the device on a long press on the power button. Signed-off-by: Paul Kocialkowski <contact@paulk.fr> --- board/lge/sniper/sniper.c | 4 ++++ 1 file changed, 4 insertions(+)