1/******************************************************************************
2 *
3 * Copyright(c) 2009-2014  Realtek Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12 * more details.
13 *
14 * The full GNU General Public License is included in this distribution in the
15 * file called LICENSE.
16 *
17 * Contact Information:
18 * wlanfae <wlanfae@realtek.com>
19 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
20 * Hsinchu 300, Taiwan.
21 *
22 * Created on  2010/ 5/18,  1:41
23 *
24 * Larry Finger <Larry.Finger@lwfinger.net>
25 *
26 *****************************************************************************/
27
28#include "table.h"
29u32 RTL8723BEPHY_REG_1TARRAY[] = {
30		0x800, 0x80040000,
31		0x804, 0x00000003,
32		0x808, 0x0000FC00,
33		0x80C, 0x0000000A,
34		0x810, 0x10001331,
35		0x814, 0x020C3D10,
36		0x818, 0x02200385,
37		0x81C, 0x00000000,
38		0x820, 0x01000100,
39		0x824, 0x00390204,
40		0x828, 0x00000000,
41		0x82C, 0x00000000,
42		0x830, 0x00000000,
43		0x834, 0x00000000,
44		0x838, 0x00000000,
45		0x83C, 0x00000000,
46		0x840, 0x00010000,
47		0x844, 0x00000000,
48		0x848, 0x00000000,
49		0x84C, 0x00000000,
50		0x850, 0x00000000,
51		0x854, 0x00000000,
52		0x858, 0x569A11A9,
53		0x85C, 0x01000014,
54		0x860, 0x66F60110,
55		0x864, 0x061F0649,
56		0x868, 0x00000000,
57		0x86C, 0x27272700,
58		0x870, 0x07000760,
59		0x874, 0x25004000,
60		0x878, 0x00000808,
61		0x87C, 0x00000000,
62		0x880, 0xB0000C1C,
63		0x884, 0x00000001,
64		0x888, 0x00000000,
65		0x88C, 0xCCC000C0,
66		0x890, 0x00000800,
67		0x894, 0xFFFFFFFE,
68		0x898, 0x40302010,
69		0x89C, 0x00706050,
70		0x900, 0x00000000,
71		0x904, 0x00000023,
72		0x908, 0x00000000,
73		0x90C, 0x81121111,
74		0x910, 0x00000002,
75		0x914, 0x00000201,
76		0x948, 0x00000280,
77		0xA00, 0x00D047C8,
78		0xA04, 0x80FF000C,
79		0xA08, 0x8C838300,
80		0xA0C, 0x2E7F120F,
81		0xA10, 0x9500BB78,
82		0xA14, 0x1114D028,
83		0xA18, 0x00881117,
84		0xA1C, 0x89140F00,
85		0xA20, 0x1A1B0000,
86		0xA24, 0x090E1317,
87		0xA28, 0x00000204,
88		0xA2C, 0x00D30000,
89		0xA70, 0x101FBF00,
90		0xA74, 0x00000007,
91		0xA78, 0x00000900,
92		0xA7C, 0x225B0606,
93		0xA80, 0x21806490,
94		0xB2C, 0x00000000,
95		0xC00, 0x48071D40,
96		0xC04, 0x03A05611,
97		0xC08, 0x000000E4,
98		0xC0C, 0x6C6C6C6C,
99		0xC10, 0x08800000,
100		0xC14, 0x40000100,
101		0xC18, 0x08800000,
102		0xC1C, 0x40000100,
103		0xC20, 0x00000000,
104		0xC24, 0x00000000,
105		0xC28, 0x00000000,
106		0xC2C, 0x00000000,
107		0xC30, 0x69E9AC44,
108		0xC34, 0x469652AF,
109		0xC38, 0x49795994,
110		0xC3C, 0x0A97971C,
111		0xC40, 0x1F7C403F,
112		0xC44, 0x000100B7,
113		0xC48, 0xEC020107,
114		0xC4C, 0x007F037F,
115		0xC50, 0x69553420,
116		0xC54, 0x43BC0094,
117		0xC58, 0x00023169,
118		0xC5C, 0x00250492,
119		0xC60, 0x00000000,
120		0xC64, 0x7112848B,
121		0xC68, 0x47C00BFF,
122		0xC6C, 0x00000036,
123		0xC70, 0x2C7F000D,
124		0xC74, 0x020610DB,
125		0xC78, 0x0000001F,
126		0xC7C, 0x00B91612,
127		0xC80, 0x390000E4,
128		0xC84, 0x20F60000,
129		0xC88, 0x40000100,
130		0xC8C, 0x20200000,
131		0xC90, 0x00020E1A,
132		0xC94, 0x00000000,
133		0xC98, 0x00020E1A,
134		0xC9C, 0x00007F7F,
135		0xCA0, 0x00000000,
136		0xCA4, 0x000300A0,
137		0xCA8, 0x00000000,
138		0xCAC, 0x00000000,
139		0xCB0, 0x00000000,
140		0xCB4, 0x00000000,
141		0xCB8, 0x00000000,
142		0xCBC, 0x28000000,
143		0xCC0, 0x00000000,
144		0xCC4, 0x00000000,
145		0xCC8, 0x00000000,
146		0xCCC, 0x00000000,
147		0xCD0, 0x00000000,
148		0xCD4, 0x00000000,
149		0xCD8, 0x64B22427,
150		0xCDC, 0x00766932,
151		0xCE0, 0x00222222,
152		0xCE4, 0x00000000,
153		0xCE8, 0x37644302,
154		0xCEC, 0x2F97D40C,
155		0xD00, 0x00000740,
156		0xD04, 0x40020401,
157		0xD08, 0x0000907F,
158		0xD0C, 0x20010201,
159		0xD10, 0xA0633333,
160		0xD14, 0x3333BC53,
161		0xD18, 0x7A8F5B6F,
162		0xD2C, 0xCC979975,
163		0xD30, 0x00000000,
164		0xD34, 0x80608000,
165		0xD38, 0x00000000,
166		0xD3C, 0x00127353,
167		0xD40, 0x00000000,
168		0xD44, 0x00000000,
169		0xD48, 0x00000000,
170		0xD4C, 0x00000000,
171		0xD50, 0x6437140A,
172		0xD54, 0x00000000,
173		0xD58, 0x00000282,
174		0xD5C, 0x30032064,
175		0xD60, 0x4653DE68,
176		0xD64, 0x04518A3C,
177		0xD68, 0x00002101,
178		0xD6C, 0x2A201C16,
179		0xD70, 0x1812362E,
180		0xD74, 0x322C2220,
181		0xD78, 0x000E3C24,
182		0xE00, 0x2D2D2D2D,
183		0xE04, 0x2D2D2D2D,
184		0xE08, 0x0390272D,
185		0xE10, 0x2D2D2D2D,
186		0xE14, 0x2D2D2D2D,
187		0xE18, 0x2D2D2D2D,
188		0xE1C, 0x2D2D2D2D,
189		0xE28, 0x00000000,
190		0xE30, 0x1000DC1F,
191		0xE34, 0x10008C1F,
192		0xE38, 0x02140102,
193		0xE3C, 0x681604C2,
194		0xE40, 0x01007C00,
195		0xE44, 0x01004800,
196		0xE48, 0xFB000000,
197		0xE4C, 0x000028D1,
198		0xE50, 0x1000DC1F,
199		0xE54, 0x10008C1F,
200		0xE58, 0x02140102,
201		0xE5C, 0x28160D05,
202		0xE60, 0x00000008,
203		0xE68, 0x001B2556,
204		0xE6C, 0x00C00096,
205		0xE70, 0x00C00096,
206		0xE74, 0x01000056,
207		0xE78, 0x01000014,
208		0xE7C, 0x01000056,
209		0xE80, 0x01000014,
210		0xE84, 0x00C00096,
211		0xE88, 0x01000056,
212		0xE8C, 0x00C00096,
213		0xED0, 0x00C00096,
214		0xED4, 0x00C00096,
215		0xED8, 0x00C00096,
216		0xEDC, 0x000000D6,
217		0xEE0, 0x000000D6,
218		0xEEC, 0x01C00016,
219		0xF14, 0x00000003,
220		0xF4C, 0x00000000,
221		0xF00, 0x00000300,
222		0x820, 0x01000100,
223		0x800, 0x83040000,
224
225};
226
227u32 RTL8723BEPHY_REG_ARRAY_PG[] = {
228	0, 0, 0, 0x00000e08, 0x0000ff00, 0x00004000,
229	0, 0, 0, 0x0000086c, 0xffffff00, 0x34363800,
230	0, 0, 0, 0x00000e00, 0xffffffff, 0x42444646,
231	0, 0, 0, 0x00000e04, 0xffffffff, 0x30343840,
232	0, 0, 0, 0x00000e10, 0xffffffff, 0x38404244,
233	0, 0, 0, 0x00000e14, 0xffffffff, 0x26303436
234};
235
236u32 RTL8723BE_RADIOA_1TARRAY[] = {
237		0x000, 0x00010000,
238		0x0B0, 0x000DFFE0,
239		0x0FE, 0x00000000,
240		0x0FE, 0x00000000,
241		0x0FE, 0x00000000,
242		0x0B1, 0x00000018,
243		0x0FE, 0x00000000,
244		0x0FE, 0x00000000,
245		0x0FE, 0x00000000,
246		0x0B2, 0x00084C00,
247		0x0B5, 0x0000D2CC,
248		0x0B6, 0x000925AA,
249		0x0B7, 0x00000010,
250		0x0B8, 0x0000907F,
251		0x05C, 0x00000002,
252		0x07C, 0x00000002,
253		0x07E, 0x00000005,
254		0x08B, 0x0006FC00,
255		0x0B0, 0x000FF9F0,
256		0x01C, 0x000739D2,
257		0x01E, 0x00000000,
258		0x0DF, 0x00000780,
259		0x050, 0x00067435,
260		0x051, 0x0006B04E,
261		0x052, 0x000007D2,
262		0x053, 0x00000000,
263		0x054, 0x00050400,
264		0x055, 0x0004026E,
265		0x0DD, 0x0000004C,
266		0x070, 0x00067435,
267		0x071, 0x0006B04E,
268		0x072, 0x000007D2,
269		0x073, 0x00000000,
270		0x074, 0x00050400,
271		0x075, 0x0004026E,
272		0x0EF, 0x00000100,
273		0x034, 0x0000ADD7,
274		0x035, 0x00005C00,
275		0x034, 0x00009DD4,
276		0x035, 0x00005000,
277		0x034, 0x00008DD1,
278		0x035, 0x00004400,
279		0x034, 0x00007DCE,
280		0x035, 0x00003800,
281		0x034, 0x00006CD1,
282		0x035, 0x00004400,
283		0x034, 0x00005CCE,
284		0x035, 0x00003800,
285		0x034, 0x000048CE,
286		0x035, 0x00004400,
287		0x034, 0x000034CE,
288		0x035, 0x00003800,
289		0x034, 0x00002451,
290		0x035, 0x00004400,
291		0x034, 0x0000144E,
292		0x035, 0x00003800,
293		0x034, 0x00000051,
294		0x035, 0x00004400,
295		0x0EF, 0x00000000,
296		0x0EF, 0x00000100,
297		0x0ED, 0x00000010,
298		0x044, 0x0000ADD7,
299		0x044, 0x00009DD4,
300		0x044, 0x00008DD1,
301		0x044, 0x00007DCE,
302		0x044, 0x00006CC1,
303		0x044, 0x00005CCE,
304		0x044, 0x000044D1,
305		0x044, 0x000034CE,
306		0x044, 0x00002451,
307		0x044, 0x0000144E,
308		0x044, 0x00000051,
309		0x0EF, 0x00000000,
310		0x0ED, 0x00000000,
311		0x0EF, 0x00002000,
312		0x03B, 0x000380EF,
313		0x03B, 0x000302FE,
314		0x03B, 0x00028CE6,
315		0x03B, 0x000200BC,
316		0x03B, 0x000188A5,
317		0x03B, 0x00010FBC,
318		0x03B, 0x00008F71,
319		0x03B, 0x00000900,
320		0x0EF, 0x00000000,
321		0x0ED, 0x00000001,
322		0x040, 0x000380EF,
323		0x040, 0x000302FE,
324		0x040, 0x00028CE6,
325		0x040, 0x000200BC,
326		0x040, 0x000188A5,
327		0x040, 0x00010FBC,
328		0x040, 0x00008F71,
329		0x040, 0x00000900,
330		0x0ED, 0x00000000,
331		0x082, 0x00080000,
332		0x083, 0x00008000,
333		0x084, 0x00048D80,
334		0x085, 0x00068000,
335		0x0A2, 0x00080000,
336		0x0A3, 0x00008000,
337		0x0A4, 0x00048D80,
338		0x0A5, 0x00068000,
339		0x000, 0x00033D80,
340
341};
342
343u32 RTL8723BEMAC_1T_ARRAY[] = {
344		0x02F, 0x00000030,
345		0x035, 0x00000000,
346		0x067, 0x00000020,
347		0x428, 0x0000000A,
348		0x429, 0x00000010,
349		0x430, 0x00000000,
350		0x431, 0x00000000,
351		0x432, 0x00000000,
352		0x433, 0x00000001,
353		0x434, 0x00000004,
354		0x435, 0x00000005,
355		0x436, 0x00000007,
356		0x437, 0x00000008,
357		0x43C, 0x00000004,
358		0x43D, 0x00000005,
359		0x43E, 0x00000007,
360		0x43F, 0x00000008,
361		0x440, 0x0000005D,
362		0x441, 0x00000001,
363		0x442, 0x00000000,
364		0x444, 0x00000010,
365		0x445, 0x00000000,
366		0x446, 0x00000000,
367		0x447, 0x00000000,
368		0x448, 0x00000000,
369		0x449, 0x000000F0,
370		0x44A, 0x0000000F,
371		0x44B, 0x0000003E,
372		0x44C, 0x00000010,
373		0x44D, 0x00000000,
374		0x44E, 0x00000000,
375		0x44F, 0x00000000,
376		0x450, 0x00000000,
377		0x451, 0x000000F0,
378		0x452, 0x0000000F,
379		0x453, 0x00000000,
380		0x456, 0x0000005E,
381		0x460, 0x00000066,
382		0x461, 0x00000066,
383		0x4C8, 0x000000FF,
384		0x4C9, 0x00000008,
385		0x4CC, 0x000000FF,
386		0x4CD, 0x000000FF,
387		0x4CE, 0x00000001,
388		0x500, 0x00000026,
389		0x501, 0x000000A2,
390		0x502, 0x0000002F,
391		0x503, 0x00000000,
392		0x504, 0x00000028,
393		0x505, 0x000000A3,
394		0x506, 0x0000005E,
395		0x507, 0x00000000,
396		0x508, 0x0000002B,
397		0x509, 0x000000A4,
398		0x50A, 0x0000005E,
399		0x50B, 0x00000000,
400		0x50C, 0x0000004F,
401		0x50D, 0x000000A4,
402		0x50E, 0x00000000,
403		0x50F, 0x00000000,
404		0x512, 0x0000001C,
405		0x514, 0x0000000A,
406		0x516, 0x0000000A,
407		0x525, 0x0000004F,
408		0x550, 0x00000010,
409		0x551, 0x00000010,
410		0x559, 0x00000002,
411		0x55C, 0x00000050,
412		0x55D, 0x000000FF,
413		0x605, 0x00000030,
414		0x608, 0x0000000E,
415		0x609, 0x0000002A,
416		0x620, 0x000000FF,
417		0x621, 0x000000FF,
418		0x622, 0x000000FF,
419		0x623, 0x000000FF,
420		0x624, 0x000000FF,
421		0x625, 0x000000FF,
422		0x626, 0x000000FF,
423		0x627, 0x000000FF,
424		0x638, 0x00000050,
425		0x63C, 0x0000000A,
426		0x63D, 0x0000000A,
427		0x63E, 0x0000000E,
428		0x63F, 0x0000000E,
429		0x640, 0x00000040,
430		0x642, 0x00000040,
431		0x643, 0x00000000,
432		0x652, 0x000000C8,
433		0x66E, 0x00000005,
434		0x700, 0x00000021,
435		0x701, 0x00000043,
436		0x702, 0x00000065,
437		0x703, 0x00000087,
438		0x708, 0x00000021,
439		0x709, 0x00000043,
440		0x70A, 0x00000065,
441		0x70B, 0x00000087,
442
443};
444
445u32 RTL8723BEAGCTAB_1TARRAY[] = {
446		0xC78, 0xFD000001,
447		0xC78, 0xFC010001,
448		0xC78, 0xFB020001,
449		0xC78, 0xFA030001,
450		0xC78, 0xF9040001,
451		0xC78, 0xF8050001,
452		0xC78, 0xF7060001,
453		0xC78, 0xF6070001,
454		0xC78, 0xF5080001,
455		0xC78, 0xF4090001,
456		0xC78, 0xF30A0001,
457		0xC78, 0xF20B0001,
458		0xC78, 0xF10C0001,
459		0xC78, 0xF00D0001,
460		0xC78, 0xEF0E0001,
461		0xC78, 0xEE0F0001,
462		0xC78, 0xED100001,
463		0xC78, 0xEC110001,
464		0xC78, 0xEB120001,
465		0xC78, 0xEA130001,
466		0xC78, 0xE9140001,
467		0xC78, 0xE8150001,
468		0xC78, 0xE7160001,
469		0xC78, 0xAA170001,
470		0xC78, 0xA9180001,
471		0xC78, 0xA8190001,
472		0xC78, 0xA71A0001,
473		0xC78, 0xA61B0001,
474		0xC78, 0xA51C0001,
475		0xC78, 0xA41D0001,
476		0xC78, 0xA31E0001,
477		0xC78, 0x671F0001,
478		0xC78, 0x66200001,
479		0xC78, 0x65210001,
480		0xC78, 0x64220001,
481		0xC78, 0x63230001,
482		0xC78, 0x62240001,
483		0xC78, 0x61250001,
484		0xC78, 0x47260001,
485		0xC78, 0x46270001,
486		0xC78, 0x45280001,
487		0xC78, 0x44290001,
488		0xC78, 0x432A0001,
489		0xC78, 0x422B0001,
490		0xC78, 0x292C0001,
491		0xC78, 0x282D0001,
492		0xC78, 0x272E0001,
493		0xC78, 0x262F0001,
494		0xC78, 0x25300001,
495		0xC78, 0x24310001,
496		0xC78, 0x09320001,
497		0xC78, 0x08330001,
498		0xC78, 0x07340001,
499		0xC78, 0x06350001,
500		0xC78, 0x05360001,
501		0xC78, 0x04370001,
502		0xC78, 0x03380001,
503		0xC78, 0x02390001,
504		0xC78, 0x013A0001,
505		0xC78, 0x003B0001,
506		0xC78, 0x003C0001,
507		0xC78, 0x003D0001,
508		0xC78, 0x003E0001,
509		0xC78, 0x003F0001,
510		0xC78, 0xFC400001,
511		0xC78, 0xFB410001,
512		0xC78, 0xFA420001,
513		0xC78, 0xF9430001,
514		0xC78, 0xF8440001,
515		0xC78, 0xF7450001,
516		0xC78, 0xF6460001,
517		0xC78, 0xF5470001,
518		0xC78, 0xF4480001,
519		0xC78, 0xF3490001,
520		0xC78, 0xF24A0001,
521		0xC78, 0xF14B0001,
522		0xC78, 0xF04C0001,
523		0xC78, 0xEF4D0001,
524		0xC78, 0xEE4E0001,
525		0xC78, 0xED4F0001,
526		0xC78, 0xEC500001,
527		0xC78, 0xEB510001,
528		0xC78, 0xEA520001,
529		0xC78, 0xE9530001,
530		0xC78, 0xE8540001,
531		0xC78, 0xE7550001,
532		0xC78, 0xE6560001,
533		0xC78, 0xE5570001,
534		0xC78, 0xAA580001,
535		0xC78, 0xA9590001,
536		0xC78, 0xA85A0001,
537		0xC78, 0xA75B0001,
538		0xC78, 0xA65C0001,
539		0xC78, 0xA55D0001,
540		0xC78, 0xA45E0001,
541		0xC78, 0x675F0001,
542		0xC78, 0x66600001,
543		0xC78, 0x65610001,
544		0xC78, 0x64620001,
545		0xC78, 0x63630001,
546		0xC78, 0x62640001,
547		0xC78, 0x61650001,
548		0xC78, 0x47660001,
549		0xC78, 0x46670001,
550		0xC78, 0x45680001,
551		0xC78, 0x44690001,
552		0xC78, 0x436A0001,
553		0xC78, 0x426B0001,
554		0xC78, 0x296C0001,
555		0xC78, 0x286D0001,
556		0xC78, 0x276E0001,
557		0xC78, 0x266F0001,
558		0xC78, 0x25700001,
559		0xC78, 0x24710001,
560		0xC78, 0x09720001,
561		0xC78, 0x08730001,
562		0xC78, 0x07740001,
563		0xC78, 0x06750001,
564		0xC78, 0x05760001,
565		0xC78, 0x04770001,
566		0xC78, 0x03780001,
567		0xC78, 0x02790001,
568		0xC78, 0x017A0001,
569		0xC78, 0x007B0001,
570		0xC78, 0x007C0001,
571		0xC78, 0x007D0001,
572		0xC78, 0x007E0001,
573		0xC78, 0x007F0001,
574		0xC50, 0x69553422,
575		0xC50, 0x69553420,
576
577};
578