diff options
Diffstat (limited to 'arch/mips/txx9/generic/setup.c')
-rw-r--r-- | arch/mips/txx9/generic/setup.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c index 82272e85a042..7b5705d18deb 100644 --- a/arch/mips/txx9/generic/setup.c +++ b/arch/mips/txx9/generic/setup.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/clk.h> | 20 | #include <linux/clk.h> |
21 | #include <linux/err.h> | 21 | #include <linux/err.h> |
22 | #include <linux/gpio.h> | 22 | #include <linux/gpio.h> |
23 | #include <linux/platform_device.h> | ||
23 | #include <asm/bootinfo.h> | 24 | #include <asm/bootinfo.h> |
24 | #include <asm/time.h> | 25 | #include <asm/time.h> |
25 | #include <asm/reboot.h> | 26 | #include <asm/reboot.h> |
@@ -208,6 +209,17 @@ static void __noreturn txx9_machine_halt(void) | |||
208 | } | 209 | } |
209 | } | 210 | } |
210 | 211 | ||
212 | /* Watchdog support */ | ||
213 | void __init txx9_wdt_init(unsigned long base) | ||
214 | { | ||
215 | struct resource res = { | ||
216 | .start = base, | ||
217 | .end = base + 0x100 - 1, | ||
218 | .flags = IORESOURCE_MEM, | ||
219 | }; | ||
220 | platform_device_register_simple("txx9wdt", -1, &res, 1); | ||
221 | } | ||
222 | |||
211 | /* wrappers */ | 223 | /* wrappers */ |
212 | void __init plat_mem_setup(void) | 224 | void __init plat_mem_setup(void) |
213 | { | 225 | { |