Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
7b2430f2
Commit
7b2430f2
authored
17 years ago
by
Andy Boyett
Browse files
Options
Downloads
Patches
Plain Diff
Patch for extif watchdog support. Thanks b.sander. Closes #2363 #2814 and #3141
SVN-Revision: 10489
parent
fe7e52b4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
target/linux/brcm47xx/patches-2.6.23/610-ssb-watchdog-fix.patch
+53
-0
53 additions, 0 deletions
.../linux/brcm47xx/patches-2.6.23/610-ssb-watchdog-fix.patch
with
53 additions
and
0 deletions
target/linux/brcm47xx/patches-2.6.23/610-ssb-watchdog-fix.patch
0 → 100644
+
53
−
0
View file @
7b2430f2
--- a/drivers/ssb/driver_mipscore.c 2007-12-06 08:07:00.000000000 +0100
+++ b/drivers/ssb/driver_mipscore.c 2007-12-06 10:27:43.000000000 +0100
@@ -31,6 +31,19 @@
ssb_write32(extif->dev, offset, value);
}
+/* Set chip watchdog reset timer to fire in 'ticks' backplane cycles */
+int
+ssb_watchdog(struct ssb_bus *bus, uint ticks)
+{
+ /* instant NMI */
+ if (bus->chipco.dev)
+ ssb_write32(bus->chipco.dev, SSB_CHIPCO_WATCHDOG, ticks);
+ else if (bus->extif.dev)
+ ssb_write32(bus->extif.dev, SSB_EXTIF_WATCHDOG, ticks);
+ return 0;
+}
+EXPORT_SYMBOL(ssb_watchdog);
+
static const u32 ipsflag_irq_mask[] = {
0,
SSB_IPSFLAG_IRQ1,
--- a/include/linux/ssb/ssb_driver_mips.h 2007-12-06 08:07:00.000000000 +0100
+++ b/include/linux/ssb/ssb_driver_mips.h 2007-12-06 10:32:36.000000000 +0100
@@ -30,6 +30,8 @@
extern unsigned int ssb_mips_irq(struct ssb_device *dev);
+/* Set watchdog reset timer to fire in 'ticks' backplane cycles */
+extern int ssb_watchdog(struct ssb_bus *bus, uint ticks);
#else /* CONFIG_SSB_DRIVER_MIPS */
--- a/arch/mips/bcm947xx/setup.c 2007-12-06 08:07:00.000000000 +0100
+++ b/arch/mips/bcm947xx/setup.c 2007-12-06 10:33:39.000000000 +0100
@@ -55,7 +55,7 @@
*/
/* Set the watchdog timer to reset immediately */
- ssb_chipco_watchdog_timer_set(&ssb.chipco, 1);
+ ssb_watchdog(&ssb, 1);
while (1)
cpu_relax();
}
@@ -64,7 +64,7 @@
{
/* Disable interrupts and watchdog and spin forever */
local_irq_disable();
- ssb_chipco_watchdog_timer_set(&ssb.chipco, 0);
+ ssb_watchdog(&ssb, 0);
while (1)
cpu_relax();
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment