1 // SPDX-License-Identifier: GPL-2.0-only 1 2 /* 3 * am33xx-restart.c - Code common to all AM33x 4 */ 5 #include <linux/kernel.h> 6 #include <linux/reboot.h> 7 8 #include "common.h" 9 #include "prm.h" 10 11 /** 12 * am33xx_restart - trigger a software restart 13 * @mode: the "reboot mode", see arch/arm/kern 14 * @cmd: passed from the userspace program reb 15 * 16 * Resets the SoC. For @cmd, see the 'reboot' 17 * kernel/sys.c. No return value. 18 */ 19 void am33xx_restart(enum reboot_mode mode, con 20 { 21 /* TODO: Handle cmd if necessary */ 22 prm_reboot_mode = mode; 23 24 omap_prm_reset_system(); 25 } 26
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.