diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2011-07-22 19:20:14 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-08 14:29:32 -0400 |
commit | c1d1c5d4213ee96e054c4d195117368972a4c01f (patch) | |
tree | 4ce75f49f1b46835ab613bd85084b9ce863c5853 /drivers/watchdog | |
parent | a656ffcbc7a98a80d2136ae6bbdd8ae2eb48c78a (diff) |
bcm47xx: add support for bcma bus
This patch add support for the bcma bus. Broadcom uses only Mips 74K
CPUs on the new SoC and on the old ons using ssb bus there are no Mips
74K CPUs.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/bcm47xx_wdt.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/watchdog/bcm47xx_wdt.c b/drivers/watchdog/bcm47xx_wdt.c index 6b037024464f..5c5f4b14fd05 100644 --- a/drivers/watchdog/bcm47xx_wdt.c +++ b/drivers/watchdog/bcm47xx_wdt.c | |||
@@ -60,6 +60,12 @@ static inline void bcm47xx_wdt_hw_start(void) | |||
60 | ssb_watchdog_timer_set(&bcm47xx_bus.ssb, 0xfffffff); | 60 | ssb_watchdog_timer_set(&bcm47xx_bus.ssb, 0xfffffff); |
61 | break; | 61 | break; |
62 | #endif | 62 | #endif |
63 | #ifdef CONFIG_BCM47XX_BCMA | ||
64 | case BCM47XX_BUS_TYPE_BCMA: | ||
65 | bcma_chipco_watchdog_timer_set(&bcm47xx_bus.bcma.bus.drv_cc, | ||
66 | 0xfffffff); | ||
67 | break; | ||
68 | #endif | ||
63 | } | 69 | } |
64 | } | 70 | } |
65 | 71 | ||
@@ -70,6 +76,11 @@ static inline int bcm47xx_wdt_hw_stop(void) | |||
70 | case BCM47XX_BUS_TYPE_SSB: | 76 | case BCM47XX_BUS_TYPE_SSB: |
71 | return ssb_watchdog_timer_set(&bcm47xx_bus.ssb, 0); | 77 | return ssb_watchdog_timer_set(&bcm47xx_bus.ssb, 0); |
72 | #endif | 78 | #endif |
79 | #ifdef CONFIG_BCM47XX_BCMA | ||
80 | case BCM47XX_BUS_TYPE_BCMA: | ||
81 | bcma_chipco_watchdog_timer_set(&bcm47xx_bus.bcma.bus.drv_cc, 0); | ||
82 | return 0; | ||
83 | #endif | ||
73 | } | 84 | } |
74 | return -EINVAL; | 85 | return -EINVAL; |
75 | } | 86 | } |