Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso...
[linux-block.git] / arch / arm / mach-omap2 / omap4-restart.c
CommitLineData
d2912cb1 1// SPDX-License-Identifier: GPL-2.0-only
ab4c2e1b
AM
2/*
3 * omap4-restart.c - Common to OMAP4 and OMAP5
ab4c2e1b
AM
4 */
5
6#include <linux/types.h>
7b6d864b 7#include <linux/reboot.h>
9e5d46b0 8#include "common.h"
61c8621e 9#include "prm.h"
ab4c2e1b
AM
10
11/**
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)
15 *
16 * Resets the SoC. For @cmd, see the 'reboot' syscall in
17 * kernel/sys.c. No return value.
18 */
7b6d864b 19void omap44xx_restart(enum reboot_mode mode, const char *cmd)
ab4c2e1b
AM
20{
21 /* XXX Should save 'cmd' into scratchpad for use after reboot */
61c8621e 22 omap_prm_reset_system();
ab4c2e1b 23}