summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/common.c
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2010-08-23 18:37:25 -0700
committerColin Cross <ccross@android.com>2011-02-10 17:50:41 -0800
commit699fe145d6e651a814423eeb6125381998f3c077 (patch)
tree3923e8514a712d0b666cadd029f18c42284f43b4 /arch/arm/mach-tegra/common.c
parent1eb2ecf1d5b3c29ce86f098de4ad21fa757d2160 (diff)
downloadblackbird-op-linux-699fe145d6e651a814423eeb6125381998f3c077.tar.gz
blackbird-op-linux-699fe145d6e651a814423eeb6125381998f3c077.zip
ARM: tegra: Allow overriding arch_reset
Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'arch/arm/mach-tegra/common.c')
-rw-r--r--arch/arm/mach-tegra/common.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c
index 7c91e2b9d643..84a7197e1eff 100644
--- a/arch/arm/mach-tegra/common.c
+++ b/arch/arm/mach-tegra/common.c
@@ -26,11 +26,24 @@
#include <mach/iomap.h>
#include <mach/dma.h>
+#include <mach/system.h>
#include "board.h"
#include "clock.h"
#include "fuse.h"
+void (*arch_reset)(char mode, const char *cmd) = tegra_assert_system_reset;
+
+void tegra_assert_system_reset(char mode, const char *cmd)
+{
+ void __iomem *reset = IO_ADDRESS(TEGRA_CLK_RESET_BASE + 0x04);
+ u32 reg;
+
+ reg = readl(reset);
+ reg |= 0x04;
+ writel(reg, reset);
+}
+
static __initdata struct tegra_clk_init_table common_clk_init_table[] = {
/* name parent rate enabled */
{ "clk_m", NULL, 0, true },
OpenPOWER on IntegriCloud