Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg...
[pandora-kernel.git] / arch / arm / plat-mxc / system.c
index 925bce4..3455fc0 100644 (file)
@@ -26,6 +26,7 @@
 #include <mach/common.h>
 #include <asm/proc-fns.h>
 #include <asm/system.h>
+#include <asm/mach-types.h>
 
 static void __iomem *wdog_base;
 
@@ -42,12 +43,19 @@ void arch_reset(char mode, const char *cmd)
                return;
        }
 #endif
+#ifdef CONFIG_MACH_MX51_EFIKAMX
+       if (machine_is_mx51_efikamx()) {
+               mx51_efikamx_reset();
+               return;
+       }
+#endif
+
        if (cpu_is_mx1()) {
                wcr_enable = (1 << 0);
        } else {
                struct clk *clk;
 
-               clk = clk_get_sys("imx-wdt.0", NULL);
+               clk = clk_get_sys("imx2-wdt.0", NULL);
                if (!IS_ERR(clk))
                        clk_enable(clk);
                wcr_enable = (1 << 2);