blob: a99e7f7fb5bec2a44920d3c34c5ea327a08f57f1 [file] [log] [blame]
Afzal Mohammedab4c2e12013-05-27 20:05:19 +05301/*
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>
Robin Holt7b6d8642013-07-08 16:01:40 -070011#include <linux/reboot.h>
Tero Kristo61c86212014-10-27 08:39:26 -070012#include "prm.h"
Afzal Mohammedab4c2e12013-05-27 20:05:19 +053013
14/**
15 * omap44xx_restart - trigger a software restart of the SoC
16 * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c
17 * @cmd: passed from the userspace program rebooting the system (if provided)
18 *
19 * Resets the SoC. For @cmd, see the 'reboot' syscall in
20 * kernel/sys.c. No return value.
21 */
Robin Holt7b6d8642013-07-08 16:01:40 -070022void omap44xx_restart(enum reboot_mode mode, const char *cmd)
Afzal Mohammedab4c2e12013-05-27 20:05:19 +053023{
24 /* XXX Should save 'cmd' into scratchpad for use after reboot */
Tero Kristo61c86212014-10-27 08:39:26 -070025 omap_prm_reset_system();
Afzal Mohammedab4c2e12013-05-27 20:05:19 +053026}