diff options
author | Aaro Koskinen <Aaro.Koskinen@nokia.com> | 2010-02-26 05:25:28 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-03-11 17:50:00 -0500 |
commit | 29b9a218d0be8e207ddeacdc68eb1e4b7f54b85a (patch) | |
tree | 766e499c9996f476efee31dee65a6147db40e717 /arch/arm/mach-omap2 | |
parent | 26e4248359c6bf2da4a07767f6e12f1df426ab0a (diff) |
omap: pass the reboot command to the boot loader
This patch follows the commit be093beb608edf821b45fe00a8a080fb5c6ed4af
by Russell King:
OMAP wishes to pass state to the boot loader upon reboot in order
to instruct it whether to wait for USB-based reflashing or not.
There is already a facility to do this via the reboot() syscall,
except we ignore the string passed to machine_restart().
The patch adds the missing parameter to omap1_arch_reset() and
omap_prcm_arch_reset(), and modifies the latter to pass the reboot
command parameter to the boot loader instead of reboot mode (which is
for kernel internal use only and cannot be modified by the userspace).
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/prcm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/prcm.c b/arch/arm/mach-omap2/prcm.c index 81872aacb801..9537f6f2352d 100644 --- a/arch/arm/mach-omap2/prcm.c +++ b/arch/arm/mach-omap2/prcm.c | |||
@@ -133,7 +133,7 @@ u32 omap_prcm_get_reset_sources(void) | |||
133 | EXPORT_SYMBOL(omap_prcm_get_reset_sources); | 133 | EXPORT_SYMBOL(omap_prcm_get_reset_sources); |
134 | 134 | ||
135 | /* Resets clock rates and reboots the system. Only called from system.h */ | 135 | /* Resets clock rates and reboots the system. Only called from system.h */ |
136 | void omap_prcm_arch_reset(char mode) | 136 | void omap_prcm_arch_reset(char mode, const char *cmd) |
137 | { | 137 | { |
138 | s16 prcm_offs = 0; | 138 | s16 prcm_offs = 0; |
139 | 139 | ||
@@ -145,7 +145,7 @@ void omap_prcm_arch_reset(char mode) | |||
145 | u32 l; | 145 | u32 l; |
146 | 146 | ||
147 | prcm_offs = OMAP3430_GR_MOD; | 147 | prcm_offs = OMAP3430_GR_MOD; |
148 | l = ('B' << 24) | ('M' << 16) | mode; | 148 | l = ('B' << 24) | ('M' << 16) | (cmd ? (u8)*cmd : 0); |
149 | /* Reserve the first word in scratchpad for communicating | 149 | /* Reserve the first word in scratchpad for communicating |
150 | * with the boot ROM. A pointer to a data structure | 150 | * with the boot ROM. A pointer to a data structure |
151 | * describing the boot process can be stored there, | 151 | * describing the boot process can be stored there, |