From: "Rafał Miłecki" <zajec5@gmail.com>
To: linux-wireless@vger.kernel.org,
"John W. Linville" <linville@tuxdriver.com>
Cc: b43-dev@lists.infradead.org, "Rafał Miłecki" <zajec5@gmail.com>
Subject: [PATCH 2/4] b43: HT-PHY: init: implement few simple PHY writes
Date: Fri, 12 Aug 2011 13:13:45 +0200 [thread overview]
Message-ID: <1313147627-8713-2-git-send-email-zajec5@gmail.com> (raw)
In-Reply-To: <1313147627-8713-1-git-send-email-zajec5@gmail.com>
Signed-off-by: Rafa? Mi?ecki <zajec5@gmail.com>
---
Not much magic, after zeroing EXTG regs, ndis does:
phy_read(0x0800) -> 0x0003
phy_write(0x0800) <- 0x0000
phy_write(0x0910) <- 0x0000
phy_write(0x0914) <- 0x0000
phy_write(0x0918) <- 0x0000
phy_write(0x0903) <- 0x0020
phy_write(0x0901) <- 0x0020
phy_write(0x020d) <- 0x00b8
phy_write(0x094f) <- 0x00c8
phy_write(0x0070) <- 0x0050
phy_write(0x01ff) <- 0x0030
---
drivers/net/wireless/b43/phy_ht.c | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/drivers/net/wireless/b43/phy_ht.c b/drivers/net/wireless/b43/phy_ht.c
index 99b3035..969e86e 100644
--- a/drivers/net/wireless/b43/phy_ht.c
+++ b/drivers/net/wireless/b43/phy_ht.c
@@ -279,6 +279,28 @@ static int b43_phy_ht_op_init(struct b43_wldev *dev)
b43_phy_ht_zero_extg(dev);
+ /* TODO: PHY op on reg B43_PHY_EXTG(0) */
+
+ b43_phy_write(dev, B43_PHY_HT_AFE_CTL1, 0);
+ b43_phy_write(dev, B43_PHY_HT_AFE_CTL3, 0);
+ b43_phy_write(dev, B43_PHY_HT_AFE_CTL5, 0);
+
+ b43_phy_write(dev, B43_PHY_EXTG(0x103), 0x20);
+ b43_phy_write(dev, B43_PHY_EXTG(0x101), 0x20);
+ b43_phy_write(dev, 0x20d, 0xb8);
+ b43_phy_write(dev, B43_PHY_EXTG(0x14f), 0xc8);
+ b43_phy_write(dev, 0x70, 0x50);
+ b43_phy_write(dev, 0x1ff, 0x30);
+
+ if (0) /* TODO: condition */
+ ; /* TODO: PHY op on reg 0x217 */
+
+ ; /* TODO: PHY op on reg 0xb0 */
+
+ ; /* TODO: PHY ops on regs 0xb1, 0x32f, 0x077, 0x0b4, 0x17e */
+
+ b43_phy_write(dev, 0x0b9, 0x0072);
+
return 0;
}
--
1.7.3.4
next prev parent reply other threads:[~2011-08-12 11:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-12 11:13 [PATCH 1/4] b43: HT-PHY: init: zero EXTG registers Rafał Miłecki
2011-08-12 11:13 ` Rafał Miłecki [this message]
2011-08-12 11:13 ` [PATCH 3/4] b43: HT-PHY: init: copy tables and reset CCA Rafał Miłecki
2011-08-12 11:13 ` [PATCH 4/4] b43: HT-PHY: init: init BPHY and upload 0x1a table Rafał Miłecki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1313147627-8713-2-git-send-email-zajec5@gmail.com \
--to=zajec5@gmail.com \
--cc=b43-dev@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).