![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0-only 0002 /* 0003 * omap4-restart.c - Common to OMAP4 and OMAP5 0004 */ 0005 0006 #include <linux/types.h> 0007 #include <linux/reboot.h> 0008 #include "common.h" 0009 #include "prm.h" 0010 0011 /** 0012 * omap44xx_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 omap44xx_restart(enum reboot_mode mode, const char *cmd) 0020 { 0021 /* XXX Should save 'cmd' into scratchpad for use after reboot */ 0022 omap_prm_reset_system(); 0023 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |