diff options
| author | Ingo Molnar <mingo@kernel.org> | 2013-01-24 06:47:48 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2013-01-24 06:47:48 -0500 |
| commit | befddb21c845f8fb49e637997891ef97c6a869dc (patch) | |
| tree | 0e7629123184f2dd50291ad6d477b894175f0f26 /arch/arm/mach-omap2/omap3-restart.c | |
| parent | e716efde75267eab919cdb2bef5b2cb77f305326 (diff) | |
| parent | 7d1f9aeff1ee4a20b1aeb377dd0f579fe9647619 (diff) | |
Merge tag 'v3.8-rc4' into irq/core
Merge Linux 3.8-rc4 before pulling in new commits - we were on an old v3.7 base.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/arm/mach-omap2/omap3-restart.c')
| -rw-r--r-- | arch/arm/mach-omap2/omap3-restart.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap3-restart.c b/arch/arm/mach-omap2/omap3-restart.c new file mode 100644 index 000000000000..923c582189e5 --- /dev/null +++ b/arch/arm/mach-omap2/omap3-restart.c | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /* | ||
| 2 | * omap3-restart.c - Code common to all OMAP3xxx machines. | ||
| 3 | * | ||
| 4 | * Copyright (C) 2009, 2012 Texas Instruments | ||
| 5 | * Copyright (C) 2010 Nokia Corporation | ||
| 6 | * Tony Lindgren <tony@atomide.com> | ||
| 7 | * Santosh Shilimkar <santosh.shilimkar@ti.com> | ||
| 8 | * | ||
| 9 | * This program is free software; you can redistribute it and/or modify | ||
| 10 | * it under the terms of the GNU General Public License version 2 as | ||
| 11 | * published by the Free Software Foundation. | ||
| 12 | */ | ||
| 13 | #include <linux/kernel.h> | ||
| 14 | #include <linux/init.h> | ||
| 15 | |||
| 16 | #include "iomap.h" | ||
| 17 | #include "common.h" | ||
| 18 | #include "control.h" | ||
| 19 | #include "prm3xxx.h" | ||
| 20 | |||
| 21 | /* Global address base setup code */ | ||
| 22 | |||
| 23 | /** | ||
| 24 | * omap3xxx_restart - trigger a software restart of the SoC | ||
| 25 | * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c | ||
| 26 | * @cmd: passed from the userspace program rebooting the system (if provided) | ||
| 27 | * | ||
| 28 | * Resets the SoC. For @cmd, see the 'reboot' syscall in | ||
| 29 | * kernel/sys.c. No return value. | ||
| 30 | */ | ||
| 31 | void omap3xxx_restart(char mode, const char *cmd) | ||
| 32 | { | ||
| 33 | omap3_ctrl_write_boot_mode((cmd ? (u8)*cmd : 0)); | ||
| 34 | omap3xxx_prm_dpll3_reset(); /* never returns */ | ||
| 35 | while (1); | ||
| 36 | } | ||
