MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-arm / arch-moxart / system.h
blob5bcd97c7ca8b37c25f310e4cef8d744054af3e95
1 /*
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)
7 */
8 #include <asm/arch/moxa.h>
10 static inline void arch_idle(void)
12 cpu_do_idle();
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
19 if ( mode == 's' ) {
20 // Jump to ROM address 0
21 cpu_reset(0);
22 } else {
23 // reset the CPU
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;
33 #endif
34 /* REVISIT --gmcnutt */