blob: 56f621314fe9972c97eda159d96a25470a82d34f [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001// SPDX-License-Identifier: GPL-2.0-only
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * omap4-restart.c - Common to OMAP4 and OMAP5
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00004 */
5
6#include <linux/types.h>
7#include <linux/reboot.h>
8#include "common.h"
9#include "prm.h"
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 */
19void omap44xx_restart(enum reboot_mode mode, const char *cmd)
20{
21 /* XXX Should save 'cmd' into scratchpad for use after reboot */
22 omap_prm_reset_system();
23}