USB: serial: option: reimplement interface masking
[linux/fpc-iii.git] / arch / arm / mach-omap2 / omap4-restart.c
blobe17136a50e271702863e640cf4d79c99fad688ec
1 /*
2 * omap4-restart.c - Common to OMAP4 and OMAP5
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 */
10 #include <linux/types.h>
11 #include <linux/reboot.h>
12 #include "common.h"
13 #include "prm.h"
15 /**
16 * omap44xx_restart - trigger a software restart of the SoC
17 * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c
18 * @cmd: passed from the userspace program rebooting the system (if provided)
20 * Resets the SoC. For @cmd, see the 'reboot' syscall in
21 * kernel/sys.c. No return value.
23 void omap44xx_restart(enum reboot_mode mode, const char *cmd)
25 /* XXX Should save 'cmd' into scratchpad for use after reboot */
26 omap_prm_reset_system();