Path: blob/master/arch/arm/mach-iop32x/include/mach/system.h
17612 views
/*1* arch/arm/mach-iop32x/include/mach/system.h2*3* Copyright (C) 2001 MontaVista Software, Inc.4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 2 as7* published by the Free Software Foundation.8*/9#include <asm/mach-types.h>10#include <asm/hardware/iop3xx.h>11#include <mach/n2100.h>1213static inline void arch_idle(void)14{15cpu_do_idle();16}1718static inline void arch_reset(char mode, const char *cmd)19{20local_irq_disable();2122if (machine_is_n2100()) {23gpio_line_set(N2100_HARDWARE_RESET, GPIO_LOW);24gpio_line_config(N2100_HARDWARE_RESET, GPIO_OUT);25while (1)26;27}2829*IOP3XX_PCSR = 0x30;3031/* Jump into ROM at address 0 */32cpu_reset(0);33}343536