Search Linux Wireless

[PATCH 2/4] b43: HT-PHY: init: implement few simple PHY writes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Rafał Miłecki <zajec5@xxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux