Path: blob/master/arch/arm/mach-realview/include/mach/system.h
10820 views
/*1* arch/arm/mach-realview/include/mach/system.h2*3* Copyright (C) 2003 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 <linux/io.h>24#include <mach/hardware.h>25#include <mach/platform.h>2627void (*realview_reset)(char mode);2829static inline void arch_idle(void)30{31/*32* This should do all the clock switching33* and wait for interrupt tricks34*/35cpu_do_idle();36}3738static inline void arch_reset(char mode, const char *cmd)39{40/*41* To reset, we hit the on-board reset register42* in the system FPGA43*/44if (realview_reset)45realview_reset(mode);46}4748#endif495051