void arch_idle(void);
void arch_reset(char mode, const char *cmd);
+
+#ifdef CONFIG_MXC_REBOOT_MFGMODE
+void do_switch_mfgmode(void);
+void mxc_clear_mfgmode(void);
+#else
+#define do_switch_mfgmode() do {} while (0)
+#define mxc_clear_mfgmode() do {} while (0)
+#endif
+
+#ifdef CONFIG_MXC_REBOOT_ANDROID_CMD
+void do_switch_recovery(void);
+void do_switch_fastboot(void);
+#else
+#define do_switch_recovery() do {} while (0)
+#define do_switch_fastboot() do {} while (0)
+#endif
+
#endif /* __ASM_ARCH_MXC_SYSTEM_H__ */
#include <linux/io.h>
#include <linux/err.h>
#include <linux/delay.h>
+#include <linux/string.h>
#include <mach/hardware.h>
#include <mach/common.h>
+#include <mach/system.h>
#include <asm/proc-fns.h>
#include <asm/system.h>
#ifdef CONFIG_SMP
static void __iomem *wdog_base;
-#ifdef CONFIG_MXC_REBOOT_MFGMODE
-void do_switch_mfgmode(void);
-void mxc_clear_mfgmode(void);
-#else
-void do_switch_mfgmode() {}
-void mxc_clear_mfgmode() {}
-#endif
-
-#ifdef CONFIG_MXC_REBOOT_ANDROID_CMD
-void do_switch_recovery(void);
-void do_switch_fastboot(void);
-#else
-void do_switch_recovery() {}
-void do_switch_fastboot() {}
-#endif
static void arch_reset_special_mode(char mode, const char *cmd)
{