Loading...
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * omap4-restart.c - Common to OMAP4 and OMAP5
4 */
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}
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>
11#include <linux/reboot.h>
12#include "prminst44xx.h"
13
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 */
22void omap44xx_restart(enum reboot_mode mode, const char *cmd)
23{
24 /* XXX Should save 'cmd' into scratchpad for use after reboot */
25 omap4_prminst_global_warm_sw_reset(); /* never returns */
26 while (1)
27 ;
28}