![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0-only 0002 /* 0003 * omap3-restart.c - Code common to all OMAP3xxx machines. 0004 * 0005 * Copyright (C) 2009, 2012 Texas Instruments 0006 * Copyright (C) 2010 Nokia Corporation 0007 * Tony Lindgren <tony@atomide.com> 0008 * Santosh Shilimkar <santosh.shilimkar@ti.com> 0009 */ 0010 #include <linux/kernel.h> 0011 #include <linux/init.h> 0012 #include <linux/reboot.h> 0013 0014 #include "common.h" 0015 #include "control.h" 0016 #include "prm.h" 0017 0018 /* Global address base setup code */ 0019 0020 /** 0021 * omap3xxx_restart - trigger a software restart of the SoC 0022 * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c 0023 * @cmd: passed from the userspace program rebooting the system (if provided) 0024 * 0025 * Resets the SoC. For @cmd, see the 'reboot' syscall in 0026 * kernel/sys.c. No return value. 0027 */ 0028 void omap3xxx_restart(enum reboot_mode mode, const char *cmd) 0029 { 0030 omap3_ctrl_write_boot_mode((cmd ? (u8)*cmd : 0)); 0031 omap_prm_reset_system(); 0032 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |