aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43
diff options
context:
space:
mode:
authorGábor Stefanik <netrolller.3d@gmail.com>2009-08-26 14:51:26 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-28 14:40:53 -0400
commit06e4da268c0e8f3b8408403d65e47d2885a78ff2 (patch)
tree971fffcefbe06c5bba590953a06ced39947f1198 /drivers/net/wireless/b43
parent68ec53292c7f09056152efa9a6ee2591c794f08c (diff)
ssb: Implement PMU LDO control and use it in b43
Implement the "PMU LDO set voltage" and "PMU LDO PA ref enable" functions, and use them during LP-PHY baseband init in b43. Signed-off-by: Gábor Stefanik <netrolller.3d@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r--drivers/net/wireless/b43/phy_lp.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/wireless/b43/phy_lp.c b/drivers/net/wireless/b43/phy_lp.c
index 1a57d3390e92..80f245c04042 100644
--- a/drivers/net/wireless/b43/phy_lp.c
+++ b/drivers/net/wireless/b43/phy_lp.c
@@ -234,19 +234,15 @@ static void lpphy_baseband_rev0_1_init(struct b43_wldev *dev)
234 if ((bus->sprom.boardflags_lo & B43_BFL_FEM) && 234 if ((bus->sprom.boardflags_lo & B43_BFL_FEM) &&
235 ((b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) || 235 ((b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) ||
236 (bus->sprom.boardflags_hi & B43_BFH_PAREF))) { 236 (bus->sprom.boardflags_hi & B43_BFH_PAREF))) {
237 /* TODO: 237 ssb_pmu_set_ldo_voltage(&bus->chipco, LDO_PAREF, 0x28);
238 * Set the LDO voltage to 0x0028 - FIXME: What is this? 238 ssb_pmu_set_ldo_paref(&bus->chipco, true);
239 * Call sb_pmu_set_ldo_voltage with 4 and the LDO voltage
240 * as arguments
241 * Call sb_pmu_paref_ldo_enable with argument TRUE
242 */
243 if (dev->phy.rev == 0) { 239 if (dev->phy.rev == 0) {
244 b43_phy_maskset(dev, B43_LPPHY_LP_RF_SIGNAL_LUT, 240 b43_phy_maskset(dev, B43_LPPHY_LP_RF_SIGNAL_LUT,
245 0xFFCF, 0x0010); 241 0xFFCF, 0x0010);
246 } 242 }
247 b43_lptab_write(dev, B43_LPTAB16(11, 7), 60); 243 b43_lptab_write(dev, B43_LPTAB16(11, 7), 60);
248 } else { 244 } else {
249 //TODO: Call ssb_pmu_paref_ldo_enable with argument FALSE 245 ssb_pmu_set_ldo_paref(&bus->chipco, false);
250 b43_phy_maskset(dev, B43_LPPHY_LP_RF_SIGNAL_LUT, 246 b43_phy_maskset(dev, B43_LPPHY_LP_RF_SIGNAL_LUT,
251 0xFFCF, 0x0020); 247 0xFFCF, 0x0020);
252 b43_lptab_write(dev, B43_LPTAB16(11, 7), 100); 248 b43_lptab_write(dev, B43_LPTAB16(11, 7), 100);