aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r--arch/arm/mach-omap1/devices.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c
index 2c9a030c5595..63d68cf908af 100644
--- a/arch/arm/mach-omap1/devices.c
+++ b/arch/arm/mach-omap1/devices.c
@@ -275,3 +275,30 @@ static int __init omap1_init_devices(void)
275} 275}
276arch_initcall(omap1_init_devices); 276arch_initcall(omap1_init_devices);
277 277
278#if defined(CONFIG_OMAP_WATCHDOG) || defined(CONFIG_OMAP_WATCHDOG_MODULE)
279
280static struct resource wdt_resources[] = {
281 {
282 .start = 0xfffeb000,
283 .end = 0xfffeb07F,
284 .flags = IORESOURCE_MEM,
285 },
286};
287
288static struct platform_device omap_wdt_device = {
289 .name = "omap_wdt",
290 .id = -1,
291 .num_resources = ARRAY_SIZE(wdt_resources),
292 .resource = wdt_resources,
293};
294
295static int __init omap_init_wdt(void)
296{
297 if (!cpu_is_omap16xx())
298 return;
299
300 platform_device_register(&omap_wdt_device);
301 return 0;
302}
303subsys_initcall(omap_init_wdt);
304#endif