diff options
author | Gábor Stefanik <netrolller.3d@gmail.com> | 2009-08-02 19:28:12 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-04 16:44:24 -0400 |
commit | 738f0f4301587ad09b58651390b122205086b484 (patch) | |
tree | 6d5f51d1980db2ef37537b0bc6c1a5a694324e40 /drivers/net/wireless/b43/phy_common.c | |
parent | d8cc8926e9b4dc2ce513ee3325bf16b4ea6d94e8 (diff) |
b43: implement baseband init for LP-PHY <= rev1
Implement baseband init for rev.0 and rev.1 LP PHYs. Convert boardflags_hi values to defines.
Implement b43_phy_copy for easier copying between registers, as needed by LP-PHY init.
Signed-off-by: Gábor Stefanik<netrolller.3d@gmail.com>
Cc: Michael Buesch<mb@bu3sch.de>
Cc: Larry Finger<larry.finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/phy_common.c')
-rw-r--r-- | drivers/net/wireless/b43/phy_common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/phy_common.c b/drivers/net/wireless/b43/phy_common.c index f537bfef690a..51686ec96984 100644 --- a/drivers/net/wireless/b43/phy_common.c +++ b/drivers/net/wireless/b43/phy_common.c | |||
@@ -240,6 +240,13 @@ void b43_phy_write(struct b43_wldev *dev, u16 reg, u16 value) | |||
240 | dev->phy.ops->phy_write(dev, reg, value); | 240 | dev->phy.ops->phy_write(dev, reg, value); |
241 | } | 241 | } |
242 | 242 | ||
243 | void b43_phy_copy(struct b43_wldev *dev, u16 destreg, u16 srcreg) | ||
244 | { | ||
245 | assert_mac_suspended(dev); | ||
246 | dev->phy.ops->phy_write(dev, destreg, | ||
247 | dev->phy.ops->phy_read(dev, srcreg)); | ||
248 | } | ||
249 | |||
243 | void b43_phy_mask(struct b43_wldev *dev, u16 offset, u16 mask) | 250 | void b43_phy_mask(struct b43_wldev *dev, u16 offset, u16 mask) |
244 | { | 251 | { |
245 | b43_phy_write(dev, offset, | 252 | b43_phy_write(dev, offset, |