-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ssb: Fix watchdog access for devices without a chipcommon
This fixes the SSB watchdog access for devices without a chipcommon. These devices have the watchdog on the extif. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
- Loading branch information
Michael Buesch
authored and
John W. Linville
committed
Feb 21, 2008
1 parent
58ff70d
commit 42bfad4
Showing
7 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Sonics Silicon Backplane | ||
* Embedded systems support code | ||
* | ||
* Copyright 2005-2008, Broadcom Corporation | ||
* Copyright 2006-2008, Michael Buesch <mb@bu3sch.de> | ||
* | ||
* Licensed under the GNU/GPL. See COPYING for details. | ||
*/ | ||
|
||
#include <linux/ssb/ssb.h> | ||
#include <linux/ssb/ssb_embedded.h> | ||
|
||
|
||
int ssb_watchdog_timer_set(struct ssb_bus *bus, u32 ticks) | ||
{ | ||
if (ssb_chipco_available(&bus->chipco)) { | ||
ssb_chipco_watchdog_timer_set(&bus->chipco, ticks); | ||
return 0; | ||
} | ||
if (ssb_extif_available(&bus->extif)) { | ||
ssb_extif_watchdog_timer_set(&bus->extif, ticks); | ||
return 0; | ||
} | ||
return -ENODEV; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef LINUX_SSB_EMBEDDED_H_ | ||
#define LINUX_SSB_EMBEDDED_H_ | ||
|
||
#include <linux/types.h> | ||
#include <linux/ssb/ssb.h> | ||
|
||
|
||
extern int ssb_watchdog_timer_set(struct ssb_bus *bus, u32 ticks); | ||
|
||
#endif /* LINUX_SSB_EMBEDDED_H_ */ |