diff mbox

[U-Boot,10/12] sniper: Power button reset support

Message ID 1437398238-27912-11-git-send-email-contact@paulk.fr
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Paul Kocialkowski July 20, 2015, 1:17 p.m. UTC
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(+)

Comments

Tom Rini Aug. 4, 2015, 2:08 a.m. UTC | #1
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>
Tom Rini Aug. 13, 2015, 1:18 p.m. UTC | #2
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 mbox

Patch

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();