[U-Boot] [PATCH 4/4] sniper: Clear reboot mode garbage on cold reset
Paul Kocialkowski
contact at paulk.fr
Sat Feb 27 19:26:44 CET 2016
Reboot mode garbage is found on cold reset and might be seen as valid on the
next warm reset, thus it has to be cleared on cold reset.
Signed-off-by: Paul Kocialkowski <contact at paulk.fr>
---
board/lge/sniper/sniper.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/board/lge/sniper/sniper.c b/board/lge/sniper/sniper.c
index 6726866..29a7045 100644
--- a/board/lge/sniper/sniper.c
+++ b/board/lge/sniper/sniper.c
@@ -122,6 +122,9 @@ int misc_init_r(void)
omap_reboot_mode_clear();
} else {
+ /* Reboot mode garbage may still be valid, so clear it. */
+ omap_reboot_mode_clear();
+
/*
* When not rebooting, valid power on reasons are either the
* power button, charger plug or USB plug.
--
2.6.4
More information about the U-Boot
mailing list