2 * linux/include/asm-armnommu/arch-cpe/system.h
4 * Copyright (c) 1999 Nicolas Pitre <nico@cam.org>
5 * Copyright (c) 2001 RidgeRun, Inc (http://www.ridgerun.org)
8 #include <asm/arch/moxa.h>
10 static inline void arch_idle(void)
13 // while (!current->need_resched && !hlt_counter);
16 extern inline void arch_reset(char mode
)
18 #if 1 // add by Victor Yu. 11-23-2005
20 // Jump to ROM address 0
24 // frist set the counter to 1
25 *(unsigned int *)(CPE_WATCHDOG_BASE
+4) = 1;
27 // to start the watch dog
28 *(unsigned int *)(CPE_WATCHDOG_BASE
+8) = 0x5ab9;
30 // set to reset the CPU
31 *(unsigned int *)(CPE_WATCHDOG_BASE
+12) = 0x03;
34 /* REVISIT --gmcnutt */