Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265661
b: refs/heads/master
c: dc713fb
h: refs/heads/master
i:
  265659: 85fa79f
v: v3
  • Loading branch information
Rafał Miłecki authored and John W. Linville committed Aug 24, 2011
1 parent e90c108 commit 1457109
Show file tree
Hide file tree
Showing 2 changed files with 55 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: 78bc2463af4c311a188a9db4d833acf724bbc304
refs/heads/master: dc713fb2afa1be7a29f5c1d0b087c35bfbbe2815
54 changes: 54 additions & 0 deletions trunk/drivers/net/wireless/b43/phy_lcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,55 @@
#include "tables_phy_lcn.h"
#include "main.h"

/**************************************************
* Radio 2064.
**************************************************/

static void b43_radio_2064_init(struct b43_wldev *dev)
{
b43_radio_write(dev, 0x09c, 0x0020);
b43_radio_write(dev, 0x105, 0x0008);
b43_radio_write(dev, 0x032, 0x0062);
b43_radio_write(dev, 0x033, 0x0019);
b43_radio_write(dev, 0x090, 0x0010);
b43_radio_write(dev, 0x010, 0x0000);
b43_radio_write(dev, 0x060, 0x007f);
b43_radio_write(dev, 0x061, 0x0072);
b43_radio_write(dev, 0x062, 0x007f);
b43_radio_write(dev, 0x01d, 0x0002);
b43_radio_write(dev, 0x01e, 0x0006);

b43_phy_write(dev, 0x4ea, 0x4688);
b43_phy_maskset(dev, 0x4eb, ~0x7, 0x2);
b43_phy_mask(dev, 0x4eb, ~0x01c0);
b43_phy_maskset(dev, 0x4eb, 0xff00, 0x19);

b43_lcntab_write(dev, B43_LCNTAB16(0x00, 0x55), 0);

b43_radio_mask(dev, 0x05b, (u16) ~0xff02);
b43_radio_set(dev, 0x004, 0x40);
b43_radio_set(dev, 0x120, 0x10);
b43_radio_set(dev, 0x078, 0x80);
b43_radio_set(dev, 0x129, 0x2);
b43_radio_set(dev, 0x057, 0x1);
b43_radio_set(dev, 0x05b, 0x2);

/* TODO: wait for some bit to be set */
b43_radio_read(dev, 0x05c);

b43_radio_mask(dev, 0x05b, (u16) ~0xff02);
b43_radio_mask(dev, 0x057, (u16) ~0xff01);

b43_phy_write(dev, 0x933, 0x2d6b);
b43_phy_write(dev, 0x934, 0x2d6b);
b43_phy_write(dev, 0x935, 0x2d6b);
b43_phy_write(dev, 0x936, 0x2d6b);
b43_phy_write(dev, 0x937, 0x016b);

b43_radio_mask(dev, 0x057, (u16) ~0xff02);
b43_radio_write(dev, 0x0c2, 0x006f);
}

/**************************************************
* Various PHY ops
**************************************************/
Expand Down Expand Up @@ -125,6 +174,11 @@ static int b43_phy_lcn_op_init(struct b43_wldev *dev)

b43_phy_lcn_clear_0x07_table(dev);

if (dev->phy.radio_ver == 0x2064)
b43_radio_2064_init(dev);
else
B43_WARN_ON(1);

return 0;
}

Expand Down

0 comments on commit 1457109

Please sign in to comment.