/* * linux/include/asm-arm/arch-ixp2000/system.h * * Copyright (C) 2002 Intel Corp. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include #include static inline void arch_idle(void) { cpu_do_idle(); } static inline void arch_reset(char mode) { cli(); if (machine_is_ixdp2401() || machine_is_ixdp2801()) { *IXDP2X01_CPLD_FLASH_REG = ((0 >> IXDP2X01_FLASH_WINDOW_BITS) | IXDP2X01_CPLD_FLASH_INTERN); *IXDP2X01_CPLD_RESET_REG = 0xffffffff; } /* * We do a reset all if we are PCI master. We could be a slave and we * don't want to do anything funky on the PCI bus. */ if (*IXP2000_STRAP_OPTIONS & CFG_PCI_BOOT_HOST) { *(IXP2000_RESET0) |= (RSTALL); } }