Skip to content

Commit 00eeedc

Browse files
haukelinvjw
authored andcommitted
bcma: extend workaround for bcm4331
This patch is based on a recent version of the Broadcom SDK. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 1960195 commit 00eeedc

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/bcma/driver_chipcommon_pmu.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,11 @@ void bcma_chipco_bcm4331_ext_pa_lines_ctl(struct bcma_drv_cc *cc, bool enable)
123123
val |= BCMA_CHIPCTL_4331_EXTPA_EN;
124124
if (bus->chipinfo.pkg == 9 || bus->chipinfo.pkg == 11)
125125
val |= BCMA_CHIPCTL_4331_EXTPA_ON_GPIO2_5;
126+
else if (bus->chipinfo.rev > 0)
127+
val |= BCMA_CHIPCTL_4331_EXTPA_EN2;
126128
} else {
127129
val &= ~BCMA_CHIPCTL_4331_EXTPA_EN;
130+
val &= ~BCMA_CHIPCTL_4331_EXTPA_EN2;
128131
val &= ~BCMA_CHIPCTL_4331_EXTPA_ON_GPIO2_5;
129132
}
130133
bcma_cc_write32(cc, BCMA_CC_CHIPCTL, val);

‎include/linux/bcma/bcma_driver_chipcommon.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@
321321
#define BCMA_CHIPCTL_4331_OVR_PIPEAUXPWRDOWN BIT(9) /* override core control on pipe_AuxPowerDown */
322322
#define BCMA_CHIPCTL_4331_PCIE_AUXCLKEN BIT(10) /* pcie_auxclkenable */
323323
#define BCMA_CHIPCTL_4331_PCIE_PIPE_PLLDOWN BIT(11) /* pcie_pipe_pllpowerdown */
324+
#define BCMA_CHIPCTL_4331_EXTPA_EN2 BIT(12) /* 0 ext pa disable, 1 ext pa enabled */
324325
#define BCMA_CHIPCTL_4331_BT_SHD0_ON_GPIO4 BIT(16) /* enable bt_shd0 at gpio4 */
325326
#define BCMA_CHIPCTL_4331_BT_SHD1_ON_GPIO5 BIT(17) /* enable bt_shd1 at gpio5 */
326327

0 commit comments

Comments
 (0)