};
#endif
+/*
+ * rk29 wdt device ADDED BY HHB@ROCK-CHIPS.COM
+ */
+
+#ifdef CONFIG_RK29_WATCHDOG
+
+static struct resource resources_wdt[] = {
+ {
+ .start = IRQ_WDT,
+ .end = IRQ_WDT,
+ .flags = IORESOURCE_IRQ,
+ },
+ {
+ .start = RK30_WDT_PHYS,
+ .end = RK30_WDT_PHYS + RK30_WDT_SIZE - 1,
+ .flags = IORESOURCE_MEM,
+ },
+};
+
+struct platform_device rk29_device_wdt = {
+ .name = "rk29-wdt",
+ .id = 0,
+ .num_resources = ARRAY_SIZE(resources_wdt),
+ .resource = resources_wdt,
+};
+
+#endif
+
static int __init rk30_init_devices(void)
{
rk30_init_dma();
#ifdef CONFIG_RK29_VMAC
platform_device_register(&device_vmac);
#endif
-
+#ifdef CONFIG_RK29_WATCHDOG
+ platform_device_register(&rk29_device_wdt);
+#endif
return 0;
}
arch_initcall(rk30_init_devices);