add reboot fix from #1312
[openwrt/svn-archive/archive.git] / target / linux / brcm47xx-2.6 / files / drivers / ssb / driver_chipcommon / chipcommon.c
index c3d893d879087dd24f29df63a45fc7c372951ed0..6d3412b585461d7a68e3d196934d701e98bf1010 100644 (file)
@@ -401,3 +401,13 @@ int ssb_chipco_serial_init(struct ssb_chipcommon *cc,
        return nr_ports;
 }
 #endif /* CONFIG_SSB_SERIAL */
+
+/* Set chip watchdog reset timer to fire in 'ticks' backplane cycles */
+int
+ssb_chipco_watchdog(struct ssb_chipcommon *cc, uint ticks)
+{
+       /* instant NMI */
+       chipco_write32(cc, SSB_CHIPCO_WATCHDOG, ticks);
+       return 0;
+}
+EXPORT_SYMBOL(ssb_chipco_watchdog);