blob: ef2f18a56b658fb2ab183c76300ef2a02568dc6e [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001// SPDX-License-Identifier: GPL-2.0-only
Jean-Sebastien A. Beaudry14e067c2013-01-23 16:02:40 -05002/*
3 * am33xx-restart.c - Code common to all AM33xx machines.
Jean-Sebastien A. Beaudry14e067c2013-01-23 16:02:40 -05004 */
5#include <linux/kernel.h>
Robin Holt7b6d8642013-07-08 16:01:40 -07006#include <linux/reboot.h>
Jean-Sebastien A. Beaudry14e067c2013-01-23 16:02:40 -05007
8#include "common.h"
Tero Kristo61c86212014-10-27 08:39:26 -07009#include "prm.h"
Jean-Sebastien A. Beaudry14e067c2013-01-23 16:02:40 -050010
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)
15 *
16 * Resets the SoC. For @cmd, see the 'reboot' syscall in
17 * kernel/sys.c. No return value.
18 */
Robin Holt7b6d8642013-07-08 16:01:40 -070019void am33xx_restart(enum reboot_mode mode, const char *cmd)
Jean-Sebastien A. Beaudry14e067c2013-01-23 16:02:40 -050020{
21 /* TODO: Handle mode and cmd if necessary */
22
Tero Kristo61c86212014-10-27 08:39:26 -070023 omap_prm_reset_system();
Jean-Sebastien A. Beaudry14e067c2013-01-23 16:02:40 -050024}