Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * am33xx-restart.c - Code common to all AM33xx machines.
0004  */
0005 #include <linux/kernel.h>
0006 #include <linux/reboot.h>
0007 
0008 #include "common.h"
0009 #include "prm.h"
0010 
0011 /**
0012  * am3xx_restart - trigger a software restart of the SoC
0013  * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c
0014  * @cmd: passed from the userspace program rebooting the system (if provided)
0015  *
0016  * Resets the SoC.  For @cmd, see the 'reboot' syscall in
0017  * kernel/sys.c.  No return value.
0018  */
0019 void am33xx_restart(enum reboot_mode mode, const char *cmd)
0020 {
0021     /* TODO: Handle mode and cmd if necessary */
0022 
0023     omap_prm_reset_system();
0024 }