aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bcma
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-06-29 19:44:44 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-07-09 16:36:06 -0400
commitc586e10992b2e5e2dfe7cca9be615818cfb98605 (patch)
treeef26566c0647ce12c915d016c61c40fc35c66eac /include/linux/bcma
parent6270d1c39c96088c3cbbab35a2658d07cee364ae (diff)
bcma: add bcma_pmu_spuravoid_pllupdate()
This function is needed by brcmsmac. This code is based on code from the Broadcom SDK. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/bcma')
-rw-r--r--include/linux/bcma/bcma_driver_chipcommon.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/bcma/bcma_driver_chipcommon.h b/include/linux/bcma/bcma_driver_chipcommon.h
index 09f31ade1410..12975eac403f 100644
--- a/include/linux/bcma/bcma_driver_chipcommon.h
+++ b/include/linux/bcma/bcma_driver_chipcommon.h
@@ -308,6 +308,19 @@
308#define BCMA_CC_PPL_PCHI_OFF 5 308#define BCMA_CC_PPL_PCHI_OFF 5
309#define BCMA_CC_PPL_PCHI_MASK 0x0000003f 309#define BCMA_CC_PPL_PCHI_MASK 0x0000003f
310 310
311#define BCMA_CC_PMU_PLL_CTL0 0
312#define BCMA_CC_PMU_PLL_CTL1 1
313#define BCMA_CC_PMU_PLL_CTL2 2
314#define BCMA_CC_PMU_PLL_CTL3 3
315#define BCMA_CC_PMU_PLL_CTL4 4
316#define BCMA_CC_PMU_PLL_CTL5 5
317
318#define BCMA_CC_PMU1_PLL0_PC0_P1DIV_MASK 0x00f00000
319#define BCMA_CC_PMU1_PLL0_PC0_P1DIV_SHIFT 20
320
321#define BCMA_CC_PMU1_PLL0_PC2_NDIV_INT_MASK 0x1ff00000
322#define BCMA_CC_PMU1_PLL0_PC2_NDIV_INT_SHIFT 20
323
311/* BCM4331 ChipControl numbers. */ 324/* BCM4331 ChipControl numbers. */
312#define BCMA_CHIPCTL_4331_BT_COEXIST BIT(0) /* 0 disable */ 325#define BCMA_CHIPCTL_4331_BT_COEXIST BIT(0) /* 0 disable */
313#define BCMA_CHIPCTL_4331_SECI BIT(1) /* 0 SECI is disabled (JATG functional) */ 326#define BCMA_CHIPCTL_4331_SECI BIT(1) /* 0 SECI is disabled (JATG functional) */
@@ -420,5 +433,6 @@ extern void bcma_chipco_chipctl_maskset(struct bcma_drv_cc *cc,
420 u32 offset, u32 mask, u32 set); 433 u32 offset, u32 mask, u32 set);
421extern void bcma_chipco_regctl_maskset(struct bcma_drv_cc *cc, 434extern void bcma_chipco_regctl_maskset(struct bcma_drv_cc *cc,
422 u32 offset, u32 mask, u32 set); 435 u32 offset, u32 mask, u32 set);
436extern void bcma_pmu_spuravoid_pllupdate(struct bcma_drv_cc *cc, int spuravoid);
423 437
424#endif /* LINUX_BCMA_DRIVER_CC_H_ */ 438#endif /* LINUX_BCMA_DRIVER_CC_H_ */