summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/include
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2010-08-24 03:37:25 +0200
committerColin Cross <ccross@android.com>2011-02-11 02:50:41 +0100
commit699fe145d6e651a814423eeb6125381998f3c077 (patch)
tree3923e8514a712d0b666cadd029f18c42284f43b4 /arch/arm/mach-tegra/include
parentARM: tegra: cpufreq: Disable cpufreq during suspend (diff)
downloadlinux-699fe145d6e651a814423eeb6125381998f3c077.tar.xz
linux-699fe145d6e651a814423eeb6125381998f3c077.zip
ARM: tegra: Allow overriding arch_reset
Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'arch/arm/mach-tegra/include')
-rw-r--r--arch/arm/mach-tegra/include/mach/system.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/mach-tegra/include/mach/system.h b/arch/arm/mach-tegra/include/mach/system.h
index 84d5d46113f7..d0183d876c3b 100644
--- a/arch/arm/mach-tegra/include/mach/system.h
+++ b/arch/arm/mach-tegra/include/mach/system.h
@@ -24,16 +24,10 @@
#include <mach/hardware.h>
#include <mach/iomap.h>
-static inline void arch_idle(void)
-{
-}
+extern void (*arch_reset)(char mode, const char *cmd);
-static inline void arch_reset(char mode, const char *cmd)
+static inline void arch_idle(void)
{
- void __iomem *reset = IO_ADDRESS(TEGRA_CLK_RESET_BASE + 0x04);
- u32 reg = readl(reset);
- reg |= 0x04;
- writel(reg, reset);
}
#endif