aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bcma/driver_chipcommon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bcma/driver_chipcommon.c')
-rw-r--r--drivers/bcma/driver_chipcommon.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/bcma/driver_chipcommon.c b/drivers/bcma/driver_chipcommon.c
index 84d4a95e6caf..b7c8a8d4e6d1 100644
--- a/drivers/bcma/driver_chipcommon.c
+++ b/drivers/bcma/driver_chipcommon.c
@@ -178,7 +178,6 @@ void bcma_core_chipcommon_init(struct bcma_drv_cc *cc)
178u32 bcma_chipco_watchdog_timer_set(struct bcma_drv_cc *cc, u32 ticks) 178u32 bcma_chipco_watchdog_timer_set(struct bcma_drv_cc *cc, u32 ticks)
179{ 179{
180 u32 maxt; 180 u32 maxt;
181 enum bcma_clkmode clkmode;
182 181
183 maxt = bcma_chipco_watchdog_get_max_timer(cc); 182 maxt = bcma_chipco_watchdog_get_max_timer(cc);
184 if (cc->capabilities & BCMA_CC_CAP_PMU) { 183 if (cc->capabilities & BCMA_CC_CAP_PMU) {
@@ -188,8 +187,13 @@ u32 bcma_chipco_watchdog_timer_set(struct bcma_drv_cc *cc, u32 ticks)
188 ticks = maxt; 187 ticks = maxt;
189 bcma_cc_write32(cc, BCMA_CC_PMU_WATCHDOG, ticks); 188 bcma_cc_write32(cc, BCMA_CC_PMU_WATCHDOG, ticks);
190 } else { 189 } else {
191 clkmode = ticks ? BCMA_CLKMODE_FAST : BCMA_CLKMODE_DYNAMIC; 190 struct bcma_bus *bus = cc->core->bus;
192 bcma_core_set_clockmode(cc->core, clkmode); 191
192 if (bus->chipinfo.id != BCMA_CHIP_ID_BCM4707 &&
193 bus->chipinfo.id != BCMA_CHIP_ID_BCM53018)
194 bcma_core_set_clockmode(cc->core,
195 ticks ? BCMA_CLKMODE_FAST : BCMA_CLKMODE_DYNAMIC);
196
193 if (ticks > maxt) 197 if (ticks > maxt)
194 ticks = maxt; 198 ticks = maxt;
195 /* instant NMI */ 199 /* instant NMI */