ARM: restart: mxs: use new restart hook
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 5 Nov 2011 15:43:30 +0000 (15:43 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 5 Jan 2012 12:57:15 +0000 (12:57 +0000)
Hook these platforms restart code into the new restart hook rather
than using arch_reset().

Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-mxs/include/mach/common.h
arch/arm/mach-mxs/include/mach/system.h
arch/arm/mach-mxs/mach-m28evk.c
arch/arm/mach-mxs/mach-mx23evk.c
arch/arm/mach-mxs/mach-mx28evk.c
arch/arm/mach-mxs/mach-stmp378x_devb.c
arch/arm/mach-mxs/mach-tx28.c
arch/arm/mach-mxs/system.c

index 635bb5d9a20ade988bfa61667b9513c985a47bb9..1388485414c9f37174c575791d9aac6bc9ad79e4 100644 (file)
@@ -16,6 +16,7 @@ struct clk;
 extern const u32 *mxs_get_ocotp(void);
 extern int mxs_reset_block(void __iomem *);
 extern void mxs_timer_init(struct clk *, int);
+extern void mxs_restart(char, const char *);
 
 extern int mx23_register_gpios(void);
 extern int mx23_clocks_init(void);
index 0e428239b4333c7d7f5bf7c00db380b5c604ab5b..bcd8989285d66953431e1c1e14e381308b9efd26 100644 (file)
@@ -22,6 +22,8 @@ static inline void arch_idle(void)
        cpu_do_idle();
 }
 
-void arch_reset(char mode, const char *cmd);
+static inline void arch_reset(char mode, const char *cmd)
+{
+}
 
 #endif /* __MACH_MXS_SYSTEM_H__ */
index 6b00577b70256254e29951bdf8828a2ecd613fdb..2f2758230edf83f4cd98ae5a80817dd2b6c4e0ad 100644 (file)
@@ -363,4 +363,5 @@ MACHINE_START(M28EVK, "DENX M28 EVK")
        .init_irq       = mx28_init_irq,
        .timer          = &m28evk_timer,
        .init_machine   = m28evk_init,
+       .restart        = mxs_restart,
 MACHINE_END
index c325fbe4e4c6aa4873afd4b38b30017041ea9c91..5ea1c57d2606dce6a7c94bc270a53b41ea4232ef 100644 (file)
@@ -184,4 +184,5 @@ MACHINE_START(MX23EVK, "Freescale MX23 EVK")
        .init_irq       = mx23_init_irq,
        .timer          = &mx23evk_timer,
        .init_machine   = mx23evk_init,
+       .restart        = mxs_restart,
 MACHINE_END
index 064ec5abaa557f7c6679bf4fe965c67f3fb6a022..d0cc37fd23a4ba16f31df3091217973ef1e78013 100644 (file)
@@ -501,4 +501,5 @@ MACHINE_START(MX28EVK, "Freescale MX28 EVK")
        .init_irq       = mx28_init_irq,
        .timer          = &mx28evk_timer,
        .init_machine   = mx28evk_init,
+       .restart        = mxs_restart,
 MACHINE_END
index 6834dea38c04cce77e20bffc2baa3019327d9610..a626c07b8713c46235eac72e3a1ef3dda9abdd0e 100644 (file)
@@ -117,4 +117,5 @@ MACHINE_START(STMP378X, "STMP378X")
        .init_irq       = mx23_init_irq,
        .timer          = &stmp378x_dvb_timer,
        .init_machine   = stmp378x_dvb_init,
+       .restart        = mxs_restart,
 MACHINE_END
index 9a1f0e7a338eff1a5992b9e7db7ebc7a6ed3ea5b..2c0862e655ee9022f5a4b39276d9286c66f8047a 100644 (file)
@@ -178,4 +178,5 @@ MACHINE_START(TX28, "Ka-Ro electronics TX28 module")
        .init_irq = mx28_init_irq,
        .timer = &tx28_timer,
        .init_machine = tx28_stk5v3_init,
+       .restart        = mxs_restart,
 MACHINE_END
index cab88364e7c1475be90503c5aaa6c000ebeaea73..b936633b7682c87d9a75ffd354cdd975c1e62517 100644 (file)
@@ -42,7 +42,7 @@ static void __iomem *mxs_clkctrl_reset_addr;
 /*
  * Reset the system. It is called by machine_restart().
  */
-void arch_reset(char mode, const char *cmd)
+void mxs_restart(char mode, const char *cmd)
 {
        /* reset the chip */
        __mxs_setl(MXS_CLKCTRL_RESET_CHIP, mxs_clkctrl_reset_addr);
This page took 0.030346 seconds and 5 git commands to generate.