Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279968
b: refs/heads/master
c: 9635f9c
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Jan 5, 2012
1 parent 4935e7a commit 4bd740b
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 15 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: 9854a38e371a153c7c4adb2cb7951c27befe0362
refs/heads/master: 9635f9cd49b72bddb7e40fcbc151240677b5cf5e
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-mv78xx0/buffalo-wxl-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,5 @@ MACHINE_START(TERASTATION_WXL, "Buffalo Nas WXL")
.init_early = mv78xx0_init_early,
.init_irq = mv78xx0_init_irq,
.timer = &mv78xx0_timer,
.restart = mv78xx0_restart,
MACHINE_END
16 changes: 16 additions & 0 deletions trunk/arch/arm/mach-mv78xx0/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,3 +401,19 @@ void __init mv78xx0_init(void)
feroceon_l2_init(is_l2_writethrough());
#endif
}

void mv78xx0_restart(char mode, const char *cmd)
{
/*
* Enable soft reset to assert RSTOUTn.
*/
writel(SOFT_RESET_OUT_EN, RSTOUTn_MASK);

/*
* Assert soft reset.
*/
writel(SOFT_RESET, SYSTEM_SOFT_RESET);

while (1)
;
}
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-mv78xx0/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ void mv78xx0_uart1_init(void);
void mv78xx0_uart2_init(void);
void mv78xx0_uart3_init(void);
void mv78xx0_i2c_init(void);
void mv78xx0_restart(char, const char *);

extern struct sys_timer mv78xx0_timer;

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-mv78xx0/db78x00-bp-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,5 @@ MACHINE_START(DB78X00_BP, "Marvell DB-78x00-BP Development Board")
.init_early = mv78xx0_init_early,
.init_irq = mv78xx0_init_irq,
.timer = &mv78xx0_timer,
.restart = mv78xx0_restart,
MACHINE_END
14 changes: 0 additions & 14 deletions trunk/arch/arm/mach-mv78xx0/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,13 @@
#ifndef __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H

#include <mach/bridge-regs.h>

static inline void arch_idle(void)
{
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
/*
* Enable soft reset to assert RSTOUTn.
*/
writel(SOFT_RESET_OUT_EN, RSTOUTn_MASK);

/*
* Assert soft reset.
*/
writel(SOFT_RESET, SYSTEM_SOFT_RESET);

while (1)
;
}


Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-mv78xx0/rd78x00-masa-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,5 @@ MACHINE_START(RD78X00_MASA, "Marvell RD-78x00-MASA Development Board")
.init_early = mv78xx0_init_early,
.init_irq = mv78xx0_init_irq,
.timer = &mv78xx0_timer,
.restart = mv78xx0_restart,
MACHINE_END

0 comments on commit 4bd740b

Please sign in to comment.