Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250013
b: refs/heads/master
c: 5e00d37
h: refs/heads/master
i:
  250011: 8c18595
v: v3
  • Loading branch information
Andrew Lunn authored and Nicolas Pitre committed May 16, 2011
1 parent aa108b2 commit 2464de8
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 33 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: 980f9f601ad456dc5a699bf526b6bd894957bad3
refs/heads/master: 5e00d3783dd362a34c9816bb582103c9833e4643
17 changes: 1 addition & 16 deletions trunk/arch/arm/mach-kirkwood/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <plat/mvsdio.h>
#include <plat/mv_xor.h>
#include <plat/orion_nand.h>
#include <plat/orion_wdt.h>
#include <plat/common.h>
#include <plat/time.h>
#include "common.h"
Expand Down Expand Up @@ -575,23 +574,9 @@ static void __init kirkwood_xor1_init(void)
/*****************************************************************************
* Watchdog
****************************************************************************/
static struct orion_wdt_platform_data kirkwood_wdt_data = {
.tclk = 0,
};

static struct platform_device kirkwood_wdt_device = {
.name = "orion_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);
orion_wdt_init(kirkwood_tclk);
}


Expand Down
17 changes: 1 addition & 16 deletions trunk/arch/arm/mach-orion5x/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <plat/ehci-orion.h>
#include <plat/mv_xor.h>
#include <plat/orion_nand.h>
#include <plat/orion_wdt.h>
#include <plat/time.h>
#include <plat/common.h>
#include "common.h"
Expand Down Expand Up @@ -380,23 +379,9 @@ static int __init orion5x_crypto_init(void)
/*****************************************************************************
* Watchdog
****************************************************************************/
static struct orion_wdt_platform_data orion5x_wdt_data = {
.tclk = 0,
};

static struct platform_device orion5x_wdt_device = {
.name = "orion_wdt",
.id = -1,
.dev = {
.platform_data = &orion5x_wdt_data,
},
.num_resources = 0,
};

void __init orion5x_wdt_init(void)
{
orion5x_wdt_data.tclk = orion5x_tclk;
platform_device_register(&orion5x_wdt_device);
orion_wdt_init(orion5x_tclk);
}


Expand Down
21 changes: 21 additions & 0 deletions trunk/arch/arm/plat-orion/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/mv643xx_i2c.h>
#include <net/dsa.h>
#include <linux/spi/orion_spi.h>
#include <plat/orion_wdt.h>

/* Fill in the resources structure and link it into the platform
device structure. There is always a memory region, and nearly
Expand Down Expand Up @@ -564,3 +565,23 @@ void __init orion_spi_1_init(unsigned long mapbase,
mapbase, SZ_512 - 1, NO_IRQ);
platform_device_register(&orion_spi_1);
}

/*****************************************************************************
* Watchdog
****************************************************************************/
static struct orion_wdt_platform_data orion_wdt_data;

static struct platform_device orion_wdt_device = {
.name = "orion_wdt",
.id = -1,
.dev = {
.platform_data = &orion_wdt_data,
},
.num_resources = 0,
};

void __init orion_wdt_init(unsigned long tclk)
{
orion_wdt_data.tclk = tclk;
platform_device_register(&orion_wdt_device);
}
2 changes: 2 additions & 0 deletions trunk/arch/arm/plat-orion/include/plat/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,6 @@ void __init orion_spi_init(unsigned long mapbase,

void __init orion_spi_1_init(unsigned long mapbase,
unsigned long tclk);

void __init orion_wdt_init(unsigned long tclk);
#endif

0 comments on commit 2464de8

Please sign in to comment.