linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] b43: LP-PHY: Update B2062 radio init with recent spec changes
@ 2009-08-16 18:08 Gábor Stefanik
  2009-08-16 18:09 ` Michael Buesch
  0 siblings, 1 reply; 2+ messages in thread
From: Gábor Stefanik @ 2009-08-16 18:08 UTC (permalink / raw)
  To: John Linville, Michael Buesch, Larry Finger
  Cc: Mark Huijgen, Broadcom Wireless, linux-wireless

The spec for initializing the B2062 radio have changed recently,
update the code to match the changes.

Signed-off-by: Gábor Stefanik <netrolller.3d@gmail.com>
---
 drivers/net/wireless/b43/phy_lp.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/b43/phy_lp.c b/drivers/net/wireless/b43/phy_lp.c
index 5a7b873..34b7910 100644
--- a/drivers/net/wireless/b43/phy_lp.c
+++ b/drivers/net/wireless/b43/phy_lp.c
@@ -539,10 +539,15 @@ static void lpphy_2062_init(struct b43_wldev *dev)
 	b43_radio_write(dev, B2062_N_TX_CTL3, 0);
 	b43_radio_write(dev, B2062_N_TX_CTL4, 0);
 	b43_radio_write(dev, B2062_N_TX_CTL5, 0);
+	b43_radio_write(dev, B2062_N_TX_CTL6, 0);
 	b43_radio_write(dev, B2062_N_PDN_CTL0, 0x40);
 	b43_radio_write(dev, B2062_N_PDN_CTL0, 0);
 	b43_radio_write(dev, B2062_N_CALIB_TS, 0x10);
 	b43_radio_write(dev, B2062_N_CALIB_TS, 0);
+	if (dev->phy.rev > 0) {
+		b43_radio_write(dev, B2062_S_BG_CTL1,
+			(b43_radio_read(dev, B2062_N_COMM2) >> 1) | 0x80);
+	}
 	if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ)
 		b43_radio_set(dev, B2062_N_TSSI_CTL0, 0x1);
 	else
-- 
1.6.2.4




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] b43: LP-PHY: Update B2062 radio init with recent spec changes
  2009-08-16 18:08 [PATCH] b43: LP-PHY: Update B2062 radio init with recent spec changes Gábor Stefanik
@ 2009-08-16 18:09 ` Michael Buesch
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Buesch @ 2009-08-16 18:09 UTC (permalink / raw)
  To: Gábor Stefanik
  Cc: John Linville, Larry Finger, Mark Huijgen, Broadcom Wireless,
	linux-wireless

On Sunday 16 August 2009 20:08:13 Gábor Stefanik wrote:
> The spec for initializing the B2062 radio have changed recently,
> update the code to match the changes.
> 
> Signed-off-by: Gábor Stefanik <netrolller.3d@gmail.com>

ack

> ---
>  drivers/net/wireless/b43/phy_lp.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/net/wireless/b43/phy_lp.c b/drivers/net/wireless/b43/phy_lp.c
> index 5a7b873..34b7910 100644
> --- a/drivers/net/wireless/b43/phy_lp.c
> +++ b/drivers/net/wireless/b43/phy_lp.c
> @@ -539,10 +539,15 @@ static void lpphy_2062_init(struct b43_wldev *dev)
>  	b43_radio_write(dev, B2062_N_TX_CTL3, 0);
>  	b43_radio_write(dev, B2062_N_TX_CTL4, 0);
>  	b43_radio_write(dev, B2062_N_TX_CTL5, 0);
> +	b43_radio_write(dev, B2062_N_TX_CTL6, 0);
>  	b43_radio_write(dev, B2062_N_PDN_CTL0, 0x40);
>  	b43_radio_write(dev, B2062_N_PDN_CTL0, 0);
>  	b43_radio_write(dev, B2062_N_CALIB_TS, 0x10);
>  	b43_radio_write(dev, B2062_N_CALIB_TS, 0);
> +	if (dev->phy.rev > 0) {
> +		b43_radio_write(dev, B2062_S_BG_CTL1,
> +			(b43_radio_read(dev, B2062_N_COMM2) >> 1) | 0x80);
> +	}
>  	if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ)
>  		b43_radio_set(dev, B2062_N_TSSI_CTL0, 0x1);
>  	else



-- 
Greetings, Michael.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-16 18:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-16 18:08 [PATCH] b43: LP-PHY: Update B2062 radio init with recent spec changes Gábor Stefanik
2009-08-16 18:09 ` Michael Buesch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).