Skip to content
Snippets Groups Projects
Commit baa95883 authored by Russell King's avatar Russell King
Browse files

ARM: restart: omap: use new restart hook


Hook these platforms restart code into the new restart hook rather
than using arch_reset().

Acked-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 35b47a40
No related merge requests found
Showing
with 21 additions and 8 deletions
...@@ -386,6 +386,7 @@ MACHINE_START(AMS_DELTA, "Amstrad E3 (Delta)") ...@@ -386,6 +386,7 @@ MACHINE_START(AMS_DELTA, "Amstrad E3 (Delta)")
.init_irq = omap1_init_irq, .init_irq = omap1_init_irq,
.init_machine = ams_delta_init, .init_machine = ams_delta_init,
.timer = &omap1_timer, .timer = &omap1_timer,
.restart = omap1_restart,
MACHINE_END MACHINE_END
EXPORT_SYMBOL(ams_delta_latch1_write); EXPORT_SYMBOL(ams_delta_latch1_write);
......
...@@ -390,4 +390,5 @@ MACHINE_START(OMAP_FSAMPLE, "OMAP730 F-Sample") ...@@ -390,4 +390,5 @@ MACHINE_START(OMAP_FSAMPLE, "OMAP730 F-Sample")
.init_irq = omap1_init_irq, .init_irq = omap1_init_irq,
.init_machine = omap_fsample_init, .init_machine = omap_fsample_init,
.timer = &omap1_timer, .timer = &omap1_timer,
.restart = omap1_restart,
MACHINE_END MACHINE_END
...@@ -89,4 +89,5 @@ MACHINE_START(OMAP_GENERIC, "Generic OMAP1510/1610/1710") ...@@ -89,4 +89,5 @@ MACHINE_START(OMAP_GENERIC, "Generic OMAP1510/1610/1710")
.init_irq = omap1_init_irq, .init_irq = omap1_init_irq,
.init_machine = omap_generic_init, .init_machine = omap_generic_init,
.timer = &omap1_timer, .timer = &omap1_timer,
.restart = omap1_restart,
MACHINE_END MACHINE_END
...@@ -456,4 +456,5 @@ MACHINE_START(OMAP_H2, "TI-H2") ...@@ -456,4 +456,5 @@ MACHINE_START(OMAP_H2, "TI-H2")
.init_irq = omap1_init_irq, .init_irq = omap1_init_irq,
.init_machine = h2_init, .init_machine = h2_init,
.timer = &omap1_timer, .timer = &omap1_timer,
.restart = omap1_restart,
MACHINE_END MACHINE_END
...@@ -444,4 +444,5 @@ MACHINE_START(OMAP_H3, "TI OMAP1710 H3 board") ...@@ -444,4 +444,5 @@ MACHINE_START(OMAP_H3, "TI OMAP1710 H3 board")
.init_irq = omap1_init_irq, .init_irq = omap1_init_irq,
.init_machine = h3_init, .init_machine = h3_init,
.timer = &omap1_timer, .timer = &omap1_timer,
.restart = omap1_restart,
MACHINE_END MACHINE_END
...@@ -610,4 +610,5 @@ MACHINE_START(HERALD, "HTC Herald") ...@@ -610,4 +610,5 @@ MACHINE_START(HERALD, "HTC Herald")
.init_irq = omap1_init_irq, .init_irq = omap1_init_irq,
.init_machine = htcherald_init, .init_machine = htcherald_init,
.timer = &omap1_timer, .timer = &omap1_timer,
.restart = omap1_restart,
MACHINE_END MACHINE_END
...@@ -460,4 +460,5 @@ MACHINE_START(OMAP_INNOVATOR, "TI-Innovator") ...@@ -460,4 +460,5 @@ MACHINE_START(OMAP_INNOVATOR, "TI-Innovator")
.init_irq = omap1_init_irq, .init_irq = omap1_init_irq,
.init_machine = innovator_init, .init_machine = innovator_init,
.timer = &omap1_timer, .timer = &omap1_timer,
.restart = omap1_restart,
MACHINE_END MACHINE_END
...@@ -259,4 +259,5 @@ MACHINE_START(NOKIA770, "Nokia 770") ...@@ -259,4 +259,5 @@ MACHINE_START(NOKIA770, "Nokia 770")
.init_irq = omap1_init_irq, .init_irq = omap1_init_irq,
.init_machine = omap_nokia770_init, .init_machine = omap_nokia770_init,
.timer = &omap1_timer, .timer = &omap1_timer,
.restart = omap1_restart,
MACHINE_END MACHINE_END
...@@ -578,4 +578,5 @@ MACHINE_START(OMAP_OSK, "TI-OSK") ...@@ -578,4 +578,5 @@ MACHINE_START(OMAP_OSK, "TI-OSK")
.init_irq = omap1_init_irq, .init_irq = omap1_init_irq,
.init_machine = osk_init, .init_machine = osk_init,
.timer = &omap1_timer, .timer = &omap1_timer,
.restart = omap1_restart,
MACHINE_END MACHINE_END
...@@ -270,4 +270,5 @@ MACHINE_START(OMAP_PALMTE, "OMAP310 based Palm Tungsten E") ...@@ -270,4 +270,5 @@ MACHINE_START(OMAP_PALMTE, "OMAP310 based Palm Tungsten E")
.init_irq = omap1_init_irq, .init_irq = omap1_init_irq,
.init_machine = omap_palmte_init, .init_machine = omap_palmte_init,
.timer = &omap1_timer, .timer = &omap1_timer,
.restart = omap1_restart,
MACHINE_END MACHINE_END
...@@ -317,4 +317,5 @@ MACHINE_START(OMAP_PALMTT, "OMAP1510 based Palm Tungsten|T") ...@@ -317,4 +317,5 @@ MACHINE_START(OMAP_PALMTT, "OMAP1510 based Palm Tungsten|T")
.init_irq = omap1_init_irq, .init_irq = omap1_init_irq,
.init_machine = omap_palmtt_init, .init_machine = omap_palmtt_init,
.timer = &omap1_timer, .timer = &omap1_timer,
.restart = omap1_restart,
MACHINE_END MACHINE_END
...@@ -334,4 +334,5 @@ MACHINE_START(OMAP_PALMZ71, "OMAP310 based Palm Zire71") ...@@ -334,4 +334,5 @@ MACHINE_START(OMAP_PALMZ71, "OMAP310 based Palm Zire71")
.init_irq = omap1_init_irq, .init_irq = omap1_init_irq,
.init_machine = omap_palmz71_init, .init_machine = omap_palmz71_init,
.timer = &omap1_timer, .timer = &omap1_timer,
.restart = omap1_restart,
MACHINE_END MACHINE_END
...@@ -352,4 +352,5 @@ MACHINE_START(OMAP_PERSEUS2, "OMAP730 Perseus2") ...@@ -352,4 +352,5 @@ MACHINE_START(OMAP_PERSEUS2, "OMAP730 Perseus2")
.init_irq = omap1_init_irq, .init_irq = omap1_init_irq,
.init_machine = omap_perseus2_init, .init_machine = omap_perseus2_init,
.timer = &omap1_timer, .timer = &omap1_timer,
.restart = omap1_restart,
MACHINE_END MACHINE_END
...@@ -416,4 +416,5 @@ MACHINE_START(SX1, "OMAP310 based Siemens SX1") ...@@ -416,4 +416,5 @@ MACHINE_START(SX1, "OMAP310 based Siemens SX1")
.init_irq = omap1_init_irq, .init_irq = omap1_init_irq,
.init_machine = omap_sx1_init, .init_machine = omap_sx1_init,
.timer = &omap1_timer, .timer = &omap1_timer,
.restart = omap1_restart,
MACHINE_END MACHINE_END
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include <linux/export.h> #include <linux/export.h>
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/system.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/map.h> #include <asm/mach/map.h>
...@@ -221,7 +220,7 @@ void voiceblue_wdt_ping(void) ...@@ -221,7 +220,7 @@ void voiceblue_wdt_ping(void)
gpio_set_value(0, wdt_gpio_state); gpio_set_value(0, wdt_gpio_state);
} }
static void voiceblue_reset(char mode, const char *cmd) static void voiceblue_restart(char mode, const char *cmd)
{ {
/* /*
* Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28 * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28
...@@ -285,8 +284,6 @@ static void __init voiceblue_init(void) ...@@ -285,8 +284,6 @@ static void __init voiceblue_init(void)
* (it is connected through invertor) */ * (it is connected through invertor) */
omap_writeb(0x00, OMAP_LPG1_LCR); omap_writeb(0x00, OMAP_LPG1_LCR);
omap_writeb(0x00, OMAP_LPG1_PMR); /* Disable clock */ omap_writeb(0x00, OMAP_LPG1_PMR); /* Disable clock */
arch_reset = voiceblue_reset;
} }
MACHINE_START(VOICEBLUE, "VoiceBlue OMAP5910") MACHINE_START(VOICEBLUE, "VoiceBlue OMAP5910")
...@@ -298,4 +295,5 @@ MACHINE_START(VOICEBLUE, "VoiceBlue OMAP5910") ...@@ -298,4 +295,5 @@ MACHINE_START(VOICEBLUE, "VoiceBlue OMAP5910")
.init_irq = omap1_init_irq, .init_irq = omap1_init_irq,
.init_machine = voiceblue_init, .init_machine = voiceblue_init,
.timer = &omap1_timer, .timer = &omap1_timer,
.restart = voiceblue_restart,
MACHINE_END MACHINE_END
...@@ -54,6 +54,7 @@ static inline void omap16xx_map_io(void) ...@@ -54,6 +54,7 @@ static inline void omap16xx_map_io(void)
void omap1_init_early(void); void omap1_init_early(void);
void omap1_init_irq(void); void omap1_init_irq(void);
void omap1_restart(char, const char *);
extern struct sys_timer omap1_timer; extern struct sys_timer omap1_timer;
extern bool omap_32k_timer_init(void); extern bool omap_32k_timer_init(void);
......
...@@ -5,10 +5,9 @@ ...@@ -5,10 +5,9 @@
#include <linux/io.h> #include <linux/io.h>
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/system.h>
#include <plat/prcm.h> #include <plat/prcm.h>
void omap1_arch_reset(char mode, const char *cmd) void omap1_restart(char mode, const char *cmd)
{ {
/* /*
* Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28 * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28
...@@ -21,5 +20,3 @@ void omap1_arch_reset(char mode, const char *cmd) ...@@ -21,5 +20,3 @@ void omap1_arch_reset(char mode, const char *cmd)
omap_writew(1, ARM_RSTCT1); omap_writew(1, ARM_RSTCT1);
} }
void (*arch_reset)(char, const char *) = omap1_arch_reset;
...@@ -303,4 +303,5 @@ MACHINE_START(OMAP_2430SDP, "OMAP2430 sdp2430 board") ...@@ -303,4 +303,5 @@ MACHINE_START(OMAP_2430SDP, "OMAP2430 sdp2430 board")
.init_irq = omap2_init_irq, .init_irq = omap2_init_irq,
.init_machine = omap_2430sdp_init, .init_machine = omap_2430sdp_init,
.timer = &omap2_timer, .timer = &omap2_timer,
.restart = omap_prcm_restart,
MACHINE_END MACHINE_END
...@@ -730,4 +730,5 @@ MACHINE_START(OMAP_3430SDP, "OMAP3430 3430SDP board") ...@@ -730,4 +730,5 @@ MACHINE_START(OMAP_3430SDP, "OMAP3430 3430SDP board")
.init_irq = omap3_init_irq, .init_irq = omap3_init_irq,
.init_machine = omap_3430sdp_init, .init_machine = omap_3430sdp_init,
.timer = &omap3_timer, .timer = &omap3_timer,
.restart = omap_prcm_restart,
MACHINE_END MACHINE_END
...@@ -217,4 +217,5 @@ MACHINE_START(OMAP_3630SDP, "OMAP 3630SDP board") ...@@ -217,4 +217,5 @@ MACHINE_START(OMAP_3630SDP, "OMAP 3630SDP board")
.init_irq = omap3_init_irq, .init_irq = omap3_init_irq,
.init_machine = omap_sdp_init, .init_machine = omap_sdp_init,
.timer = &omap3_timer, .timer = &omap3_timer,
.restart = omap_prcm_restart,
MACHINE_END MACHINE_END
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment