1*d2912cb1SThomas Gleixner // SPDX-License-Identifier: GPL-2.0-only 214e067c1SJean-Sebastien A. Beaudry /* 314e067c1SJean-Sebastien A. Beaudry * am33xx-restart.c - Code common to all AM33xx machines. 414e067c1SJean-Sebastien A. Beaudry */ 514e067c1SJean-Sebastien A. Beaudry #include <linux/kernel.h> 67b6d864bSRobin Holt #include <linux/reboot.h> 714e067c1SJean-Sebastien A. Beaudry 814e067c1SJean-Sebastien A. Beaudry #include "common.h" 961c8621eSTero Kristo #include "prm.h" 1014e067c1SJean-Sebastien A. Beaudry 1114e067c1SJean-Sebastien A. Beaudry /** 1214e067c1SJean-Sebastien A. Beaudry * am3xx_restart - trigger a software restart of the SoC 1314e067c1SJean-Sebastien A. Beaudry * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c 1414e067c1SJean-Sebastien A. Beaudry * @cmd: passed from the userspace program rebooting the system (if provided) 1514e067c1SJean-Sebastien A. Beaudry * 1614e067c1SJean-Sebastien A. Beaudry * Resets the SoC. For @cmd, see the 'reboot' syscall in 1714e067c1SJean-Sebastien A. Beaudry * kernel/sys.c. No return value. 1814e067c1SJean-Sebastien A. Beaudry */ am33xx_restart(enum reboot_mode mode,const char * cmd)197b6d864bSRobin Holtvoid am33xx_restart(enum reboot_mode mode, const char *cmd) 2014e067c1SJean-Sebastien A. Beaudry { 2114e067c1SJean-Sebastien A. Beaudry /* TODO: Handle mode and cmd if necessary */ 2214e067c1SJean-Sebastien A. Beaudry 2361c8621eSTero Kristo omap_prm_reset_system(); 2414e067c1SJean-Sebastien A. Beaudry } 25