Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178801
b: refs/heads/master
c: 58b2e0a
h: refs/heads/master
i:
  178799: f9eaa1b
v: v3
  • Loading branch information
Li Jie authored and Russell King committed Jan 5, 2010
1 parent 1fea3cf commit a8305f0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 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: 1368c51c501978e5c4148322b7c77d4f49549557
refs/heads/master: 58b2e0a2dd8e460d3b7d7f8ec5d3042253b9e08a
15 changes: 14 additions & 1 deletion trunk/arch/arm/mach-w90x900/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,27 @@
*
*/

#include <linux/io.h>
#include <asm/proc-fns.h>
#include <mach/map.h>
#include <mach/regs-timer.h>

#define WTCR (TMR_BA + 0x1C)
#define WTCLK (1 << 10)
#define WTE (1 << 7)
#define WTRE (1 << 1)

static void arch_idle(void)
{
}

static void arch_reset(char mode, const char *cmd)
{
cpu_reset(0);
if (mode == 's') {
/* Jump into ROM at address 0 */
cpu_reset(0);
} else {
__raw_writel(WTE | WTRE | WTCLK, WTCR);
}
}

0 comments on commit a8305f0

Please sign in to comment.