diff options
Diffstat (limited to 'arch/arm/mach-omap2/omap4-restart.c')
-rw-r--r-- | arch/arm/mach-omap2/omap4-restart.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap4-restart.c b/arch/arm/mach-omap2/omap4-restart.c new file mode 100644 index 000000000000..f90e02e11898 --- /dev/null +++ b/arch/arm/mach-omap2/omap4-restart.c | |||
@@ -0,0 +1,27 @@ | |||
1 | /* | ||
2 | * omap4-restart.c - Common to OMAP4 and OMAP5 | ||
3 | * | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | */ | ||
9 | |||
10 | #include <linux/types.h> | ||
11 | #include "prminst44xx.h" | ||
12 | |||
13 | /** | ||
14 | * omap44xx_restart - trigger a software restart of the SoC | ||
15 | * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c | ||
16 | * @cmd: passed from the userspace program rebooting the system (if provided) | ||
17 | * | ||
18 | * Resets the SoC. For @cmd, see the 'reboot' syscall in | ||
19 | * kernel/sys.c. No return value. | ||
20 | */ | ||
21 | void omap44xx_restart(char mode, const char *cmd) | ||
22 | { | ||
23 | /* XXX Should save 'cmd' into scratchpad for use after reboot */ | ||
24 | omap4_prminst_global_warm_sw_reset(); /* never returns */ | ||
25 | while (1) | ||
26 | ; | ||
27 | } | ||