diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2013-09-03 00:58:57 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-09-26 15:13:31 -0400 |
commit | 7c9a72013b652837c4dde9f135f92ab783ee4fbc (patch) | |
tree | 2b9ec1447a64ba6e9e00b7304128538557b2e446 /drivers/net/wireless | |
parent | 6d5228fe20e42339425bbe8e7600b0c8ca4c943d (diff) |
ath9k: Update AR9485 1.1 initvals
* Remove duplicate array mappings.
* Fix ETSI CCA compliance.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9485_initvals.h | 218 |
1 files changed, 184 insertions, 34 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9485_initvals.h b/drivers/net/wireless/ath/ath9k/ar9485_initvals.h index 88ff1d7b53ab..6f899c692647 100644 --- a/drivers/net/wireless/ath/ath9k/ar9485_initvals.h +++ b/drivers/net/wireless/ath/ath9k/ar9485_initvals.h | |||
@@ -20,7 +20,17 @@ | |||
20 | 20 | ||
21 | /* AR9485 1.1 */ | 21 | /* AR9485 1.1 */ |
22 | 22 | ||
23 | #define ar9485_1_1_mac_postamble ar9300_2p2_mac_postamble | 23 | static const u32 ar9485_1_1_mac_postamble[][5] = { |
24 | /* Addr 5G_HT20 5G_HT40 2G_HT40 2G_HT20 */ | ||
25 | {0x00001030, 0x00000230, 0x00000460, 0x000002c0, 0x00000160}, | ||
26 | {0x00001070, 0x00000168, 0x000002d0, 0x00000318, 0x0000018c}, | ||
27 | {0x000010b0, 0x00000e60, 0x00001cc0, 0x00007c70, 0x00003e38}, | ||
28 | {0x00008014, 0x03e803e8, 0x07d007d0, 0x10801600, 0x08400b00}, | ||
29 | {0x0000801c, 0x128d8027, 0x128d804f, 0x12e00057, 0x12e0002b}, | ||
30 | {0x00008120, 0x08f04800, 0x08f04800, 0x08f04810, 0x08f04810}, | ||
31 | {0x000081d0, 0x00003210, 0x00003210, 0x0000320a, 0x0000320a}, | ||
32 | {0x00008318, 0x00003e80, 0x00007d00, 0x00006880, 0x00003440}, | ||
33 | }; | ||
24 | 34 | ||
25 | static const u32 ar9485_1_1_pcie_phy_pll_on_clkreq_disable_L1[][2] = { | 35 | static const u32 ar9485_1_1_pcie_phy_pll_on_clkreq_disable_L1[][2] = { |
26 | /* Addr allmodes */ | 36 | /* Addr allmodes */ |
@@ -34,6 +44,7 @@ static const u32 ar9485Common_wo_xlna_rx_gain_1_1[][2] = { | |||
34 | {0x00009e00, 0x037216a0}, | 44 | {0x00009e00, 0x037216a0}, |
35 | {0x00009e04, 0x00182020}, | 45 | {0x00009e04, 0x00182020}, |
36 | {0x00009e18, 0x00000000}, | 46 | {0x00009e18, 0x00000000}, |
47 | {0x00009e20, 0x000003a8}, | ||
37 | {0x00009e2c, 0x00004121}, | 48 | {0x00009e2c, 0x00004121}, |
38 | {0x00009e44, 0x02282324}, | 49 | {0x00009e44, 0x02282324}, |
39 | {0x0000a000, 0x00060005}, | 50 | {0x0000a000, 0x00060005}, |
@@ -174,7 +185,7 @@ static const u32 ar9485Modes_high_power_tx_gain_1_1[][5] = { | |||
174 | {0x0000a2e0, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552}, | 185 | {0x0000a2e0, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552}, |
175 | {0x0000a2e4, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552}, | 186 | {0x0000a2e4, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552}, |
176 | {0x0000a2e8, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552}, | 187 | {0x0000a2e8, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552}, |
177 | {0x0000a410, 0x000050d9, 0x000050d9, 0x000050d8, 0x000050d8}, | 188 | {0x0000a410, 0x000050d9, 0x000050d9, 0x000050da, 0x000050da}, |
178 | {0x0000a458, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | 189 | {0x0000a458, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, |
179 | {0x0000a500, 0x00022200, 0x00022200, 0x00000000, 0x00000000}, | 190 | {0x0000a500, 0x00022200, 0x00022200, 0x00000000, 0x00000000}, |
180 | {0x0000a504, 0x05062002, 0x05062002, 0x04000002, 0x04000002}, | 191 | {0x0000a504, 0x05062002, 0x05062002, 0x04000002, 0x04000002}, |
@@ -200,14 +211,14 @@ static const u32 ar9485Modes_high_power_tx_gain_1_1[][5] = { | |||
200 | {0x0000a554, 0x7d06ffcb, 0x7d06ffcb, 0x57001ce9, 0x57001ce9}, | 211 | {0x0000a554, 0x7d06ffcb, 0x7d06ffcb, 0x57001ce9, 0x57001ce9}, |
201 | {0x0000a558, 0x8407ff0b, 0x8407ff0b, 0x5a001ceb, 0x5a001ceb}, | 212 | {0x0000a558, 0x8407ff0b, 0x8407ff0b, 0x5a001ceb, 0x5a001ceb}, |
202 | {0x0000a55c, 0x8907ffcb, 0x8907ffcb, 0x5e001eeb, 0x5e001eeb}, | 213 | {0x0000a55c, 0x8907ffcb, 0x8907ffcb, 0x5e001eeb, 0x5e001eeb}, |
203 | {0x0000a560, 0x900fff0b, 0x900fff0b, 0x5e001eeb, 0x5e001eeb}, | 214 | {0x0000a560, 0x900fff0b, 0x900fff0b, 0x62001eee, 0x62001eee}, |
204 | {0x0000a564, 0x960fffcb, 0x960fffcb, 0x5e001eeb, 0x5e001eeb}, | 215 | {0x0000a564, 0x960fffcb, 0x960fffcb, 0x66001ff6, 0x66001ff6}, |
205 | {0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb}, | 216 | {0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6}, |
206 | {0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb}, | 217 | {0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6}, |
207 | {0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb}, | 218 | {0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6}, |
208 | {0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb}, | 219 | {0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6}, |
209 | {0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb}, | 220 | {0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6}, |
210 | {0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb}, | 221 | {0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6}, |
211 | {0x0000a580, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | 222 | {0x0000a580, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, |
212 | {0x0000a584, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | 223 | {0x0000a584, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, |
213 | {0x0000a588, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | 224 | {0x0000a588, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, |
@@ -263,6 +274,11 @@ static const u32 ar9485Modes_high_power_tx_gain_1_1[][5] = { | |||
263 | static const u32 ar9485Modes_green_ob_db_tx_gain_1_1[][5] = { | 274 | static const u32 ar9485Modes_green_ob_db_tx_gain_1_1[][5] = { |
264 | /* Addr 5G_HT20 5G_HT40 2G_HT40 2G_HT20 */ | 275 | /* Addr 5G_HT20 5G_HT40 2G_HT40 2G_HT20 */ |
265 | {0x000098bc, 0x00000003, 0x00000003, 0x00000003, 0x00000003}, | 276 | {0x000098bc, 0x00000003, 0x00000003, 0x00000003, 0x00000003}, |
277 | {0x0000a2d8, 0xf999a83a, 0xf999a83a, 0x7999a83a, 0x7999a83a}, | ||
278 | {0x0000a2dc, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552}, | ||
279 | {0x0000a2e0, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552}, | ||
280 | {0x0000a2e4, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552}, | ||
281 | {0x0000a2e8, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552}, | ||
266 | {0x0000a410, 0x000050d9, 0x000050d9, 0x000050d8, 0x000050d8}, | 282 | {0x0000a410, 0x000050d9, 0x000050d9, 0x000050d8, 0x000050d8}, |
267 | {0x0000a458, 0x80000000, 0x80000000, 0x80000000, 0x80000000}, | 283 | {0x0000a458, 0x80000000, 0x80000000, 0x80000000, 0x80000000}, |
268 | {0x0000a500, 0x00022200, 0x00022200, 0x00000006, 0x00000006}, | 284 | {0x0000a500, 0x00022200, 0x00022200, 0x00000006, 0x00000006}, |
@@ -297,6 +313,22 @@ static const u32 ar9485Modes_green_ob_db_tx_gain_1_1[][5] = { | |||
297 | {0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb}, | 313 | {0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb}, |
298 | {0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb}, | 314 | {0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb}, |
299 | {0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb}, | 315 | {0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x5e001eeb, 0x5e001eeb}, |
316 | {0x0000a580, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
317 | {0x0000a584, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
318 | {0x0000a588, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
319 | {0x0000a58c, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
320 | {0x0000a590, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
321 | {0x0000a594, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
322 | {0x0000a598, 0x00000000, 0x00000000, 0x01404501, 0x01404501}, | ||
323 | {0x0000a59c, 0x00000000, 0x00000000, 0x02808a02, 0x02808a02}, | ||
324 | {0x0000a5a0, 0x00000000, 0x00000000, 0x02808a02, 0x02808a02}, | ||
325 | {0x0000a5a4, 0x00000000, 0x00000000, 0x02808803, 0x02808803}, | ||
326 | {0x0000a5a8, 0x00000000, 0x00000000, 0x04c14b04, 0x04c14b04}, | ||
327 | {0x0000a5ac, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305}, | ||
328 | {0x0000a5b0, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305}, | ||
329 | {0x0000a5b4, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305}, | ||
330 | {0x0000a5b8, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305}, | ||
331 | {0x0000a5bc, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305}, | ||
300 | {0x0000b500, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a}, | 332 | {0x0000b500, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a}, |
301 | {0x0000b504, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a}, | 333 | {0x0000b504, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a}, |
302 | {0x0000b508, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a}, | 334 | {0x0000b508, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a}, |
@@ -341,6 +373,100 @@ static const u32 ar9485Modes_high_ob_db_tx_gain_1_1[][5] = { | |||
341 | {0x0000a2e0, 0x00000000, 0x00000000, 0xffc63a84, 0xffc63a84}, | 373 | {0x0000a2e0, 0x00000000, 0x00000000, 0xffc63a84, 0xffc63a84}, |
342 | {0x0000a2e4, 0x00000000, 0x00000000, 0xfe0fc000, 0xfe0fc000}, | 374 | {0x0000a2e4, 0x00000000, 0x00000000, 0xfe0fc000, 0xfe0fc000}, |
343 | {0x0000a2e8, 0x00000000, 0x00000000, 0xfff00000, 0xfff00000}, | 375 | {0x0000a2e8, 0x00000000, 0x00000000, 0xfff00000, 0xfff00000}, |
376 | {0x0000a410, 0x000050d9, 0x000050d9, 0x000050da, 0x000050da}, | ||
377 | {0x0000a458, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
378 | {0x0000a500, 0x00022200, 0x00022200, 0x00000000, 0x00000000}, | ||
379 | {0x0000a504, 0x05062002, 0x05062002, 0x04000002, 0x04000002}, | ||
380 | {0x0000a508, 0x0c002e00, 0x0c002e00, 0x08000004, 0x08000004}, | ||
381 | {0x0000a50c, 0x11062202, 0x11062202, 0x0d000200, 0x0d000200}, | ||
382 | {0x0000a510, 0x17022e00, 0x17022e00, 0x11000202, 0x11000202}, | ||
383 | {0x0000a514, 0x1d000ec2, 0x1d000ec2, 0x15000400, 0x15000400}, | ||
384 | {0x0000a518, 0x25020ec0, 0x25020ec0, 0x19000402, 0x19000402}, | ||
385 | {0x0000a51c, 0x2b020ec3, 0x2b020ec3, 0x1d000404, 0x1d000404}, | ||
386 | {0x0000a520, 0x2f001f04, 0x2f001f04, 0x21000603, 0x21000603}, | ||
387 | {0x0000a524, 0x35001fc4, 0x35001fc4, 0x25000605, 0x25000605}, | ||
388 | {0x0000a528, 0x3c022f04, 0x3c022f04, 0x2a000a03, 0x2a000a03}, | ||
389 | {0x0000a52c, 0x41023e85, 0x41023e85, 0x2c000a04, 0x2c000a04}, | ||
390 | {0x0000a530, 0x48023ec6, 0x48023ec6, 0x34000e20, 0x34000e20}, | ||
391 | {0x0000a534, 0x4d023f01, 0x4d023f01, 0x35000e21, 0x35000e21}, | ||
392 | {0x0000a538, 0x53023f4b, 0x53023f4b, 0x43000e62, 0x43000e62}, | ||
393 | {0x0000a53c, 0x5a027f09, 0x5a027f09, 0x45000e63, 0x45000e63}, | ||
394 | {0x0000a540, 0x5f027fc9, 0x5f027fc9, 0x49000e65, 0x49000e65}, | ||
395 | {0x0000a544, 0x6502feca, 0x6502feca, 0x4b000e66, 0x4b000e66}, | ||
396 | {0x0000a548, 0x6b02ff4a, 0x6b02ff4a, 0x4d001645, 0x4d001645}, | ||
397 | {0x0000a54c, 0x7203feca, 0x7203feca, 0x51001865, 0x51001865}, | ||
398 | {0x0000a550, 0x7703ff0b, 0x7703ff0b, 0x55001a86, 0x55001a86}, | ||
399 | {0x0000a554, 0x7d06ffcb, 0x7d06ffcb, 0x57001ce9, 0x57001ce9}, | ||
400 | {0x0000a558, 0x8407ff0b, 0x8407ff0b, 0x5a001ceb, 0x5a001ceb}, | ||
401 | {0x0000a55c, 0x8907ffcb, 0x8907ffcb, 0x5e001eeb, 0x5e001eeb}, | ||
402 | {0x0000a560, 0x900fff0b, 0x900fff0b, 0x62001eee, 0x62001eee}, | ||
403 | {0x0000a564, 0x960fffcb, 0x960fffcb, 0x66001ff6, 0x66001ff6}, | ||
404 | {0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6}, | ||
405 | {0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6}, | ||
406 | {0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6}, | ||
407 | {0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6}, | ||
408 | {0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6}, | ||
409 | {0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x66001ff6, 0x66001ff6}, | ||
410 | {0x0000a580, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
411 | {0x0000a584, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
412 | {0x0000a588, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
413 | {0x0000a58c, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
414 | {0x0000a590, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
415 | {0x0000a594, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
416 | {0x0000a598, 0x00000000, 0x00000000, 0x01404501, 0x01404501}, | ||
417 | {0x0000a59c, 0x00000000, 0x00000000, 0x02808a02, 0x02808a02}, | ||
418 | {0x0000a5a0, 0x00000000, 0x00000000, 0x02808a02, 0x02808a02}, | ||
419 | {0x0000a5a4, 0x00000000, 0x00000000, 0x02808803, 0x02808803}, | ||
420 | {0x0000a5a8, 0x00000000, 0x00000000, 0x04c14b04, 0x04c14b04}, | ||
421 | {0x0000a5ac, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305}, | ||
422 | {0x0000a5b0, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305}, | ||
423 | {0x0000a5b4, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305}, | ||
424 | {0x0000a5b8, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305}, | ||
425 | {0x0000a5bc, 0x00000000, 0x00000000, 0x04c15305, 0x04c15305}, | ||
426 | {0x0000b500, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
427 | {0x0000b504, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
428 | {0x0000b508, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
429 | {0x0000b50c, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
430 | {0x0000b510, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
431 | {0x0000b514, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
432 | {0x0000b518, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
433 | {0x0000b51c, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
434 | {0x0000b520, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
435 | {0x0000b524, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
436 | {0x0000b528, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
437 | {0x0000b52c, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
438 | {0x0000b530, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
439 | {0x0000b534, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
440 | {0x0000b538, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
441 | {0x0000b53c, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
442 | {0x0000b540, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
443 | {0x0000b544, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
444 | {0x0000b548, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
445 | {0x0000b54c, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
446 | {0x0000b550, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
447 | {0x0000b554, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
448 | {0x0000b558, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
449 | {0x0000b55c, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
450 | {0x0000b560, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
451 | {0x0000b564, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
452 | {0x0000b568, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
453 | {0x0000b56c, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
454 | {0x0000b570, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
455 | {0x0000b574, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
456 | {0x0000b578, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
457 | {0x0000b57c, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
458 | {0x00016044, 0x05d6b2db, 0x05d6b2db, 0x05d6b2db, 0x05d6b2db}, | ||
459 | {0x00016048, 0x6c924260, 0x6c924260, 0x6c924260, 0x6c924260}, | ||
460 | }; | ||
461 | |||
462 | static const u32 ar9485Modes_low_ob_db_tx_gain_1_1[][5] = { | ||
463 | /* Addr 5G_HT20 5G_HT40 2G_HT40 2G_HT20 */ | ||
464 | {0x000098bc, 0x00000002, 0x00000002, 0x00000002, 0x00000002}, | ||
465 | {0x0000a2d8, 0xf999a83a, 0xf999a83a, 0x7999a83a, 0x7999a83a}, | ||
466 | {0x0000a2dc, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552}, | ||
467 | {0x0000a2e0, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552}, | ||
468 | {0x0000a2e4, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552}, | ||
469 | {0x0000a2e8, 0x00000000, 0x00000000, 0xfe2d3552, 0xfe2d3552}, | ||
344 | {0x0000a410, 0x000050d9, 0x000050d9, 0x000050d8, 0x000050d8}, | 470 | {0x0000a410, 0x000050d9, 0x000050d9, 0x000050d8, 0x000050d8}, |
345 | {0x0000a458, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | 471 | {0x0000a458, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, |
346 | {0x0000a500, 0x00022200, 0x00022200, 0x00000000, 0x00000000}, | 472 | {0x0000a500, 0x00022200, 0x00022200, 0x00000000, 0x00000000}, |
@@ -427,7 +553,7 @@ static const u32 ar9485Modes_high_ob_db_tx_gain_1_1[][5] = { | |||
427 | {0x00016048, 0x6c924260, 0x6c924260, 0x6c924260, 0x6c924260}, | 553 | {0x00016048, 0x6c924260, 0x6c924260, 0x6c924260, 0x6c924260}, |
428 | }; | 554 | }; |
429 | 555 | ||
430 | static const u32 ar9485Modes_low_ob_db_tx_gain_1_1[][5] = { | 556 | static const u32 ar9485_modes_lowest_ob_db_tx_gain_1_1[][5] = { |
431 | /* Addr 5G_HT20 5G_HT40 2G_HT40 2G_HT20 */ | 557 | /* Addr 5G_HT20 5G_HT40 2G_HT40 2G_HT20 */ |
432 | {0x000098bc, 0x00000002, 0x00000002, 0x00000002, 0x00000002}, | 558 | {0x000098bc, 0x00000002, 0x00000002, 0x00000002, 0x00000002}, |
433 | {0x0000a2d8, 0xf999a83a, 0xf999a83a, 0x7999a83a, 0x7999a83a}, | 559 | {0x0000a2d8, 0xf999a83a, 0xf999a83a, 0x7999a83a, 0x7999a83a}, |
@@ -521,12 +647,15 @@ static const u32 ar9485Modes_low_ob_db_tx_gain_1_1[][5] = { | |||
521 | {0x00016048, 0x6c924260, 0x6c924260, 0x6c924260, 0x6c924260}, | 647 | {0x00016048, 0x6c924260, 0x6c924260, 0x6c924260, 0x6c924260}, |
522 | }; | 648 | }; |
523 | 649 | ||
524 | #define ar9485_modes_lowest_ob_db_tx_gain_1_1 ar9485Modes_low_ob_db_tx_gain_1_1 | ||
525 | |||
526 | static const u32 ar9485Modes_green_spur_ob_db_tx_gain_1_1[][5] = { | 650 | static const u32 ar9485Modes_green_spur_ob_db_tx_gain_1_1[][5] = { |
527 | /* Addr 5G_HT20 5G_HT40 2G_HT40 2G_HT20 */ | 651 | /* Addr 5G_HT20 5G_HT40 2G_HT40 2G_HT20 */ |
528 | {0x000098bc, 0x00000003, 0x00000003, 0x00000003, 0x00000003}, | 652 | {0x000098bc, 0x00000003, 0x00000003, 0x00000003, 0x00000003}, |
529 | {0x0000a410, 0x000050d9, 0x000050d9, 0x000050d8, 0x000050d8}, | 653 | {0x0000a2d8, 0xf999a83a, 0xf999a83a, 0x7999a83a, 0x7999a83a}, |
654 | {0x0000a2dc, 0x00000000, 0x00000000, 0xffad452a, 0xffad452a}, | ||
655 | {0x0000a2e0, 0x00000000, 0x00000000, 0xffc98634, 0xffc98634}, | ||
656 | {0x0000a2e4, 0x00000000, 0x00000000, 0xfff60780, 0xfff60780}, | ||
657 | {0x0000a2e8, 0x00000000, 0x00000000, 0xfffff800, 0xfffff800}, | ||
658 | {0x0000a410, 0x000050d9, 0x000050d9, 0x000050d9, 0x000050d9}, | ||
530 | {0x0000a458, 0x80000000, 0x80000000, 0x80000000, 0x80000000}, | 659 | {0x0000a458, 0x80000000, 0x80000000, 0x80000000, 0x80000000}, |
531 | {0x0000a500, 0x00022200, 0x00022200, 0x00000006, 0x00000006}, | 660 | {0x0000a500, 0x00022200, 0x00022200, 0x00000006, 0x00000006}, |
532 | {0x0000a504, 0x05062002, 0x05062002, 0x03000201, 0x03000201}, | 661 | {0x0000a504, 0x05062002, 0x05062002, 0x03000201, 0x03000201}, |
@@ -543,23 +672,39 @@ static const u32 ar9485Modes_green_spur_ob_db_tx_gain_1_1[][5] = { | |||
543 | {0x0000a530, 0x48023ec6, 0x48023ec6, 0x310006e0, 0x310006e0}, | 672 | {0x0000a530, 0x48023ec6, 0x48023ec6, 0x310006e0, 0x310006e0}, |
544 | {0x0000a534, 0x4d023f01, 0x4d023f01, 0x330006e0, 0x330006e0}, | 673 | {0x0000a534, 0x4d023f01, 0x4d023f01, 0x330006e0, 0x330006e0}, |
545 | {0x0000a538, 0x53023f4b, 0x53023f4b, 0x3e0008e3, 0x3e0008e3}, | 674 | {0x0000a538, 0x53023f4b, 0x53023f4b, 0x3e0008e3, 0x3e0008e3}, |
546 | {0x0000a53c, 0x5a027f09, 0x5a027f09, 0x410008e5, 0x410008e5}, | 675 | {0x0000a53c, 0x5a027f09, 0x5a027f09, 0x430008e6, 0x430008e6}, |
547 | {0x0000a540, 0x5f027fc9, 0x5f027fc9, 0x430008e6, 0x430008e6}, | 676 | {0x0000a540, 0x5f027fc9, 0x5f027fc9, 0x4a0008ec, 0x4a0008ec}, |
548 | {0x0000a544, 0x6502feca, 0x6502feca, 0x4a0008ec, 0x4a0008ec}, | 677 | {0x0000a544, 0x6502feca, 0x6502feca, 0x4e0008f1, 0x4e0008f1}, |
549 | {0x0000a548, 0x6b02ff4a, 0x6b02ff4a, 0x4e0008f1, 0x4e0008f1}, | 678 | {0x0000a548, 0x6b02ff4a, 0x6b02ff4a, 0x520008f3, 0x520008f3}, |
550 | {0x0000a54c, 0x7203feca, 0x7203feca, 0x520008f3, 0x520008f3}, | 679 | {0x0000a54c, 0x7203feca, 0x7203feca, 0x54000eed, 0x54000eed}, |
551 | {0x0000a550, 0x7703ff0b, 0x7703ff0b, 0x54000eed, 0x54000eed}, | 680 | {0x0000a550, 0x7703ff0b, 0x7703ff0b, 0x58000ef1, 0x58000ef1}, |
552 | {0x0000a554, 0x7d06ffcb, 0x7d06ffcb, 0x58000ef1, 0x58000ef1}, | 681 | {0x0000a554, 0x7d06ffcb, 0x7d06ffcb, 0x5c000ef3, 0x5c000ef3}, |
553 | {0x0000a558, 0x8407ff0b, 0x8407ff0b, 0x5c000ef3, 0x5c000ef3}, | 682 | {0x0000a558, 0x8407ff0b, 0x8407ff0b, 0x62000ef6, 0x62000ef6}, |
554 | {0x0000a55c, 0x8907ffcb, 0x8907ffcb, 0x60000ef5, 0x60000ef5}, | 683 | {0x0000a55c, 0x8907ffcb, 0x8907ffcb, 0x66001ff0, 0x66001ff0}, |
555 | {0x0000a560, 0x900fff0b, 0x900fff0b, 0x62000ef6, 0x62000ef6}, | 684 | {0x0000a560, 0x900fff0b, 0x900fff0b, 0x68001ff6, 0x68001ff6}, |
556 | {0x0000a564, 0x960fffcb, 0x960fffcb, 0x62000ef6, 0x62000ef6}, | 685 | {0x0000a564, 0x960fffcb, 0x960fffcb, 0x68001ff6, 0x68001ff6}, |
557 | {0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6}, | 686 | {0x0000a568, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6}, |
558 | {0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6}, | 687 | {0x0000a56c, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6}, |
559 | {0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6}, | 688 | {0x0000a570, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6}, |
560 | {0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6}, | 689 | {0x0000a574, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6}, |
561 | {0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6}, | 690 | {0x0000a578, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6}, |
562 | {0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x62000ef6, 0x62000ef6}, | 691 | {0x0000a57c, 0x9c1fff0b, 0x9c1fff0b, 0x68001ff6, 0x68001ff6}, |
692 | {0x0000a580, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
693 | {0x0000a584, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
694 | {0x0000a588, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | ||
695 | {0x0000a58c, 0x00000000, 0x00000000, 0x01804000, 0x01804000}, | ||
696 | {0x0000a590, 0x00000000, 0x00000000, 0x02808a02, 0x02808a02}, | ||
697 | {0x0000a594, 0x00000000, 0x00000000, 0x0340ca02, 0x0340ca02}, | ||
698 | {0x0000a598, 0x00000000, 0x00000000, 0x0340cd03, 0x0340cd03}, | ||
699 | {0x0000a59c, 0x00000000, 0x00000000, 0x0340cd03, 0x0340cd03}, | ||
700 | {0x0000a5a0, 0x00000000, 0x00000000, 0x06415304, 0x06415304}, | ||
701 | {0x0000a5a4, 0x00000000, 0x00000000, 0x04c11905, 0x04c11905}, | ||
702 | {0x0000a5a8, 0x00000000, 0x00000000, 0x06415905, 0x06415905}, | ||
703 | {0x0000a5ac, 0x00000000, 0x00000000, 0x06415905, 0x06415905}, | ||
704 | {0x0000a5b0, 0x00000000, 0x00000000, 0x06415905, 0x06415905}, | ||
705 | {0x0000a5b4, 0x00000000, 0x00000000, 0x06415905, 0x06415905}, | ||
706 | {0x0000a5b8, 0x00000000, 0x00000000, 0x06415905, 0x06415905}, | ||
707 | {0x0000a5bc, 0x00000000, 0x00000000, 0x06415905, 0x06415905}, | ||
563 | {0x0000b500, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a}, | 708 | {0x0000b500, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a}, |
564 | {0x0000b504, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a}, | 709 | {0x0000b504, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a}, |
565 | {0x0000b508, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a}, | 710 | {0x0000b508, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a}, |
@@ -823,6 +968,7 @@ static const u32 ar9485_common_rx_gain_1_1[][2] = { | |||
823 | {0x00009e00, 0x03721b20}, | 968 | {0x00009e00, 0x03721b20}, |
824 | {0x00009e04, 0x00082020}, | 969 | {0x00009e04, 0x00082020}, |
825 | {0x00009e18, 0x0300501e}, | 970 | {0x00009e18, 0x0300501e}, |
971 | {0x00009e20, 0x000003ba}, | ||
826 | {0x00009e2c, 0x00002e21}, | 972 | {0x00009e2c, 0x00002e21}, |
827 | {0x00009e44, 0x02182324}, | 973 | {0x00009e44, 0x02182324}, |
828 | {0x0000a000, 0x00060005}, | 974 | {0x0000a000, 0x00060005}, |
@@ -1001,7 +1147,6 @@ static const u32 ar9485_1_1_baseband_postamble[][5] = { | |||
1001 | {0x00009e10, 0x7ec88d2e, 0x7ec88d2e, 0x7ec80d2e, 0x7ec80d2e}, | 1147 | {0x00009e10, 0x7ec88d2e, 0x7ec88d2e, 0x7ec80d2e, 0x7ec80d2e}, |
1002 | {0x00009e14, 0x31395d53, 0x31396053, 0x312e6053, 0x312e5d53}, | 1148 | {0x00009e14, 0x31395d53, 0x31396053, 0x312e6053, 0x312e5d53}, |
1003 | {0x00009e1c, 0x0001cf9c, 0x0001cf9c, 0x00021f9c, 0x00021f9c}, | 1149 | {0x00009e1c, 0x0001cf9c, 0x0001cf9c, 0x00021f9c, 0x00021f9c}, |
1004 | {0x00009e20, 0x000003b5, 0x000003b5, 0x000003ce, 0x000003ce}, | ||
1005 | {0x00009e3c, 0xcf946220, 0xcf946220, 0xcf946222, 0xcf946222}, | 1150 | {0x00009e3c, 0xcf946220, 0xcf946220, 0xcf946222, 0xcf946222}, |
1006 | {0x00009e48, 0x5030201a, 0x5030201a, 0x50302010, 0x50302010}, | 1151 | {0x00009e48, 0x5030201a, 0x5030201a, 0x50302010, 0x50302010}, |
1007 | {0x00009fc8, 0x0003f000, 0x0003f000, 0x0001a000, 0x0001a000}, | 1152 | {0x00009fc8, 0x0003f000, 0x0003f000, 0x0001a000, 0x0001a000}, |
@@ -1020,7 +1165,7 @@ static const u32 ar9485_1_1_baseband_postamble[][5] = { | |||
1020 | {0x0000a284, 0x00000000, 0x00000000, 0x000002a0, 0x000002a0}, | 1165 | {0x0000a284, 0x00000000, 0x00000000, 0x000002a0, 0x000002a0}, |
1021 | {0x0000a288, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | 1166 | {0x0000a288, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, |
1022 | {0x0000a28c, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | 1167 | {0x0000a28c, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, |
1023 | {0x0000a2c4, 0x00158d18, 0x00158d18, 0x00058d18, 0x00058d18}, | 1168 | {0x0000a2c4, 0x00158d18, 0x00158d18, 0x00158d18, 0x00158d18}, |
1024 | {0x0000a2d0, 0x00071981, 0x00071981, 0x00071982, 0x00071982}, | 1169 | {0x0000a2d0, 0x00071981, 0x00071981, 0x00071982, 0x00071982}, |
1025 | {0x0000a2d8, 0xf999a83a, 0xf999a83a, 0xf999a83a, 0xf999a83a}, | 1170 | {0x0000a2d8, 0xf999a83a, 0xf999a83a, 0xf999a83a, 0xf999a83a}, |
1026 | {0x0000a358, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, | 1171 | {0x0000a358, 0x00000000, 0x00000000, 0x00000000, 0x00000000}, |
@@ -1206,6 +1351,11 @@ static const u32 ar9485_1_1_mac_core[][2] = { | |||
1206 | {0x000083d0, 0x000301ff}, | 1351 | {0x000083d0, 0x000301ff}, |
1207 | }; | 1352 | }; |
1208 | 1353 | ||
1209 | #define ar9485_1_1_baseband_core_txfir_coeff_japan_2484 ar9462_2p0_baseband_core_txfir_coeff_japan_2484 | 1354 | static const u32 ar9485_1_1_baseband_core_txfir_coeff_japan_2484[][2] = { |
1355 | /* Addr allmodes */ | ||
1356 | {0x0000a398, 0x00000000}, | ||
1357 | {0x0000a39c, 0x6f7f0301}, | ||
1358 | {0x0000a3a0, 0xca9228ee}, | ||
1359 | }; | ||
1210 | 1360 | ||
1211 | #endif /* INITVALS_9485_H */ | 1361 | #endif /* INITVALS_9485_H */ |