aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ep93xx/ts72xx.c
diff options
context:
space:
mode:
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}