diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-06-29 19:44:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-09 16:36:02 -0400 |
commit | 00eeedcf084a21bf436ff3147f11f0923c811155 (patch) | |
tree | 5aecf06b34d6ab3bde12b8f2fe5c33dcd1b06116 | |
parent | 19601957252413676ff107faf0fb00a80874c253 (diff) |
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>
-rw-r--r-- | drivers/bcma/driver_chipcommon_pmu.c | 3 | ||||
-rw-r--r-- | include/linux/bcma/bcma_driver_chipcommon.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/bcma/driver_chipcommon_pmu.c b/drivers/bcma/driver_chipcommon_pmu.c index 61ce4054b3c3..f18df1f392ec 100644 --- a/drivers/bcma/driver_chipcommon_pmu.c +++ b/drivers/bcma/driver_chipcommon_pmu.c | |||
@@ -123,8 +123,11 @@ void bcma_chipco_bcm4331_ext_pa_lines_ctl(struct bcma_drv_cc *cc, bool enable) | |||
123 | val |= BCMA_CHIPCTL_4331_EXTPA_EN; | 123 | val |= BCMA_CHIPCTL_4331_EXTPA_EN; |
124 | if (bus->chipinfo.pkg == 9 || bus->chipinfo.pkg == 11) | 124 | if (bus->chipinfo.pkg == 9 || bus->chipinfo.pkg == 11) |
125 | val |= BCMA_CHIPCTL_4331_EXTPA_ON_GPIO2_5; | 125 | val |= BCMA_CHIPCTL_4331_EXTPA_ON_GPIO2_5; |
126 | else if (bus->chipinfo.rev > 0) | ||
127 | val |= BCMA_CHIPCTL_4331_EXTPA_EN2; | ||
126 | } else { | 128 | } else { |
127 | val &= ~BCMA_CHIPCTL_4331_EXTPA_EN; | 129 | val &= ~BCMA_CHIPCTL_4331_EXTPA_EN; |
130 | val &= ~BCMA_CHIPCTL_4331_EXTPA_EN2; | ||
128 | val &= ~BCMA_CHIPCTL_4331_EXTPA_ON_GPIO2_5; | 131 | val &= ~BCMA_CHIPCTL_4331_EXTPA_ON_GPIO2_5; |
129 | } | 132 | } |
130 | bcma_cc_write32(cc, BCMA_CC_CHIPCTL, val); | 133 | bcma_cc_write32(cc, BCMA_CC_CHIPCTL, val); |
diff --git a/include/linux/bcma/bcma_driver_chipcommon.h b/include/linux/bcma/bcma_driver_chipcommon.h index 8bbfe31fbac8..1e523cc61860 100644 --- a/include/linux/bcma/bcma_driver_chipcommon.h +++ b/include/linux/bcma/bcma_driver_chipcommon.h | |||
@@ -321,6 +321,7 @@ | |||
321 | #define BCMA_CHIPCTL_4331_OVR_PIPEAUXPWRDOWN BIT(9) /* override core control on pipe_AuxPowerDown */ | 321 | #define BCMA_CHIPCTL_4331_OVR_PIPEAUXPWRDOWN BIT(9) /* override core control on pipe_AuxPowerDown */ |
322 | #define BCMA_CHIPCTL_4331_PCIE_AUXCLKEN BIT(10) /* pcie_auxclkenable */ | 322 | #define BCMA_CHIPCTL_4331_PCIE_AUXCLKEN BIT(10) /* pcie_auxclkenable */ |
323 | #define BCMA_CHIPCTL_4331_PCIE_PIPE_PLLDOWN BIT(11) /* pcie_pipe_pllpowerdown */ | 323 | #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 */ | ||
324 | #define BCMA_CHIPCTL_4331_BT_SHD0_ON_GPIO4 BIT(16) /* enable bt_shd0 at gpio4 */ | 325 | #define BCMA_CHIPCTL_4331_BT_SHD0_ON_GPIO4 BIT(16) /* enable bt_shd0 at gpio4 */ |
325 | #define BCMA_CHIPCTL_4331_BT_SHD1_ON_GPIO5 BIT(17) /* enable bt_shd1 at gpio5 */ | 326 | #define BCMA_CHIPCTL_4331_BT_SHD1_ON_GPIO5 BIT(17) /* enable bt_shd1 at gpio5 */ |
326 | 327 | ||