// SPDX-License-Identifier: GPL-2.0-only1/*2* am33xx-restart.c - Code common to all AM33xx machines.3*/4#include <linux/kernel.h>5#include <linux/reboot.h>67#include "common.h"8#include "prm.h"910/**11* am33xx_restart - trigger a software restart of the SoC12* @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c13* @cmd: passed from the userspace program rebooting the system (if provided)14*15* Resets the SoC. For @cmd, see the 'reboot' syscall in16* kernel/sys.c. No return value.17*/18void am33xx_restart(enum reboot_mode mode, const char *cmd)19{20/* TODO: Handle cmd if necessary */21prm_reboot_mode = mode;2223omap_prm_reset_system();24}252627