summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2016-02-27 19:26:41 +0100
committerTom Rini <trini@konsulko.com>2016-03-15 15:10:47 -0400
commitc5412b084bf95781c54463570f96059a1d99d363 (patch)
tree85b5c729ad05a6132ccedbae3cfdcec8b1a7e542 /board
parent41bccb814285047c7f0da2435c8c3af1c2fd7c5b (diff)
omap3: String-based reboot mode handling
This switches reboot mode handling to a string-based interface, that allows more flexibility to set a common interface with the next generations of OMAP devices. Signed-off-by: Paul Kocialkowski <contact@paulk.fr> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board')
-rw-r--r--board/lge/sniper/sniper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/lge/sniper/sniper.c b/board/lge/sniper/sniper.c
index f093f97e2bc..b2c8e97e341 100644
--- a/board/lge/sniper/sniper.c
+++ b/board/lge/sniper/sniper.c
@@ -109,7 +109,7 @@ int misc_init_r(void)
/* Reboot mode */
- reboot_mode[0] = omap_reboot_mode();
+ omap_reboot_mode(reboot_mode, sizeof(reboot_mode));
if (keys[0])
reboot_mode[0] = 'r';
@@ -159,12 +159,12 @@ void get_board_serial(struct tag_serialnr *serialnr)
void reset_misc(void)
{
- omap_reboot_mode_store('u');
+ omap_reboot_mode_store("u");
}
int fb_set_reboot_flag(void)
{
- return omap_reboot_mode_store('b');
+ return omap_reboot_mode_store("b");
}
#ifndef CONFIG_SPL_BUILD