Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265622
b: refs/heads/master
c: 19240f3
h: refs/heads/master
v: v3
  • Loading branch information
Rafał Miłecki authored and John W. Linville committed Aug 22, 2011
1 parent ef760f6 commit 769d67a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f457f1842d3ad0f24cc0b181e60b6c59ed1d90ba
refs/heads/master: 19240f36cf4c4ccc9a1b0a368d0fd59c9bbbfba6
21 changes: 21 additions & 0 deletions trunk/drivers/net/wireless/b43/phy_ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ static void b43_phy_ht_op_prepare_structs(struct b43_wldev *dev)

static int b43_phy_ht_op_init(struct b43_wldev *dev)
{
u16 tmp;

b43_phy_ht_tables_init(dev);

/* TODO: PHY ops on regs 0x0be, 0x23f 0x240 0x241 */
Expand Down Expand Up @@ -301,6 +303,25 @@ static int b43_phy_ht_op_init(struct b43_wldev *dev)

b43_phy_write(dev, 0x0b9, 0x0072);

/* TODO: Some ops here */

/* Copy some tables entries */
tmp = b43_httab_read(dev, B43_HTTAB16(7, 0x144));
b43_httab_write(dev, B43_HTTAB16(7, 0x14a), tmp);
tmp = b43_httab_read(dev, B43_HTTAB16(7, 0x154));
b43_httab_write(dev, B43_HTTAB16(7, 0x15a), tmp);
tmp = b43_httab_read(dev, B43_HTTAB16(7, 0x164));
b43_httab_write(dev, B43_HTTAB16(7, 0x16a), tmp);

/* Reset CCA */
b43_phy_force_clock(dev, true);
tmp = b43_phy_read(dev, B43_PHY_HT_BBCFG);
b43_phy_write(dev, B43_PHY_HT_BBCFG, tmp | B43_PHY_HT_BBCFG_RSTCCA);
b43_phy_write(dev, B43_PHY_HT_BBCFG, tmp & ~B43_PHY_HT_BBCFG_RSTCCA);
b43_phy_force_clock(dev, false);

b43_mac_phy_clock_set(dev, true);

return 0;
}

Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/net/wireless/b43/phy_ht.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
#include "phy_common.h"


#define B43_PHY_HT_BBCFG 0x001 /* BB config */
#define B43_PHY_HT_BBCFG_RSTCCA 0x4000 /* Reset CCA */
#define B43_PHY_HT_BBCFG_RSTRX 0x8000 /* Reset RX */
#define B43_PHY_HT_BANDCTL 0x009 /* Band control */
#define B43_PHY_HT_BANDCTL_5GHZ 0x0001 /* Use the 5GHz band */
#define B43_PHY_HT_TABLE_ADDR 0x072 /* Table address */
#define B43_PHY_HT_TABLE_DATALO 0x073 /* Table data low */
#define B43_PHY_HT_TABLE_DATAHI 0x074 /* Table data high */
Expand Down

0 comments on commit 769d67a

Please sign in to comment.