[ar71xx] add hardware watchdog driver
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / files / arch / mips / ar71xx / platform.c
index ce98084d633ba0b70e949a0c01e701dcb2929807..b131ec1e27f7b2ebc45575dc53b4e552f92c3bf3 100644 (file)
@@ -414,6 +414,11 @@ err_free_buttons:
        kfree(p);
 }
 
+void __init ar71xx_add_device_wdt(void)
+{
+       platform_device_register_simple("ar71xx-wdt", -1, NULL, 0);
+}
+
 void __init ar71xx_set_mac_base(unsigned char *mac)
 {
        memcpy(ar71xx_mac_base, mac, ETH_ALEN);
@@ -439,6 +444,7 @@ static int __init ar71xx_machine_setup(void)
        ar71xx_gpio_init();
 
        ar71xx_add_device_uart();
+       ar71xx_add_device_wdt();
 
        mips_machine_setup();
        return 0;