]> nv-tegra.nvidia Code Review - linux-2.6.git/blob - arch/arm/mach-prima2/include/mach/system.h
Merge branch 'next/fixes2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux...
[linux-2.6.git] / arch / arm / mach-prima2 / include / mach / system.h
1 /*
2  * arch/arm/mach-prima2/include/mach/system.h
3  *
4  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
5  *
6  * Licensed under GPLv2 or later.
7  */
8
9 #ifndef __MACH_SYSTEM_H__
10 #define __MACH_SYSTEM_H__
11
12 #include <linux/bitops.h>
13 #include <mach/hardware.h>
14
15 #define SIRFSOC_SYS_RST_BIT  BIT(31)
16
17 extern void __iomem *sirfsoc_rstc_base;
18
19 static inline void arch_idle(void)
20 {
21         cpu_do_idle();
22 }
23
24 static inline void arch_reset(char mode, const char *cmd)
25 {
26         writel(SIRFSOC_SYS_RST_BIT, sirfsoc_rstc_base);
27 }
28
29 #endif