diff options
author | Paul Cercueil <paul@crapouillou.net> | 2010-12-05 15:08:22 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2011-03-15 12:01:44 -0400 |
commit | f865c35224bb310a1b464062ae1e946d261708e3 (patch) | |
tree | ecd0bd8052872aae601cf5ed9e62852655aed87c /arch/mips/jz4740 | |
parent | 4bc30272a15c58fc358bde093703d23bc0cf8e66 (diff) |
watchdog: add JZ4740 watchdog driver
Adds support for the hardware watchdog found in Ingenic's jz4740
System-on-Chip.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'arch/mips/jz4740')
-rw-r--r-- | arch/mips/jz4740/platform.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/mips/jz4740/platform.c b/arch/mips/jz4740/platform.c index 1cc9e544d16b..10929e2bc6d8 100644 --- a/arch/mips/jz4740/platform.c +++ b/arch/mips/jz4740/platform.c | |||
@@ -289,3 +289,19 @@ void jz4740_serial_device_register(void) | |||
289 | 289 | ||
290 | platform_device_register(&jz4740_uart_device); | 290 | platform_device_register(&jz4740_uart_device); |
291 | } | 291 | } |
292 | |||
293 | /* Watchdog */ | ||
294 | static struct resource jz4740_wdt_resources[] = { | ||
295 | { | ||
296 | .start = JZ4740_WDT_BASE_ADDR, | ||
297 | .end = JZ4740_WDT_BASE_ADDR + 0x10 - 1, | ||
298 | .flags = IORESOURCE_MEM, | ||
299 | }, | ||
300 | }; | ||
301 | |||
302 | struct platform_device jz4740_wdt_device = { | ||
303 | .name = "jz4740-wdt", | ||
304 | .id = -1, | ||
305 | .num_resources = ARRAY_SIZE(jz4740_wdt_resources), | ||
306 | .resource = jz4740_wdt_resources, | ||
307 | }; | ||