1 // SPDX-License-Identifier: GPL-2.0-only
3 * omap4-restart.c - Common to OMAP4 and OMAP5
6 #include <linux/types.h>
7 #include <linux/reboot.h>
12 * omap44xx_restart - trigger a software restart of the SoC
13 * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c
14 * @cmd: passed from the userspace program rebooting the system (if provided)
16 * Resets the SoC. For @cmd, see the 'reboot' syscall in
17 * kernel/sys.c. No return value.
19 void omap44xx_restart(enum reboot_mode mode
, const char *cmd
)
21 /* XXX Should save 'cmd' into scratchpad for use after reboot */
22 omap_prm_reset_system();