Path: blob/master/arch/arm/mach-nomadik/include/mach/system.h
10820 views
/*1* mach-nomadik/include/mach/system.h2*3* Copyright (C) 2008 STMicroelectronics4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License16* along with this program; if not, write to the Free Software17* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA18*/19#ifndef __ASM_ARCH_SYSTEM_H20#define __ASM_ARCH_SYSTEM_H2122#include <linux/io.h>23#include <mach/hardware.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{36void __iomem *src_rstsr = io_p2v(NOMADIK_SRC_BASE + 0x18);3738/* FIXME: use egpio when implemented */3940/* Write anything to Reset status register */41writel(1, src_rstsr);42}4344#endif454647