1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
4  *
5  * Contact Information: wlanfae <wlanfae@realtek.com>
6  */
7 #include "table.h"
8 
9 u32 RTL8192E_PHY_REG_1T2R_ARR[RTL8192E_PHY_REG_1T2R_ARR_LEN] = {
10 	0x800, 0x00000000,
11 	0x804, 0x00000001,
12 	0x808, 0x0000fc00,
13 	0x80c, 0x0000001c,
14 	0x810, 0x801010aa,
15 	0x814, 0x008514d0,
16 	0x818, 0x00000040,
17 	0x81c, 0x00000000,
18 	0x820, 0x00000004,
19 	0x824, 0x00690000,
20 	0x828, 0x00000004,
21 	0x82c, 0x00e90000,
22 	0x830, 0x00000004,
23 	0x834, 0x00690000,
24 	0x838, 0x00000004,
25 	0x83c, 0x00e90000,
26 	0x840, 0x00000000,
27 	0x844, 0x00000000,
28 	0x848, 0x00000000,
29 	0x84c, 0x00000000,
30 	0x850, 0x00000000,
31 	0x854, 0x00000000,
32 	0x858, 0x65a965a9,
33 	0x85c, 0x65a965a9,
34 	0x860, 0x001f0010,
35 	0x864, 0x007f0010,
36 	0x868, 0x001f0010,
37 	0x86c, 0x007f0010,
38 	0x870, 0x0f100f70,
39 	0x874, 0x0f100f70,
40 	0x878, 0x00000000,
41 	0x87c, 0x00000000,
42 	0x880, 0x6870e36c,
43 	0x884, 0xe3573600,
44 	0x888, 0x4260c340,
45 	0x88c, 0x0000ff00,
46 	0x890, 0x00000000,
47 	0x894, 0xfffffffe,
48 	0x898, 0x4c42382f,
49 	0x89c, 0x00656056,
50 	0x8b0, 0x00000000,
51 	0x8e0, 0x00000000,
52 	0x8e4, 0x00000000,
53 	0x900, 0x00000000,
54 	0x904, 0x00000023,
55 	0x908, 0x00000000,
56 	0x90c, 0x31121311,
57 	0xa00, 0x00d0c7d8,
58 	0xa04, 0x811f0008,
59 	0xa08, 0x80cd8300,
60 	0xa0c, 0x2e62740f,
61 	0xa10, 0x95009b78,
62 	0xa14, 0x11145008,
63 	0xa18, 0x00881117,
64 	0xa1c, 0x89140fa0,
65 	0xa20, 0x1a1b0000,
66 	0xa24, 0x090e1317,
67 	0xa28, 0x00000204,
68 	0xa2c, 0x00000000,
69 	0xc00, 0x00000040,
70 	0xc04, 0x00005433,
71 	0xc08, 0x000000e4,
72 	0xc0c, 0x6c6c6c6c,
73 	0xc10, 0x08800000,
74 	0xc14, 0x40000100,
75 	0xc18, 0x08000000,
76 	0xc1c, 0x40000100,
77 	0xc20, 0x08000000,
78 	0xc24, 0x40000100,
79 	0xc28, 0x08000000,
80 	0xc2c, 0x40000100,
81 	0xc30, 0x6de9ac44,
82 	0xc34, 0x465c52cd,
83 	0xc38, 0x497f5994,
84 	0xc3c, 0x0a969764,
85 	0xc40, 0x1f7c403f,
86 	0xc44, 0x000100b7,
87 	0xc48, 0xec020000,
88 	0xc4c, 0x00000300,
89 	0xc50, 0x69543420,
90 	0xc54, 0x433c0094,
91 	0xc58, 0x69543420,
92 	0xc5c, 0x433c0094,
93 	0xc60, 0x69543420,
94 	0xc64, 0x433c0094,
95 	0xc68, 0x69543420,
96 	0xc6c, 0x433c0094,
97 	0xc70, 0x2c7f000d,
98 	0xc74, 0x0186175b,
99 	0xc78, 0x0000001f,
100 	0xc7c, 0x00b91612,
101 	0xc80, 0x40000100,
102 	0xc84, 0x20000000,
103 	0xc88, 0x40000100,
104 	0xc8c, 0x20200000,
105 	0xc90, 0x40000100,
106 	0xc94, 0x00000000,
107 	0xc98, 0x40000100,
108 	0xc9c, 0x00000000,
109 	0xca0, 0x00492492,
110 	0xca4, 0x00000000,
111 	0xca8, 0x00000000,
112 	0xcac, 0x00000000,
113 	0xcb0, 0x00000000,
114 	0xcb4, 0x00000000,
115 	0xcb8, 0x00000000,
116 	0xcbc, 0x00492492,
117 	0xcc0, 0x00000000,
118 	0xcc4, 0x00000000,
119 	0xcc8, 0x00000000,
120 	0xccc, 0x00000000,
121 	0xcd0, 0x00000000,
122 	0xcd4, 0x00000000,
123 	0xcd8, 0x64b22427,
124 	0xcdc, 0x00766932,
125 	0xce0, 0x00222222,
126 	0xd00, 0x00000750,
127 	0xd04, 0x00000403,
128 	0xd08, 0x0000907f,
129 	0xd0c, 0x00000001,
130 	0xd10, 0xa0633333,
131 	0xd14, 0x33333c63,
132 	0xd18, 0x6a8f5b6b,
133 	0xd1c, 0x00000000,
134 	0xd20, 0x00000000,
135 	0xd24, 0x00000000,
136 	0xd28, 0x00000000,
137 	0xd2c, 0xcc979975,
138 	0xd30, 0x00000000,
139 	0xd34, 0x00000000,
140 	0xd38, 0x00000000,
141 	0xd3c, 0x00027293,
142 	0xd40, 0x00000000,
143 	0xd44, 0x00000000,
144 	0xd48, 0x00000000,
145 	0xd4c, 0x00000000,
146 	0xd50, 0x6437140a,
147 	0xd54, 0x024dbd02,
148 	0xd58, 0x00000000,
149 	0xd5c, 0x04032064,
150 	0xe00, 0x161a1a1a,
151 	0xe04, 0x12121416,
152 	0xe08, 0x00001800,
153 	0xe0c, 0x00000000,
154 	0xe10, 0x161a1a1a,
155 	0xe14, 0x12121416,
156 	0xe18, 0x161a1a1a,
157 	0xe1c, 0x12121416,
158 };
159 
160 u32 RTL8192E_RADIO_A_ARR[RTL8192E_RADIO_A_ARR_LEN] = {
161 	0x019, 0x00000003,
162 	0x000, 0x000000bf,
163 	0x001, 0x00000ee0,
164 	0x002, 0x0000004c,
165 	0x003, 0x000007f1,
166 	0x004, 0x00000975,
167 	0x005, 0x00000c58,
168 	0x006, 0x00000ae6,
169 	0x007, 0x000000ca,
170 	0x008, 0x00000e1c,
171 	0x009, 0x000007f0,
172 	0x00a, 0x000009d0,
173 	0x00b, 0x000001ba,
174 	0x00c, 0x00000240,
175 	0x00e, 0x00000020,
176 	0x00f, 0x00000990,
177 	0x012, 0x00000806,
178 	0x014, 0x000005ab,
179 	0x015, 0x00000f80,
180 	0x016, 0x00000020,
181 	0x017, 0x00000597,
182 	0x018, 0x0000050a,
183 	0x01a, 0x00000f80,
184 	0x01b, 0x00000f5e,
185 	0x01c, 0x00000008,
186 	0x01d, 0x00000607,
187 	0x01e, 0x000006cc,
188 	0x01f, 0x00000000,
189 	0x020, 0x000001a5,
190 	0x01f, 0x00000001,
191 	0x020, 0x00000165,
192 	0x01f, 0x00000002,
193 	0x020, 0x000000c6,
194 	0x01f, 0x00000003,
195 	0x020, 0x00000086,
196 	0x01f, 0x00000004,
197 	0x020, 0x00000046,
198 	0x01f, 0x00000005,
199 	0x020, 0x000001e6,
200 	0x01f, 0x00000006,
201 	0x020, 0x000001a6,
202 	0x01f, 0x00000007,
203 	0x020, 0x00000166,
204 	0x01f, 0x00000008,
205 	0x020, 0x000000c7,
206 	0x01f, 0x00000009,
207 	0x020, 0x00000087,
208 	0x01f, 0x0000000a,
209 	0x020, 0x000000f7,
210 	0x01f, 0x0000000b,
211 	0x020, 0x000000d7,
212 	0x01f, 0x0000000c,
213 	0x020, 0x000000b7,
214 	0x01f, 0x0000000d,
215 	0x020, 0x00000097,
216 	0x01f, 0x0000000e,
217 	0x020, 0x00000077,
218 	0x01f, 0x0000000f,
219 	0x020, 0x00000057,
220 	0x01f, 0x00000010,
221 	0x020, 0x00000037,
222 	0x01f, 0x00000011,
223 	0x020, 0x000000fb,
224 	0x01f, 0x00000012,
225 	0x020, 0x000000db,
226 	0x01f, 0x00000013,
227 	0x020, 0x000000bb,
228 	0x01f, 0x00000014,
229 	0x020, 0x000000ff,
230 	0x01f, 0x00000015,
231 	0x020, 0x000000e3,
232 	0x01f, 0x00000016,
233 	0x020, 0x000000c3,
234 	0x01f, 0x00000017,
235 	0x020, 0x000000a3,
236 	0x01f, 0x00000018,
237 	0x020, 0x00000083,
238 	0x01f, 0x00000019,
239 	0x020, 0x00000063,
240 	0x01f, 0x0000001a,
241 	0x020, 0x00000043,
242 	0x01f, 0x0000001b,
243 	0x020, 0x00000023,
244 	0x01f, 0x0000001c,
245 	0x020, 0x00000003,
246 	0x01f, 0x0000001d,
247 	0x020, 0x000001e3,
248 	0x01f, 0x0000001e,
249 	0x020, 0x000001c3,
250 	0x01f, 0x0000001f,
251 	0x020, 0x000001a3,
252 	0x01f, 0x00000020,
253 	0x020, 0x00000183,
254 	0x01f, 0x00000021,
255 	0x020, 0x00000163,
256 	0x01f, 0x00000022,
257 	0x020, 0x00000143,
258 	0x01f, 0x00000023,
259 	0x020, 0x00000123,
260 	0x01f, 0x00000024,
261 	0x020, 0x00000103,
262 	0x023, 0x00000203,
263 	0x024, 0x00000100,
264 	0x00b, 0x000001ba,
265 	0x02c, 0x000003d7,
266 	0x02d, 0x00000ff0,
267 	0x000, 0x00000037,
268 	0x004, 0x00000160,
269 	0x007, 0x00000080,
270 	0x002, 0x0000088d,
271 	0x0fe, 0x00000000,
272 	0x0fe, 0x00000000,
273 	0x016, 0x00000200,
274 	0x016, 0x00000380,
275 	0x016, 0x00000020,
276 	0x016, 0x000001a0,
277 	0x000, 0x000000bf,
278 	0x00d, 0x0000001f,
279 	0x00d, 0x00000c9f,
280 	0x002, 0x0000004d,
281 	0x000, 0x00000cbf,
282 	0x004, 0x00000975,
283 	0x007, 0x00000700,
284 };
285 
286 u32 RTL8192E_RADIO_B_ARR[RTL8192E_RADIO_B_ARR_LEN] = {
287 	0x019, 0x00000003,
288 	0x000, 0x000000bf,
289 	0x001, 0x000006e0,
290 	0x002, 0x0000004c,
291 	0x003, 0x000007f1,
292 	0x004, 0x00000975,
293 	0x005, 0x00000c58,
294 	0x006, 0x00000ae6,
295 	0x007, 0x000000ca,
296 	0x008, 0x00000e1c,
297 	0x000, 0x000000b7,
298 	0x00a, 0x00000850,
299 	0x000, 0x000000bf,
300 	0x00b, 0x000001ba,
301 	0x00c, 0x00000240,
302 	0x00e, 0x00000020,
303 	0x015, 0x00000f80,
304 	0x016, 0x00000020,
305 	0x017, 0x00000597,
306 	0x018, 0x0000050a,
307 	0x01a, 0x00000e00,
308 	0x01b, 0x00000f5e,
309 	0x01d, 0x00000607,
310 	0x01e, 0x000006cc,
311 	0x00b, 0x000001ba,
312 	0x023, 0x00000203,
313 	0x024, 0x00000100,
314 	0x000, 0x00000037,
315 	0x004, 0x00000160,
316 	0x016, 0x00000200,
317 	0x016, 0x00000380,
318 	0x016, 0x00000020,
319 	0x016, 0x000001a0,
320 	0x00d, 0x00000ccc,
321 	0x000, 0x000000bf,
322 	0x002, 0x0000004d,
323 	0x000, 0x00000cbf,
324 	0x004, 0x00000975,
325 	0x007, 0x00000700,
326 };
327 
328 u32 RTL8192E_MACPHY_ARR[] = {
329 	0x03c, 0xffff0000, 0x00000f0f,
330 	0x340, 0xffffffff, 0x161a1a1a,
331 	0x344, 0xffffffff, 0x12121416,
332 	0x348, 0x0000ffff, 0x00001818,
333 	0x12c, 0xffffffff, 0x04000802,
334 	0x318, 0x00000fff, 0x00000100,
335 };
336 
337 u32 RTL8192E_MACPHY_ARR_PG[] = {
338 	0x03c, 0xffff0000, 0x00000f0f,
339 	0xe00, 0xffffffff, 0x06090909,
340 	0xe04, 0xffffffff, 0x00030306,
341 	0xe08, 0x0000ff00, 0x00000000,
342 	0xe10, 0xffffffff, 0x0a0c0d0f,
343 	0xe14, 0xffffffff, 0x06070809,
344 	0xe18, 0xffffffff, 0x0a0c0d0f,
345 	0xe1c, 0xffffffff, 0x06070809,
346 	0x12c, 0xffffffff, 0x04000802,
347 	0x318, 0x00000fff, 0x00000800,
348 };
349 
350 u32 RTL8192E_AGCTAB_ARR[RTL8192E_AGCTAB_ARR_LEN] = {
351 	0xc78, 0x7d000001,
352 	0xc78, 0x7d010001,
353 	0xc78, 0x7d020001,
354 	0xc78, 0x7d030001,
355 	0xc78, 0x7d040001,
356 	0xc78, 0x7d050001,
357 	0xc78, 0x7c060001,
358 	0xc78, 0x7b070001,
359 	0xc78, 0x7a080001,
360 	0xc78, 0x79090001,
361 	0xc78, 0x780a0001,
362 	0xc78, 0x770b0001,
363 	0xc78, 0x760c0001,
364 	0xc78, 0x750d0001,
365 	0xc78, 0x740e0001,
366 	0xc78, 0x730f0001,
367 	0xc78, 0x72100001,
368 	0xc78, 0x71110001,
369 	0xc78, 0x70120001,
370 	0xc78, 0x6f130001,
371 	0xc78, 0x6e140001,
372 	0xc78, 0x6d150001,
373 	0xc78, 0x6c160001,
374 	0xc78, 0x6b170001,
375 	0xc78, 0x6a180001,
376 	0xc78, 0x69190001,
377 	0xc78, 0x681a0001,
378 	0xc78, 0x671b0001,
379 	0xc78, 0x661c0001,
380 	0xc78, 0x651d0001,
381 	0xc78, 0x641e0001,
382 	0xc78, 0x491f0001,
383 	0xc78, 0x48200001,
384 	0xc78, 0x47210001,
385 	0xc78, 0x46220001,
386 	0xc78, 0x45230001,
387 	0xc78, 0x44240001,
388 	0xc78, 0x43250001,
389 	0xc78, 0x28260001,
390 	0xc78, 0x27270001,
391 	0xc78, 0x26280001,
392 	0xc78, 0x25290001,
393 	0xc78, 0x242a0001,
394 	0xc78, 0x232b0001,
395 	0xc78, 0x222c0001,
396 	0xc78, 0x212d0001,
397 	0xc78, 0x202e0001,
398 	0xc78, 0x0a2f0001,
399 	0xc78, 0x08300001,
400 	0xc78, 0x06310001,
401 	0xc78, 0x05320001,
402 	0xc78, 0x04330001,
403 	0xc78, 0x03340001,
404 	0xc78, 0x02350001,
405 	0xc78, 0x01360001,
406 	0xc78, 0x00370001,
407 	0xc78, 0x00380001,
408 	0xc78, 0x00390001,
409 	0xc78, 0x003a0001,
410 	0xc78, 0x003b0001,
411 	0xc78, 0x003c0001,
412 	0xc78, 0x003d0001,
413 	0xc78, 0x003e0001,
414 	0xc78, 0x003f0001,
415 	0xc78, 0x7d400001,
416 	0xc78, 0x7d410001,
417 	0xc78, 0x7d420001,
418 	0xc78, 0x7d430001,
419 	0xc78, 0x7d440001,
420 	0xc78, 0x7d450001,
421 	0xc78, 0x7c460001,
422 	0xc78, 0x7b470001,
423 	0xc78, 0x7a480001,
424 	0xc78, 0x79490001,
425 	0xc78, 0x784a0001,
426 	0xc78, 0x774b0001,
427 	0xc78, 0x764c0001,
428 	0xc78, 0x754d0001,
429 	0xc78, 0x744e0001,
430 	0xc78, 0x734f0001,
431 	0xc78, 0x72500001,
432 	0xc78, 0x71510001,
433 	0xc78, 0x70520001,
434 	0xc78, 0x6f530001,
435 	0xc78, 0x6e540001,
436 	0xc78, 0x6d550001,
437 	0xc78, 0x6c560001,
438 	0xc78, 0x6b570001,
439 	0xc78, 0x6a580001,
440 	0xc78, 0x69590001,
441 	0xc78, 0x685a0001,
442 	0xc78, 0x675b0001,
443 	0xc78, 0x665c0001,
444 	0xc78, 0x655d0001,
445 	0xc78, 0x645e0001,
446 	0xc78, 0x495f0001,
447 	0xc78, 0x48600001,
448 	0xc78, 0x47610001,
449 	0xc78, 0x46620001,
450 	0xc78, 0x45630001,
451 	0xc78, 0x44640001,
452 	0xc78, 0x43650001,
453 	0xc78, 0x28660001,
454 	0xc78, 0x27670001,
455 	0xc78, 0x26680001,
456 	0xc78, 0x25690001,
457 	0xc78, 0x246a0001,
458 	0xc78, 0x236b0001,
459 	0xc78, 0x226c0001,
460 	0xc78, 0x216d0001,
461 	0xc78, 0x206e0001,
462 	0xc78, 0x0a6f0001,
463 	0xc78, 0x08700001,
464 	0xc78, 0x06710001,
465 	0xc78, 0x05720001,
466 	0xc78, 0x04730001,
467 	0xc78, 0x03740001,
468 	0xc78, 0x02750001,
469 	0xc78, 0x01760001,
470 	0xc78, 0x00770001,
471 	0xc78, 0x00780001,
472 	0xc78, 0x00790001,
473 	0xc78, 0x007a0001,
474 	0xc78, 0x007b0001,
475 	0xc78, 0x007c0001,
476 	0xc78, 0x007d0001,
477 	0xc78, 0x007e0001,
478 	0xc78, 0x007f0001,
479 	0xc78, 0x2e00001e,
480 	0xc78, 0x2e01001e,
481 	0xc78, 0x2e02001e,
482 	0xc78, 0x2e03001e,
483 	0xc78, 0x2e04001e,
484 	0xc78, 0x2e05001e,
485 	0xc78, 0x3006001e,
486 	0xc78, 0x3407001e,
487 	0xc78, 0x3908001e,
488 	0xc78, 0x3c09001e,
489 	0xc78, 0x3f0a001e,
490 	0xc78, 0x420b001e,
491 	0xc78, 0x440c001e,
492 	0xc78, 0x450d001e,
493 	0xc78, 0x460e001e,
494 	0xc78, 0x460f001e,
495 	0xc78, 0x4710001e,
496 	0xc78, 0x4811001e,
497 	0xc78, 0x4912001e,
498 	0xc78, 0x4a13001e,
499 	0xc78, 0x4b14001e,
500 	0xc78, 0x4b15001e,
501 	0xc78, 0x4c16001e,
502 	0xc78, 0x4d17001e,
503 	0xc78, 0x4e18001e,
504 	0xc78, 0x4f19001e,
505 	0xc78, 0x4f1a001e,
506 	0xc78, 0x501b001e,
507 	0xc78, 0x511c001e,
508 	0xc78, 0x521d001e,
509 	0xc78, 0x521e001e,
510 	0xc78, 0x531f001e,
511 	0xc78, 0x5320001e,
512 	0xc78, 0x5421001e,
513 	0xc78, 0x5522001e,
514 	0xc78, 0x5523001e,
515 	0xc78, 0x5624001e,
516 	0xc78, 0x5725001e,
517 	0xc78, 0x5726001e,
518 	0xc78, 0x5827001e,
519 	0xc78, 0x5828001e,
520 	0xc78, 0x5929001e,
521 	0xc78, 0x592a001e,
522 	0xc78, 0x5a2b001e,
523 	0xc78, 0x5b2c001e,
524 	0xc78, 0x5c2d001e,
525 	0xc78, 0x5c2e001e,
526 	0xc78, 0x5d2f001e,
527 	0xc78, 0x5e30001e,
528 	0xc78, 0x5f31001e,
529 	0xc78, 0x6032001e,
530 	0xc78, 0x6033001e,
531 	0xc78, 0x6134001e,
532 	0xc78, 0x6235001e,
533 	0xc78, 0x6336001e,
534 	0xc78, 0x6437001e,
535 	0xc78, 0x6438001e,
536 	0xc78, 0x6539001e,
537 	0xc78, 0x663a001e,
538 	0xc78, 0x673b001e,
539 	0xc78, 0x673c001e,
540 	0xc78, 0x683d001e,
541 	0xc78, 0x693e001e,
542 	0xc78, 0x6a3f001e,
543 };
544