aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-03-27 12:23:09 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-03-27 13:39:08 -0400
commite3f2ae179c5ca8e1c7a73d1962de5c6555677d6a (patch)
tree1d785cb0daddf4b8e83b9fc096deb324af8d3227
parent0b8d6e59a128f4fecce9ea3cddc1872a60a29402 (diff)
bcma: use BCMA_CC_PMU_CTL_* constants
Instead of hard coding these values use the existing constants. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/bcma/driver_chipcommon_pmu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/bcma/driver_chipcommon_pmu.c b/drivers/bcma/driver_chipcommon_pmu.c
index 932b101dee36..7e88fffaf3f5 100644
--- a/drivers/bcma/driver_chipcommon_pmu.c
+++ b/drivers/bcma/driver_chipcommon_pmu.c
@@ -373,7 +373,7 @@ void bcma_pmu_spuravoid_pllupdate(struct bcma_drv_cc *cc, int spuravoid)
373 tmp |= (bcm5357_bcm43236_ndiv[spuravoid]) << BCMA_CC_PMU1_PLL0_PC2_NDIV_INT_SHIFT; 373 tmp |= (bcm5357_bcm43236_ndiv[spuravoid]) << BCMA_CC_PMU1_PLL0_PC2_NDIV_INT_SHIFT;
374 bcma_cc_write32(cc, BCMA_CC_PLLCTL_DATA, tmp); 374 bcma_cc_write32(cc, BCMA_CC_PLLCTL_DATA, tmp);
375 375
376 tmp = 1 << 10; 376 tmp = BCMA_CC_PMU_CTL_PLL_UPD;
377 break; 377 break;
378 378
379 case BCMA_CHIP_ID_BCM4331: 379 case BCMA_CHIP_ID_BCM4331:
@@ -394,7 +394,7 @@ void bcma_pmu_spuravoid_pllupdate(struct bcma_drv_cc *cc, int spuravoid)
394 bcma_pmu_spuravoid_pll_write(cc, BCMA_CC_PMU_PLL_CTL2, 394 bcma_pmu_spuravoid_pll_write(cc, BCMA_CC_PMU_PLL_CTL2,
395 0x03000a08); 395 0x03000a08);
396 } 396 }
397 tmp = 1 << 10; 397 tmp = BCMA_CC_PMU_CTL_PLL_UPD;
398 break; 398 break;
399 399
400 case BCMA_CHIP_ID_BCM43224: 400 case BCMA_CHIP_ID_BCM43224:
@@ -427,7 +427,7 @@ void bcma_pmu_spuravoid_pllupdate(struct bcma_drv_cc *cc, int spuravoid)
427 bcma_pmu_spuravoid_pll_write(cc, BCMA_CC_PMU_PLL_CTL5, 427 bcma_pmu_spuravoid_pll_write(cc, BCMA_CC_PMU_PLL_CTL5,
428 0x88888815); 428 0x88888815);
429 } 429 }
430 tmp = 1 << 10; 430 tmp = BCMA_CC_PMU_CTL_PLL_UPD;
431 break; 431 break;
432 432
433 case BCMA_CHIP_ID_BCM4716: 433 case BCMA_CHIP_ID_BCM4716:
@@ -461,7 +461,7 @@ void bcma_pmu_spuravoid_pllupdate(struct bcma_drv_cc *cc, int spuravoid)
461 0x88888815); 461 0x88888815);
462 } 462 }
463 463
464 tmp = 3 << 9; 464 tmp = BCMA_CC_PMU_CTL_PLL_UPD | BCMA_CC_PMU_CTL_NOILPONW;
465 break; 465 break;
466 466
467 case BCMA_CHIP_ID_BCM43227: 467 case BCMA_CHIP_ID_BCM43227:
@@ -497,7 +497,7 @@ void bcma_pmu_spuravoid_pllupdate(struct bcma_drv_cc *cc, int spuravoid)
497 bcma_pmu_spuravoid_pll_write(cc, BCMA_CC_PMU_PLL_CTL5, 497 bcma_pmu_spuravoid_pll_write(cc, BCMA_CC_PMU_PLL_CTL5,
498 0x88888815); 498 0x88888815);
499 } 499 }
500 tmp = 1 << 10; 500 tmp = BCMA_CC_PMU_CTL_PLL_UPD;
501 break; 501 break;
502 default: 502 default:
503 bcma_err(bus, "Unknown spuravoidance settings for chip 0x%04X, not changing PLL\n", 503 bcma_err(bus, "Unknown spuravoidance settings for chip 0x%04X, not changing PLL\n",