ARM: restart: ep93xx: use new restart hook
[deliverable/linux.git] / arch / arm / mach-ep93xx / core.c
index 2432a6b7dcac79b8f83e8261198835e45d1cd02f..24203f9a67967df314a6d3776d6ac581a8d22fb3 100644 (file)
@@ -906,3 +906,15 @@ void __init ep93xx_init_devices(void)
        platform_device_register(&ep93xx_ohci_device);
        platform_device_register(&ep93xx_leds);
 }
+
+void ep93xx_restart(char mode, const char *cmd)
+{
+       /*
+        * Set then clear the SWRST bit to initiate a software reset
+        */
+       ep93xx_devcfg_set_bits(EP93XX_SYSCON_DEVCFG_SWRST);
+       ep93xx_devcfg_clear_bits(EP93XX_SYSCON_DEVCFG_SWRST);
+
+       while (1)
+               ;
+}
This page took 0.028944 seconds and 5 git commands to generate.