Path: blob/master/arch/arm/mach-netx/include/mach/system.h
10820 views
/*1* arch/arm/mach-netx/include/mach/system.h2*3* Copyright (C) 2005 Sascha Hauer <[email protected]>, Pengutronix4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 27* as published by the Free Software Foundation.8*9* This program is distributed in the hope that it will be useful,10* but WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12* GNU General Public License for more details.13*14* You should have received a copy of the GNU General Public License15* along with this program; if not, write to the Free Software16* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA17*/18#ifndef __ASM_ARCH_SYSTEM_H19#define __ASM_ARCH_SYSTEM_H2021#include <linux/io.h>22#include <mach/hardware.h>23#include "netx-regs.h"2425static inline void arch_idle(void)26{27cpu_do_idle();28}2930static inline void arch_reset(char mode, const char *cmd)31{32writel(NETX_SYSTEM_RES_CR_FIRMW_RES_EN | NETX_SYSTEM_RES_CR_FIRMW_RES,33NETX_SYSTEM_RES_CR);34}3536#endif37383940