Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149202
b: refs/heads/master
c: 054bd3f
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Reitmayr authored and Nicolas Pitre committed Jun 8, 2009
1 parent 8f3e0c2 commit 5348c8a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 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: 6462c6160af557c310d5941f4700ea2c7f6c67b2
refs/heads/master: 054bd3f053de54c81b20df11f354476389826e61
25 changes: 25 additions & 0 deletions trunk/arch/arm/mach-kirkwood/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <plat/mvsdio.h>
#include <plat/mv_xor.h>
#include <plat/orion_nand.h>
#include <plat/orion5x_wdt.h>
#include <plat/time.h>
#include "common.h"

Expand Down Expand Up @@ -767,6 +768,29 @@ static void __init kirkwood_xor1_init(void)
}


/*****************************************************************************
* Watchdog
****************************************************************************/
static struct orion5x_wdt_platform_data kirkwood_wdt_data = {
.tclk = 0,
};

static struct platform_device kirkwood_wdt_device = {
.name = "orion5x_wdt",
.id = -1,
.dev = {
.platform_data = &kirkwood_wdt_data,
},
.num_resources = 0,
};

static void __init kirkwood_wdt_init(void)
{
kirkwood_wdt_data.tclk = kirkwood_tclk;
platform_device_register(&kirkwood_wdt_device);
}


/*****************************************************************************
* Time handling
****************************************************************************/
Expand Down Expand Up @@ -859,6 +883,7 @@ void __init kirkwood_init(void)

/* internal devices that every board has */
kirkwood_rtc_init();
kirkwood_wdt_init();
kirkwood_xor0_init();
kirkwood_xor1_init();
}
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/arm/mach-kirkwood/include/mach/bridge-regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@
#define CPU_RESET 0x00000002

#define RSTOUTn_MASK (BRIDGE_VIRT_BASE | 0x0108)
#define WDT_RESET_OUT_EN 0x00000002
#define SOFT_RESET_OUT_EN 0x00000004

#define SYSTEM_SOFT_RESET (BRIDGE_VIRT_BASE | 0x010c)
#define SOFT_RESET 0x00000001

#define BRIDGE_CAUSE (BRIDGE_VIRT_BASE | 0x0110)
#define WDT_INT_REQ 0x0008

#define BRIDGE_MASK (BRIDGE_VIRT_BASE | 0x0114)
#define BRIDGE_INT_TIMER0 0x0002
#define BRIDGE_INT_TIMER1 0x0004
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/watchdog/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ config DAVINCI_WATCHDOG

config ORION5X_WATCHDOG
tristate "Orion5x watchdog"
depends on ARCH_ORION5X
depends on ARCH_ORION5X || ARCH_KIRKWOOD
help
Say Y here if to include support for the watchdog timer
in the Orion5x ARM SoCs.
in the Orion5x and Kirkwood ARM SoCs.
To compile this driver as a module, choose M here: the
module will be called orion5x_wdt.

Expand Down

0 comments on commit 5348c8a

Please sign in to comment.