Linux 5.7.6
[linux/fpc-iii.git] / arch / arm / mach-omap2 / am33xx-restart.c
blobef2f18a56b658fb2ab183c76300ef2a02568dc6e
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * am33xx-restart.c - Code common to all AM33xx machines.
4 */
5 #include <linux/kernel.h>
6 #include <linux/reboot.h>
8 #include "common.h"
9 #include "prm.h"
11 /**
12 * am3xx_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 am33xx_restart(enum reboot_mode mode, const char *cmd)
21 /* TODO: Handle mode and cmd if necessary */
23 omap_prm_reset_system();