Merge tag 'gpio-v4.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux...
[deliverable/linux.git] / arch / arm / mach-omap2 / omap4-restart.c
CommitLineData
ab4c2e1b
AM
1/*
2 * omap4-restart.c - Common to OMAP4 and OMAP5
3 *
4 *
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 */
9
10#include <linux/types.h>
7b6d864b 11#include <linux/reboot.h>
9e5d46b0 12#include "common.h"
61c8621e 13#include "prm.h"
ab4c2e1b
AM
14
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)
19 *
20 * Resets the SoC. For @cmd, see the 'reboot' syscall in
21 * kernel/sys.c. No return value.
22 */
7b6d864b 23void omap44xx_restart(enum reboot_mode mode, const char *cmd)
ab4c2e1b
AM
24{
25 /* XXX Should save 'cmd' into scratchpad for use after reboot */
61c8621e 26 omap_prm_reset_system();
ab4c2e1b 27}
This page took 0.175593 seconds and 5 git commands to generate.