aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bcma
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bcma')
-rw-r--r--drivers/bcma/driver_chipcommon_pmu.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/drivers/bcma/driver_chipcommon_pmu.c b/drivers/bcma/driver_chipcommon_pmu.c
index 2d9ac3e325ae..a8fcdf0222eb 100644
--- a/drivers/bcma/driver_chipcommon_pmu.c
+++ b/drivers/bcma/driver_chipcommon_pmu.c
@@ -139,7 +139,11 @@ void bcma_pmu_workarounds(struct bcma_drv_cc *cc)
139 139
140 switch (bus->chipinfo.id) { 140 switch (bus->chipinfo.id) {
141 case BCMA_CHIP_ID_BCM4313: 141 case BCMA_CHIP_ID_BCM4313:
142 bcma_chipco_chipctl_maskset(cc, 0, ~0, 0x7); 142 /* enable 12 mA drive strenth for 4313 and set chipControl
143 register bit 1 */
144 bcma_chipco_chipctl_maskset(cc, 0,
145 BCMA_CCTRL_4313_12MA_LED_DRIVE,
146 BCMA_CCTRL_4313_12MA_LED_DRIVE);
143 break; 147 break;
144 case BCMA_CHIP_ID_BCM4331: 148 case BCMA_CHIP_ID_BCM4331:
145 case BCMA_CHIP_ID_BCM43431: 149 case BCMA_CHIP_ID_BCM43431:
@@ -147,12 +151,20 @@ void bcma_pmu_workarounds(struct bcma_drv_cc *cc)
147 bcma_chipco_bcm4331_ext_pa_lines_ctl(cc, true); 151 bcma_chipco_bcm4331_ext_pa_lines_ctl(cc, true);
148 break; 152 break;
149 case BCMA_CHIP_ID_BCM43224: 153 case BCMA_CHIP_ID_BCM43224:
154 case BCMA_CHIP_ID_BCM43421:
155 /* enable 12 mA drive strenth for 43224 and set chipControl
156 register bit 15 */
150 if (bus->chipinfo.rev == 0) { 157 if (bus->chipinfo.rev == 0) {
151 pr_err("Workarounds for 43224 rev 0 not fully " 158 bcma_cc_maskset32(cc, BCMA_CC_CHIPCTL,
152 "implemented\n"); 159 BCMA_CCTRL_43224_GPIO_TOGGLE,
153 bcma_chipco_chipctl_maskset(cc, 0, ~0, 0x00F000F0); 160 BCMA_CCTRL_43224_GPIO_TOGGLE);
161 bcma_chipco_chipctl_maskset(cc, 0,
162 BCMA_CCTRL_43224A0_12MA_LED_DRIVE,
163 BCMA_CCTRL_43224A0_12MA_LED_DRIVE);
154 } else { 164 } else {
155 bcma_chipco_chipctl_maskset(cc, 0, ~0, 0xF0); 165 bcma_chipco_chipctl_maskset(cc, 0,
166 BCMA_CCTRL_43224B0_12MA_LED_DRIVE,
167 BCMA_CCTRL_43224B0_12MA_LED_DRIVE);
156 } 168 }
157 break; 169 break;
158 case BCMA_CHIP_ID_BCM43225: 170 case BCMA_CHIP_ID_BCM43225: