adds timer unit to ifxmips tree
[openwrt/svn-archive/archive.git] / target / linux / ifxmips / files / arch / mips / ifxmips / board.c
index d925cf23620821d6413478ec34529220e94c9ce3..09514daae00347d06a8a2267dcbce96434222e10 100644 (file)
@@ -35,7 +35,7 @@
 #include <asm/io.h>
 #include <asm/ifxmips/ifxmips.h>
 
-#define MAX_IFXMIPS_DEVS               6
+#define MAX_IFXMIPS_DEVS               7
 
 #define BOARD_DANUBE                   "Danube"
 #define BOARD_DANUBE_CHIPID            0x10129083
@@ -73,6 +73,14 @@ static struct platform_device ifxmips_mii[] =
        },
 };
 
+static struct platform_device ifxmips_wdt[] =
+{
+       {
+               .id = 0,
+               .name = "ifxmips_wdt",
+       },
+};
+
 static struct physmap_flash_data ifxmips_mtd_data = {
        .width    = 2,
 };
@@ -148,6 +156,7 @@ int __init ifxmips_init_devices(void)
        ifxmips_devs[dev++] = ifxmips_gpio;
        ifxmips_devs[dev++] = ifxmips_mii;
        ifxmips_devs[dev++] = ifxmips_mtd;
+       ifxmips_devs[dev++] = ifxmips_wdt;
 #ifdef CONFIG_GPIO_DEVICE
        ifxmips_devs[dev++] = ifxmips_gpio_dev;
 #endif