This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / asm-arm / arch-ixp2000 / system.h
1 /*
2  * linux/include/asm-arm/arch-ixp2400/system.h
3  *
4  * Copyright (C) 2002 Intel Corp.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10
11 #include <asm/hardware.h>
12 #include <asm/mach-types.h>
13
14 static inline void arch_idle(void)
15 {
16         cpu_do_idle();
17 }
18
19 static inline void arch_reset(char mode)
20 {
21         cli();
22
23         if (machine_is_ixdp2401() || machine_is_ixdp2801()) {
24                 *IXDP2X01_CPLD_FLASH_REG = ((0 >> IXDP2X01_FLASH_WINDOW_BITS) | IXDP2X01_CPLD_FLASH_INTERN);
25                 *IXDP2X01_CPLD_RESET_REG = 0xffffffff;
26         }
27
28         /*
29          * We do a reset all if we are PCI master. We could be a slave and we
30          * don't want to do anything funky on the PCI bus.
31          */
32         if (*IXP2000_STRAP_OPTIONS & CFG_PCI_BOOT_HOST) {
33                 *(IXP2000_RESET0) |= (RSTALL);
34         }
35 }