aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx-2.6/files/drivers/ssb
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-03-14 01:26:57 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-03-14 01:26:57 +0000
commita091fb867b3df7eda357e216d4d5bbcacac9eb07 (patch)
treede119e55e0313cbc7e512f5960535e55e347f753 /target/linux/brcm47xx-2.6/files/drivers/ssb
parent153a864700d0c5d7acacdaf80015e943fc471c10 (diff)
downloadmaster-187ad058-a091fb867b3df7eda357e216d4d5bbcacac9eb07.tar.gz
master-187ad058-a091fb867b3df7eda357e216d4d5bbcacac9eb07.tar.bz2
master-187ad058-a091fb867b3df7eda357e216d4d5bbcacac9eb07.zip
add reboot fix from #1312
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6563 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx-2.6/files/drivers/ssb')
-rw-r--r--target/linux/brcm47xx-2.6/files/drivers/ssb/driver_chipcommon/chipcommon.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/brcm47xx-2.6/files/drivers/ssb/driver_chipcommon/chipcommon.c b/target/linux/brcm47xx-2.6/files/drivers/ssb/driver_chipcommon/chipcommon.c
index c3d893d879..6d3412b585 100644
--- a/target/linux/brcm47xx-2.6/files/drivers/ssb/driver_chipcommon/chipcommon.c
+++ b/target/linux/brcm47xx-2.6/files/drivers/ssb/driver_chipcommon/chipcommon.c
@@ -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);