aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bcma
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-06-29 19:44:42 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-07-09 16:36:05 -0400
commite84a38eac8186acee940df7edf64b617cf014d8e (patch)
treeade4d65de3e4e5dbd907a34ad02d63cce8d22ce4 /drivers/bcma
parentb9562545ef0b13c0440ccd8d6dd4111fb77cb17a (diff)
bcma: remove bcma_pmu_{pll,swreg}_init()
These functions are doing nothing in the current code. I do not think we will need these function in the future as the corresponding functions in the Broadcom SDK are just doing something useful on chips supported by ssb or fullmac chips. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma')
-rw-r--r--drivers/bcma/driver_chipcommon_pmu.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/drivers/bcma/driver_chipcommon_pmu.c b/drivers/bcma/driver_chipcommon_pmu.c
index a8fcdf0222e..069fca7ad6c 100644
--- a/drivers/bcma/driver_chipcommon_pmu.c
+++ b/drivers/bcma/driver_chipcommon_pmu.c
@@ -54,22 +54,6 @@ void bcma_chipco_regctl_maskset(struct bcma_drv_cc *cc, u32 offset, u32 mask,
54} 54}
55EXPORT_SYMBOL_GPL(bcma_chipco_regctl_maskset); 55EXPORT_SYMBOL_GPL(bcma_chipco_regctl_maskset);
56 56
57static void bcma_pmu_pll_init(struct bcma_drv_cc *cc)
58{
59 struct bcma_bus *bus = cc->core->bus;
60
61 switch (bus->chipinfo.id) {
62 case BCMA_CHIP_ID_BCM4313:
63 case BCMA_CHIP_ID_BCM4331:
64 case BCMA_CHIP_ID_BCM43224:
65 case BCMA_CHIP_ID_BCM43225:
66 break;
67 default:
68 pr_err("PLL init unknown for device 0x%04X\n",
69 bus->chipinfo.id);
70 }
71}
72
73static void bcma_pmu_resources_init(struct bcma_drv_cc *cc) 57static void bcma_pmu_resources_init(struct bcma_drv_cc *cc)
74{ 58{
75 struct bcma_bus *bus = cc->core->bus; 59 struct bcma_bus *bus = cc->core->bus;
@@ -96,22 +80,6 @@ static void bcma_pmu_resources_init(struct bcma_drv_cc *cc)
96 bcma_cc_write32(cc, BCMA_CC_PMU_MAXRES_MSK, max_msk); 80 bcma_cc_write32(cc, BCMA_CC_PMU_MAXRES_MSK, max_msk);
97} 81}
98 82
99void bcma_pmu_swreg_init(struct bcma_drv_cc *cc)
100{
101 struct bcma_bus *bus = cc->core->bus;
102
103 switch (bus->chipinfo.id) {
104 case BCMA_CHIP_ID_BCM4313:
105 case BCMA_CHIP_ID_BCM4331:
106 case BCMA_CHIP_ID_BCM43224:
107 case BCMA_CHIP_ID_BCM43225:
108 break;
109 default:
110 pr_err("PMU switch/regulators init unknown for device "
111 "0x%04X\n", bus->chipinfo.id);
112 }
113}
114
115/* Disable to allow reading SPROM. Don't know the adventages of enabling it. */ 83/* Disable to allow reading SPROM. Don't know the adventages of enabling it. */
116void bcma_chipco_bcm4331_ext_pa_lines_ctl(struct bcma_drv_cc *cc, bool enable) 84void bcma_chipco_bcm4331_ext_pa_lines_ctl(struct bcma_drv_cc *cc, bool enable)
117{ 85{
@@ -192,9 +160,7 @@ void bcma_pmu_init(struct bcma_drv_cc *cc)
192 bcma_cc_set32(cc, BCMA_CC_PMU_CTL, 160 bcma_cc_set32(cc, BCMA_CC_PMU_CTL,
193 BCMA_CC_PMU_CTL_NOILPONW); 161 BCMA_CC_PMU_CTL_NOILPONW);
194 162
195 bcma_pmu_pll_init(cc);
196 bcma_pmu_resources_init(cc); 163 bcma_pmu_resources_init(cc);
197 bcma_pmu_swreg_init(cc);
198 bcma_pmu_workarounds(cc); 164 bcma_pmu_workarounds(cc);
199} 165}
200 166