Path: blob/master/arch/arm/mach-integrator/include/mach/system.h
15162 views
/*1* arch/arm/mach-integrator/include/mach/system.h2*3* Copyright (C) 1999 ARM Limited4* Copyright (C) 2000 Deep Blue Solutions Ltd5*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License as published by8* the Free Software Foundation; either version 2 of the License, or9* (at your option) any later version.10*11* This program is distributed in the hope that it will be useful,12* but WITHOUT ANY WARRANTY; without even the implied warranty of13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14* GNU General Public License for more details.15*16* You should have received a copy of the GNU General Public License17* along with this program; if not, write to the Free Software18* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA19*/20#ifndef __ASM_ARCH_SYSTEM_H21#define __ASM_ARCH_SYSTEM_H2223#include <mach/cm.h>2425static inline void arch_idle(void)26{27/*28* This should do all the clock switching29* and wait for interrupt tricks30*/31cpu_do_idle();32}3334static inline void arch_reset(char mode, const char *cmd)35{36/*37* To reset, we hit the on-board reset register38* in the system FPGA39*/40cm_control(CM_CTRL_RESET, CM_CTRL_RESET);41}4243#endif444546