diff options
-rw-r--r-- | arch/arm/mach-omap2/prcm.c | 4 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/prcm.h | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/system.h | 6 |
3 files changed, 6 insertions, 6 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, |
diff --git a/arch/arm/plat-omap/include/plat/prcm.h b/arch/arm/plat-omap/include/plat/prcm.h index d6a0e27d5a7f..9fbd91419cd1 100644 --- a/arch/arm/plat-omap/include/plat/prcm.h +++ b/arch/arm/plat-omap/include/plat/prcm.h | |||
@@ -24,7 +24,7 @@ | |||
24 | #define __ASM_ARM_ARCH_OMAP_PRCM_H | 24 | #define __ASM_ARM_ARCH_OMAP_PRCM_H |
25 | 25 | ||
26 | u32 omap_prcm_get_reset_sources(void); | 26 | u32 omap_prcm_get_reset_sources(void); |
27 | void omap_prcm_arch_reset(char mode); | 27 | void omap_prcm_arch_reset(char mode, const char *cmd); |
28 | int omap2_cm_wait_idlest(void __iomem *reg, u32 mask, u8 idlest, | 28 | int omap2_cm_wait_idlest(void __iomem *reg, u32 mask, u8 idlest, |
29 | const char *name); | 29 | const char *name); |
30 | 30 | ||
diff --git a/arch/arm/plat-omap/include/plat/system.h b/arch/arm/plat-omap/include/plat/system.h index c58a4ef42a45..d0a119f735b4 100644 --- a/arch/arm/plat-omap/include/plat/system.h +++ b/arch/arm/plat-omap/include/plat/system.h | |||
@@ -22,7 +22,7 @@ static inline void arch_idle(void) | |||
22 | cpu_do_idle(); | 22 | cpu_do_idle(); |
23 | } | 23 | } |
24 | 24 | ||
25 | static inline void omap1_arch_reset(char mode) | 25 | static inline void omap1_arch_reset(char mode, const char *cmd) |
26 | { | 26 | { |
27 | /* | 27 | /* |
28 | * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28 | 28 | * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28 |
@@ -43,9 +43,9 @@ static inline void omap1_arch_reset(char mode) | |||
43 | static inline void arch_reset(char mode, const char *cmd) | 43 | static inline void arch_reset(char mode, const char *cmd) |
44 | { | 44 | { |
45 | if (!cpu_class_is_omap2()) | 45 | if (!cpu_class_is_omap2()) |
46 | omap1_arch_reset(mode); | 46 | omap1_arch_reset(mode, cmd); |
47 | else | 47 | else |
48 | omap_prcm_arch_reset(mode); | 48 | omap_prcm_arch_reset(mode, cmd); |
49 | } | 49 | } |
50 | 50 | ||
51 | #endif | 51 | #endif |