diff options
Diffstat (limited to 'arch/arm/mach-omap1/devices.c')
-rw-r--r-- | arch/arm/mach-omap1/devices.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index aa0725608fb1..a919366a90dd 100644 --- a/arch/arm/mach-omap1/devices.c +++ b/arch/arm/mach-omap1/devices.c | |||
@@ -232,3 +232,30 @@ static int __init omap1_init_devices(void) | |||
232 | } | 232 | } |
233 | arch_initcall(omap1_init_devices); | 233 | arch_initcall(omap1_init_devices); |
234 | 234 | ||
235 | #if defined(CONFIG_OMAP_WATCHDOG) || defined(CONFIG_OMAP_WATCHDOG_MODULE) | ||
236 | |||
237 | static struct resource wdt_resources[] = { | ||
238 | { | ||
239 | .start = 0xfffeb000, | ||
240 | .end = 0xfffeb07F, | ||
241 | .flags = IORESOURCE_MEM, | ||
242 | }, | ||
243 | }; | ||
244 | |||
245 | static struct platform_device omap_wdt_device = { | ||
246 | .name = "omap_wdt", | ||
247 | .id = -1, | ||
248 | .num_resources = ARRAY_SIZE(wdt_resources), | ||
249 | .resource = wdt_resources, | ||
250 | }; | ||
251 | |||
252 | static int __init omap_init_wdt(void) | ||
253 | { | ||
254 | if (!cpu_is_omap16xx()) | ||
255 | return; | ||
256 | |||
257 | platform_device_register(&omap_wdt_device); | ||
258 | return 0; | ||
259 | } | ||
260 | subsys_initcall(omap_init_wdt); | ||
261 | #endif | ||