diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2010-01-17 07:04:02 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-19 16:41:44 -0500 |
commit | 67c0d6e2d1abb9cbff9235143a8faaef89119628 (patch) | |
tree | 2f68469e7021346f7ecdb255dd74e221248940d7 /drivers/net/wireless/b43 | |
parent | 4f4ab6cd1486fcb0ab8d689d625ac7691198f36b (diff) |
b43: N-PHY: move RF sequence declarations top, add missing calls
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r-- | drivers/net/wireless/b43/phy_n.c | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index 90a49cfaa96..99024b02bdb 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c | |||
@@ -55,6 +55,18 @@ struct nphy_iq_est { | |||
55 | u32 q1_pwr; | 55 | u32 q1_pwr; |
56 | }; | 56 | }; |
57 | 57 | ||
58 | enum b43_nphy_rf_sequence { | ||
59 | B43_RFSEQ_RX2TX, | ||
60 | B43_RFSEQ_TX2RX, | ||
61 | B43_RFSEQ_RESET2RX, | ||
62 | B43_RFSEQ_UPDATE_GAINH, | ||
63 | B43_RFSEQ_UPDATE_GAINL, | ||
64 | B43_RFSEQ_UPDATE_GAINU, | ||
65 | }; | ||
66 | |||
67 | static void b43_nphy_force_rf_sequence(struct b43_wldev *dev, | ||
68 | enum b43_nphy_rf_sequence seq); | ||
69 | |||
58 | void b43_nphy_set_rxantenna(struct b43_wldev *dev, int antenna) | 70 | void b43_nphy_set_rxantenna(struct b43_wldev *dev, int antenna) |
59 | {//TODO | 71 | {//TODO |
60 | } | 72 | } |
@@ -421,7 +433,7 @@ static void b43_nphy_reset_cca(struct b43_wldev *dev) | |||
421 | udelay(1); | 433 | udelay(1); |
422 | b43_phy_write(dev, B43_NPHY_BBCFG, bbcfg & ~B43_NPHY_BBCFG_RSTCCA); | 434 | b43_phy_write(dev, B43_NPHY_BBCFG, bbcfg & ~B43_NPHY_BBCFG_RSTCCA); |
423 | b43_nphy_bmac_clock_fgc(dev, 0); | 435 | b43_nphy_bmac_clock_fgc(dev, 0); |
424 | /* TODO: N PHY Force RF Seq with argument 2 */ | 436 | b43_nphy_force_rf_sequence(dev, B43_RFSEQ_RESET2RX); |
425 | } | 437 | } |
426 | 438 | ||
427 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/MIMOConfig */ | 439 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/MIMOConfig */ |
@@ -590,7 +602,7 @@ static void b43_nphy_rx_cal_phy_setup(struct b43_wldev *dev, u8 core) | |||
590 | 602 | ||
591 | /* TODO: Call N PHY RF Ctrl Intc Override with 2, 0, 3 as arguments */ | 603 | /* TODO: Call N PHY RF Ctrl Intc Override with 2, 0, 3 as arguments */ |
592 | /* TODO: Call N PHY RF Intc Override with 8, 0, 3, 0 as arguments */ | 604 | /* TODO: Call N PHY RF Intc Override with 8, 0, 3, 0 as arguments */ |
593 | /* TODO: Call N PHY RF Seq with 0 as argument */ | 605 | b43_nphy_force_rf_sequence(dev, B43_RFSEQ_RX2TX); |
594 | 606 | ||
595 | if (core == 0) { | 607 | if (core == 0) { |
596 | rxval = 1; | 608 | rxval = 1; |
@@ -872,15 +884,7 @@ static void b43_nphy_tx_pwr_ctrl_coef_setup(struct b43_wldev *dev) | |||
872 | b43_nphy_stay_in_carrier_search(dev, false); | 884 | b43_nphy_stay_in_carrier_search(dev, false); |
873 | } | 885 | } |
874 | 886 | ||
875 | enum b43_nphy_rf_sequence { | 887 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/ForceRFSeq */ |
876 | B43_RFSEQ_RX2TX, | ||
877 | B43_RFSEQ_TX2RX, | ||
878 | B43_RFSEQ_RESET2RX, | ||
879 | B43_RFSEQ_UPDATE_GAINH, | ||
880 | B43_RFSEQ_UPDATE_GAINL, | ||
881 | B43_RFSEQ_UPDATE_GAINU, | ||
882 | }; | ||
883 | |||
884 | static void b43_nphy_force_rf_sequence(struct b43_wldev *dev, | 888 | static void b43_nphy_force_rf_sequence(struct b43_wldev *dev, |
885 | enum b43_nphy_rf_sequence seq) | 889 | enum b43_nphy_rf_sequence seq) |
886 | { | 890 | { |
@@ -2156,7 +2160,7 @@ static int b43_nphy_rev2_cal_rx_iq(struct b43_wldev *dev, | |||
2156 | } | 2160 | } |
2157 | 2161 | ||
2158 | /* TODO: Call N PHY RF Ctrl Override with 0x400, 0, 3, 1 as arguments*/ | 2162 | /* TODO: Call N PHY RF Ctrl Override with 0x400, 0, 3, 1 as arguments*/ |
2159 | /* TODO: Call N PHY Force RF Seq with 2 as argument */ | 2163 | b43_nphy_force_rf_sequence(dev, B43_RFSEQ_RESET2RX); |
2160 | /* TODO: Write an N PHY Table with ID 7, length 2, offset 0x110, | 2164 | /* TODO: Write an N PHY Table with ID 7, length 2, offset 0x110, |
2161 | width 16, and data from gain_save */ | 2165 | width 16, and data from gain_save */ |
2162 | 2166 | ||