]> err.no Git - linux-2.6/commitdiff
[POWERPC] Enable restart support for lite5200 board
authorMarian Balakowicz <m8@semihalf.com>
Thu, 18 Oct 2007 18:44:39 +0000 (04:44 +1000)
committerGrant Likely <grant.likely@secretlab.ca>
Sun, 21 Oct 2007 18:43:14 +0000 (12:43 -0600)
Use the watchdog timer to implement board restart support.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/powerpc/platforms/52xx/lite5200.c

index 65b7ae4262381a2b9830dd1ecbb5a487a6a56063..25d2bfa3d9dc0237c0c7d2299e94c863eaeade20 100644 (file)
@@ -145,6 +145,9 @@ static void __init lite5200_setup_arch(void)
        /* Some mpc5200 & mpc5200b related configuration */
        mpc5200_setup_xlb_arbiter();
 
+       /* Map wdt for mpc52xx_restart() */
+       mpc52xx_map_wdt();
+
 #ifdef CONFIG_PM
        mpc52xx_suspend.board_suspend_prepare = lite5200_suspend_prepare;
        mpc52xx_suspend.board_resume_finish = lite5200_resume_finish;
@@ -183,5 +186,6 @@ define_machine(lite5200) {
        .init           = mpc52xx_declare_of_platform_devices,
        .init_IRQ       = mpc52xx_init_irq,
        .get_irq        = mpc52xx_get_irq,
+       .restart        = mpc52xx_restart,
        .calibrate_decr = generic_calibrate_decr,
 };