Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149201
b: refs/heads/master
c: 6462c61
h: refs/heads/master
i:
  149199: 9d918a6
v: v3
  • Loading branch information
Thomas Reitmayr authored and Nicolas Pitre committed Jun 8, 2009
1 parent 145d021 commit 8f3e0c2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 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: e8b2b7ba1200de8e50788e358e2d945a0c0fcfad
refs/heads/master: 6462c6160af557c310d5941f4700ea2c7f6c67b2
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-orion5x/include/mach/bridge-regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

#define CPU_CTRL (ORION5X_BRIDGE_VIRT_BASE | 0x104)

#define CPU_RESET_MASK (ORION5X_BRIDGE_VIRT_BASE | 0x108)
#define WDT_RESET 0x0002
#define RSTOUTn_MASK (ORION5X_BRIDGE_VIRT_BASE | 0x108)
#define WDT_RESET_OUT_EN 0x0002

#define CPU_SOFT_RESET (ORION5X_BRIDGE_VIRT_BASE | 0x10c)

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-orion5x/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static inline void arch_reset(char mode, const char *cmd)
/*
* Enable and issue soft reset
*/
orion5x_setbits(CPU_RESET_MASK, (1 << 2));
orion5x_setbits(RSTOUTn_MASK, (1 << 2));
orion5x_setbits(CPU_SOFT_RESET, 1);
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-orion5x/mss2-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ static void mss2_power_off(void)
/*
* Enable and issue soft reset
*/
reg = readl(CPU_RESET_MASK);
reg = readl(RSTOUTn_MASK);
reg |= 1 << 2;
writel(reg, CPU_RESET_MASK);
writel(reg, RSTOUTn_MASK);

reg = readl(CPU_SOFT_RESET);
reg |= 1;
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/watchdog/orion5x_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ static void orion5x_wdt_enable(void)
writel(reg, TIMER_CTRL);

/* Enable reset on watchdog */
reg = readl(CPU_RESET_MASK);
reg |= WDT_RESET;
writel(reg, CPU_RESET_MASK);
reg = readl(RSTOUTn_MASK);
reg |= WDT_RESET_OUT_EN;
writel(reg, RSTOUTn_MASK);

spin_unlock(&wdt_lock);
}
Expand All @@ -87,9 +87,9 @@ static void orion5x_wdt_disable(void)
spin_lock(&wdt_lock);

/* Disable reset on watchdog */
reg = readl(CPU_RESET_MASK);
reg &= ~WDT_RESET;
writel(reg, CPU_RESET_MASK);
reg = readl(RSTOUTn_MASK);
reg &= ~WDT_RESET_OUT_EN;
writel(reg, RSTOUTn_MASK);

/* Disable watchdog timer */
reg = readl(TIMER_CTRL);
Expand Down

0 comments on commit 8f3e0c2

Please sign in to comment.