RT-AC66 3.0.0.4.374.130 core
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / include / asm-arm / arch-iop32x / system.h
blob17b7eb7e9c0d523cdcb4a70d5dc3d63b70bdf451
1 /*
2 * include/asm-arm/arch-iop32x/system.h
4 * Copyright (C) 2001 MontaVista Software, Inc.
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 */
11 #include <asm/mach-types.h>
13 static inline void arch_idle(void)
15 cpu_do_idle();
18 static inline void arch_reset(char mode)
20 local_irq_disable();
22 if (machine_is_n2100()) {
23 gpio_line_set(N2100_HARDWARE_RESET, GPIO_LOW);
24 gpio_line_config(N2100_HARDWARE_RESET, GPIO_OUT);
25 while (1)
29 *IOP3XX_PCSR = 0x30;
31 /* Jump into ROM at address 0 */
32 cpu_reset(0);