aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ep93xx/ts72xx.c
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2010-03-26 10:55:59 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-03-26 10:55:59 -0400
commit329f9052dbadf6f4afe2231668bd00c579a4aa10 (patch)
treee080a5c70df40f3ae8cf28a95a3267757668ab97 /arch/arm/mach-ep93xx/ts72xx.c
parent395b228858778d3c44f7c413693a6acaa8bb62dc (diff)
parent220bf991b0366cc50a94feede3d7341fa5710ee4 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts: drivers/mtd/nand/sh_flctl.c Maxim's patch to initialise sysfs attributes depends on the patch which actually adds sysfs_attr_init().
Diffstat (limited to 'arch/arm/mach-ep93xx/ts72xx.c')
-rw-r--r--arch/arm/mach-ep93xx/ts72xx.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/mach-ep93xx/ts72xx.c b/arch/arm/mach-ep93xx/ts72xx.c
index 47a86f07831d..333d259b79d5 100644
--- a/arch/arm/mach-ep93xx/ts72xx.c
+++ b/arch/arm/mach-ep93xx/ts72xx.c
@@ -240,6 +240,26 @@ static struct platform_device ts72xx_rtc_device = {
240 .num_resources = 0, 240 .num_resources = 0,
241}; 241};
242 242
243static struct resource ts72xx_wdt_resources[] = {
244 {
245 .start = TS72XX_WDT_CONTROL_PHYS_BASE,
246 .end = TS72XX_WDT_CONTROL_PHYS_BASE + SZ_4K - 1,
247 .flags = IORESOURCE_MEM,
248 },
249 {
250 .start = TS72XX_WDT_FEED_PHYS_BASE,
251 .end = TS72XX_WDT_FEED_PHYS_BASE + SZ_4K - 1,
252 .flags = IORESOURCE_MEM,
253 },
254};
255
256static struct platform_device ts72xx_wdt_device = {
257 .name = "ts72xx-wdt",
258 .id = -1,
259 .num_resources = ARRAY_SIZE(ts72xx_wdt_resources),
260 .resource = ts72xx_wdt_resources,
261};
262
243static struct ep93xx_eth_data ts72xx_eth_data = { 263static struct ep93xx_eth_data ts72xx_eth_data = {
244 .phy_id = 1, 264 .phy_id = 1,
245}; 265};
@@ -249,6 +269,7 @@ static void __init ts72xx_init_machine(void)
249 ep93xx_init_devices(); 269 ep93xx_init_devices();
250 ts72xx_register_flash(); 270 ts72xx_register_flash();
251 platform_device_register(&ts72xx_rtc_device); 271 platform_device_register(&ts72xx_rtc_device);
272 platform_device_register(&ts72xx_wdt_device);
252 273
253 ep93xx_register_eth(&ts72xx_eth_data, 1); 274 ep93xx_register_eth(&ts72xx_eth_data, 1);
254} 275}