diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-03-14 01:26:57 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-03-14 01:26:57 +0000 |
commit | 53a5d4131f8971d4f4a32228e78ba1a55a0381c6 (patch) | |
tree | 9a65732cf43edf1faebb64ad9a4fd7f632da2282 /target/linux/brcm47xx-2.6/files/drivers | |
parent | bf622ab0ae504d01ca9f589b8d67d3902c068133 (diff) | |
download | mtk-20170518-53a5d4131f8971d4f4a32228e78ba1a55a0381c6.zip mtk-20170518-53a5d4131f8971d4f4a32228e78ba1a55a0381c6.tar.gz mtk-20170518-53a5d4131f8971d4f4a32228e78ba1a55a0381c6.tar.bz2 |
add reboot fix from #1312
SVN-Revision: 6563
Diffstat (limited to 'target/linux/brcm47xx-2.6/files/drivers')
-rw-r--r-- | target/linux/brcm47xx-2.6/files/drivers/ssb/driver_chipcommon/chipcommon.c | 10 |
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 c3d893d..6d3412b 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); |