aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/devices.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@deeprootsystems.com>2009-04-29 19:23:59 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-05-26 10:18:15 -0400
commitfb6313879caa46831d71a316b97b51d37d100269 (patch)
tree17441fc3ff71bfda33af952f4ff7d4e1f1ea7403 /arch/arm/mach-davinci/devices.c
parent0521444d497ee1f8a31314d2ce3c6b9edab25b51 (diff)
davinci: add platform support for watchdog timer
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/devices.c')
-rw-r--r--arch/arm/mach-davinci/devices.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/devices.c b/arch/arm/mach-davinci/devices.c
index a31370b93dd2..7fdc408105b2 100644
--- a/arch/arm/mach-davinci/devices.c
+++ b/arch/arm/mach-davinci/devices.c
@@ -54,3 +54,38 @@ void __init davinci_init_i2c(struct davinci_i2c_platform_data *pdata)
54 (void) platform_device_register(&davinci_i2c_device); 54 (void) platform_device_register(&davinci_i2c_device);
55} 55}
56 56
57/*-------------------------------------------------------------------------*/
58
59static struct resource wdt_resources[] = {
60 {
61 .start = 0x01c21c00,
62 .end = 0x01c21fff,
63 .flags = IORESOURCE_MEM,
64 },
65};
66
67struct platform_device davinci_wdt_device = {
68 .name = "watchdog",
69 .id = -1,
70 .num_resources = ARRAY_SIZE(wdt_resources),
71 .resource = wdt_resources,
72};
73
74static void davinci_init_wdt(void)
75{
76 platform_device_register(&davinci_wdt_device);
77}
78
79/*-------------------------------------------------------------------------*/
80
81static int __init davinci_init_devices(void)
82{
83 /* please keep these calls, and their implementations above,
84 * in alphabetical order so they're easier to sort through.
85 */
86 davinci_init_wdt();
87
88 return 0;
89}
90arch_initcall(davinci_init_devices);
91