aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/b43/phy_lcn.c10
-rw-r--r--drivers/net/wireless/b43/tables_phy_lcn.c17
2 files changed, 16 insertions, 11 deletions
diff --git a/drivers/net/wireless/b43/phy_lcn.c b/drivers/net/wireless/b43/phy_lcn.c
index b617e1f8ca28..9e575774e192 100644
--- a/drivers/net/wireless/b43/phy_lcn.c
+++ b/drivers/net/wireless/b43/phy_lcn.c
@@ -137,14 +137,6 @@ static void b43_phy_lcn_afe_set_unset(struct b43_wldev *dev)
137 b43_phy_write(dev, B43_PHY_LCN_AFE_CTL1, afe_ctl1); 137 b43_phy_write(dev, B43_PHY_LCN_AFE_CTL1, afe_ctl1);
138} 138}
139 139
140static void b43_phy_lcn_clean_0x18_table(struct b43_wldev *dev)
141{
142 u8 i;
143
144 for (i = 0; i < 0x80; i++)
145 b43_lcntab_write(dev, B43_LCNTAB32(0x18, i), 0x80000);
146}
147
148static void b43_phy_lcn_clear_0x07_table(struct b43_wldev *dev) 140static void b43_phy_lcn_clear_0x07_table(struct b43_wldev *dev)
149{ 141{
150 u8 i; 142 u8 i;
@@ -319,8 +311,6 @@ static int b43_phy_lcn_op_init(struct b43_wldev *dev)
319 b43_phy_maskset(dev, 0x663, 0xFF00, 0x64); 311 b43_phy_maskset(dev, 0x663, 0xFF00, 0x64);
320 312
321 b43_phy_lcn_tables_init(dev); 313 b43_phy_lcn_tables_init(dev);
322 /* TODO: various tables ops here */
323 b43_phy_lcn_clean_0x18_table(dev);
324 314
325 b43_phy_lcn_pre_radio_init(dev); 315 b43_phy_lcn_pre_radio_init(dev);
326 b43_phy_lcn_clear_0x07_table(dev); 316 b43_phy_lcn_clear_0x07_table(dev);
diff --git a/drivers/net/wireless/b43/tables_phy_lcn.c b/drivers/net/wireless/b43/tables_phy_lcn.c
index 916d3f194f42..f74c00a34ad5 100644
--- a/drivers/net/wireless/b43/tables_phy_lcn.c
+++ b/drivers/net/wireless/b43/tables_phy_lcn.c
@@ -445,7 +445,7 @@ void b43_lcntab_write_bulk(struct b43_wldev *dev, u32 offset,
445#define lcntab_upload(dev, offset, data) do { \ 445#define lcntab_upload(dev, offset, data) do { \
446 b43_lcntab_write_bulk(dev, offset, ARRAY_SIZE(data), data); \ 446 b43_lcntab_write_bulk(dev, offset, ARRAY_SIZE(data), data); \
447 } while (0) 447 } while (0)
448void b43_phy_lcn_tables_init(struct b43_wldev *dev) 448static void b43_phy_lcn_upload_static_tables(struct b43_wldev *dev)
449{ 449{
450 lcntab_upload(dev, B43_LCNTAB16(0x02, 0), b43_lcntab_0x02); 450 lcntab_upload(dev, B43_LCNTAB16(0x02, 0), b43_lcntab_0x02);
451 lcntab_upload(dev, B43_LCNTAB16(0x01, 0), b43_lcntab_0x01); 451 lcntab_upload(dev, B43_LCNTAB16(0x01, 0), b43_lcntab_0x01);
@@ -462,3 +462,18 @@ void b43_phy_lcn_tables_init(struct b43_wldev *dev)
462 lcntab_upload(dev, B43_LCNTAB16(0x00, 0), b43_lcntab_0x00); 462 lcntab_upload(dev, B43_LCNTAB16(0x00, 0), b43_lcntab_0x00);
463 lcntab_upload(dev, B43_LCNTAB32(0x18, 0), b43_lcntab_0x18); 463 lcntab_upload(dev, B43_LCNTAB32(0x18, 0), b43_lcntab_0x18);
464} 464}
465
466static void b43_phy_lcn_clean_0x18_table(struct b43_wldev *dev)
467{
468 u8 i;
469
470 for (i = 0; i < 0x80; i++)
471 b43_lcntab_write(dev, B43_LCNTAB32(0x18, i), 0x80000);
472}
473
474void b43_phy_lcn_tables_init(struct b43_wldev *dev)
475{
476 b43_phy_lcn_upload_static_tables(dev);
477 /* TODO: various tables ops here */
478 b43_phy_lcn_clean_0x18_table(dev);
479}