Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235224
b: refs/heads/master
c: 699fe14
h: refs/heads/master
v: v3
  • Loading branch information
Colin Cross committed Feb 11, 2011
1 parent 8a35d95 commit 23f4c66
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1eb2ecf1d5b3c29ce86f098de4ad21fa757d2160
refs/heads/master: 699fe145d6e651a814423eeb6125381998f3c077
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-tegra/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

#include <linux/types.h>

void tegra_assert_system_reset(char mode, const char *cmd);

void __init tegra_common_init(void);
void __init tegra_map_common_io(void);
void __init tegra_init_irq(void);
Expand Down
13 changes: 13 additions & 0 deletions trunk/arch/arm/mach-tegra/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
10 changes: 2 additions & 8 deletions trunk/arch/arm/mach-tegra/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 23f4c66

Please sign in to comment.