diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2011-08-28 08:28:44 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-13 15:42:29 -0400 |
commit | bd3bf693c72826d7c5be9df09fe3d1198b89b538 (patch) | |
tree | 9d9235d8625c85af22beaa27614b69d4add1c48f /drivers/net/wireless/b43/phy_lcn.c | |
parent | f533d0fa5efe4bb7a08ead8c6fcf7af243a9035f (diff) |
b43: LCN-PHY: implement more PHY ops before radio init
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/phy_lcn.c')
-rw-r--r-- | drivers/net/wireless/b43/phy_lcn.c | 56 |
1 files changed, 53 insertions, 3 deletions
diff --git a/drivers/net/wireless/b43/phy_lcn.c b/drivers/net/wireless/b43/phy_lcn.c index cf75d3dce88d..9707a2b9cbe0 100644 --- a/drivers/net/wireless/b43/phy_lcn.c +++ b/drivers/net/wireless/b43/phy_lcn.c | |||
@@ -48,7 +48,7 @@ static void b43_radio_2064_init(struct b43_wldev *dev) | |||
48 | b43_phy_write(dev, 0x4ea, 0x4688); | 48 | b43_phy_write(dev, 0x4ea, 0x4688); |
49 | b43_phy_maskset(dev, 0x4eb, ~0x7, 0x2); | 49 | b43_phy_maskset(dev, 0x4eb, ~0x7, 0x2); |
50 | b43_phy_mask(dev, 0x4eb, ~0x01c0); | 50 | b43_phy_mask(dev, 0x4eb, ~0x01c0); |
51 | b43_phy_maskset(dev, 0x4eb, 0xff00, 0x19); | 51 | b43_phy_maskset(dev, 0x46a, 0xff00, 0x19); |
52 | 52 | ||
53 | b43_lcntab_write(dev, B43_LCNTAB16(0x00, 0x55), 0); | 53 | b43_lcntab_write(dev, B43_LCNTAB16(0x00, 0x55), 0); |
54 | 54 | ||
@@ -120,6 +120,57 @@ static void b43_phy_lcn_clear_0x07_table(struct b43_wldev *dev) | |||
120 | } | 120 | } |
121 | } | 121 | } |
122 | 122 | ||
123 | static void b43_phy_lcn_pre_radio_init(struct b43_wldev *dev) | ||
124 | { | ||
125 | b43_radio_write(dev, 0x11c, 0); | ||
126 | |||
127 | b43_phy_write(dev, 0x43b, 0); | ||
128 | b43_phy_write(dev, 0x43c, 0); | ||
129 | b43_phy_write(dev, 0x44c, 0); | ||
130 | b43_phy_write(dev, 0x4e6, 0); | ||
131 | b43_phy_write(dev, 0x4f9, 0); | ||
132 | b43_phy_write(dev, 0x4b0, 0); | ||
133 | b43_phy_write(dev, 0x938, 0); | ||
134 | b43_phy_write(dev, 0x4b0, 0); | ||
135 | b43_phy_write(dev, 0x44e, 0); | ||
136 | |||
137 | b43_phy_set(dev, 0x567, 0x03); | ||
138 | |||
139 | b43_phy_set(dev, 0x44a, 0x44); | ||
140 | b43_phy_write(dev, 0x44a, 0x80); | ||
141 | |||
142 | b43_phy_maskset(dev, 0x634, ~0xff, 0xc); | ||
143 | b43_phy_maskset(dev, 0x634, ~0xff, 0xa); | ||
144 | |||
145 | b43_phy_write(dev, 0x910, 0x1); | ||
146 | |||
147 | b43_phy_maskset(dev, 0x448, ~0x300, 0x100); | ||
148 | b43_phy_maskset(dev, 0x608, ~0xff, 0x17); | ||
149 | b43_phy_maskset(dev, 0x604, ~0x7ff, 0x3ea); | ||
150 | |||
151 | b43_phy_set(dev, 0x805, 0x1); | ||
152 | |||
153 | b43_phy_maskset(dev, 0x42f, ~0x7, 0x3); | ||
154 | b43_phy_maskset(dev, 0x030, ~0x7, 0x3); | ||
155 | |||
156 | b43_phy_write(dev, 0x414, 0x1e10); | ||
157 | b43_phy_write(dev, 0x415, 0x0640); | ||
158 | |||
159 | b43_phy_maskset(dev, 0x4df, (u16) ~0xff00, 0xf700); | ||
160 | |||
161 | b43_phy_set(dev, 0x44a, 0x44); | ||
162 | b43_phy_write(dev, 0x44a, 0x80); | ||
163 | |||
164 | b43_phy_maskset(dev, 0x434, ~0xff, 0xfd); | ||
165 | b43_phy_maskset(dev, 0x420, ~0xff, 0x10); | ||
166 | |||
167 | b43_radio_set(dev, 0x09b, 0xf0); | ||
168 | |||
169 | b43_phy_write(dev, 0x7d6, 0x0902); | ||
170 | |||
171 | /* TODO: more ops */ | ||
172 | } | ||
173 | |||
123 | /************************************************** | 174 | /************************************************** |
124 | * Basic PHY ops. | 175 | * Basic PHY ops. |
125 | **************************************************/ | 176 | **************************************************/ |
@@ -170,8 +221,7 @@ static int b43_phy_lcn_op_init(struct b43_wldev *dev) | |||
170 | /* TODO: various tables ops here */ | 221 | /* TODO: various tables ops here */ |
171 | b43_phy_lcn_clean_0x18_table(dev); | 222 | b43_phy_lcn_clean_0x18_table(dev); |
172 | 223 | ||
173 | /* TODO: some ops here */ | 224 | b43_phy_lcn_pre_radio_init(dev); |
174 | |||
175 | b43_phy_lcn_clear_0x07_table(dev); | 225 | b43_phy_lcn_clear_0x07_table(dev); |
176 | 226 | ||
177 | if (dev->phy.radio_ver == 0x2064) | 227 | if (dev->phy.radio_ver == 0x2064) |