xref: /linux/drivers/net/wireless/realtek/rtw88/rtw8703b_tables.c (revision 6e7fd890f1d6ac83805409e9c346240de2705584)
1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright Fiona Klute <fiona.klute@gmx.de> */
3 
4 #include "main.h"
5 #include "phy.h"
6 #include "rtw8703b_tables.h"
7 
8 static const struct rtw_phy_pg_cfg_pair rtw8703b_bb_pg[] = {
9 	{ 0, 0, 0, 0x00000e08, 0x0000ff00, 0x00003200, },
10 	{ 0, 0, 0, 0x0000086c, 0xffffff00, 0x32323200, },
11 	{ 0, 0, 0, 0x00000e00, 0xffffffff, 0x34363636, },
12 	{ 0, 0, 0, 0x00000e04, 0xffffffff, 0x28303234, },
13 	{ 0, 0, 0, 0x00000e10, 0xffffffff, 0x30343434, },
14 	{ 0, 0, 0, 0x00000e14, 0xffffffff, 0x26262830, },
15 };
16 
17 RTW_DECL_TABLE_BB_PG(rtw8703b_bb_pg);
18 
19 /* Regd: FCC -> 0, ETSI -> 2, MKK -> 1
20  * Band: 2.4G -> 0, 5G -> 1
21  * Bandwidth (bw): 20M -> 0, 40M -> 1, 80M -> 2, 160M -> 3
22  * Rate Section (rs): CCK -> 0, OFDM -> 1, HT -> 2, VHT -> 3
23  */
24 static const struct rtw_txpwr_lmt_cfg_pair rtw8703b_txpwr_lmt[] = {
25 	{0, 0, 0, 0, 1, 30},
26 	{2, 0, 0, 0, 1, 26},
27 	{1, 0, 0, 0, 1, 32},
28 	{0, 0, 0, 0, 2, 30},
29 	{2, 0, 0, 0, 2, 26},
30 	{1, 0, 0, 0, 2, 32},
31 	{0, 0, 0, 0, 3, 30},
32 	{2, 0, 0, 0, 3, 26},
33 	{1, 0, 0, 0, 3, 32},
34 	{0, 0, 0, 0, 4, 30},
35 	{2, 0, 0, 0, 4, 26},
36 	{1, 0, 0, 0, 4, 32},
37 	{0, 0, 0, 0, 5, 30},
38 	{2, 0, 0, 0, 5, 26},
39 	{1, 0, 0, 0, 5, 32},
40 	{0, 0, 0, 0, 6, 30},
41 	{2, 0, 0, 0, 6, 26},
42 	{1, 0, 0, 0, 6, 32},
43 	{0, 0, 0, 0, 7, 30},
44 	{2, 0, 0, 0, 7, 26},
45 	{1, 0, 0, 0, 7, 32},
46 	{0, 0, 0, 0, 8, 30},
47 	{2, 0, 0, 0, 8, 26},
48 	{1, 0, 0, 0, 8, 32},
49 	{0, 0, 0, 0, 9, 30},
50 	{2, 0, 0, 0, 9, 26},
51 	{1, 0, 0, 0, 9, 32},
52 	{0, 0, 0, 0, 10, 30},
53 	{2, 0, 0, 0, 10, 26},
54 	{1, 0, 0, 0, 10, 32},
55 	{0, 0, 0, 0, 11, 30},
56 	{2, 0, 0, 0, 11, 26},
57 	{1, 0, 0, 0, 11, 32},
58 	{0, 0, 0, 0, 12, 63},
59 	{2, 0, 0, 0, 12, 26},
60 	{1, 0, 0, 0, 12, 32},
61 	{0, 0, 0, 0, 13, 63},
62 	{2, 0, 0, 0, 13, 26},
63 	{1, 0, 0, 0, 13, 32},
64 	{0, 0, 0, 0, 14, 63},
65 	{2, 0, 0, 0, 14, 63},
66 	{1, 0, 0, 0, 14, 32},
67 	{0, 0, 0, 1, 1, 28},
68 	{2, 0, 0, 1, 1, 28},
69 	{1, 0, 0, 1, 1, 28},
70 	{0, 0, 0, 1, 2, 28},
71 	{2, 0, 0, 1, 2, 32},
72 	{1, 0, 0, 1, 2, 32},
73 	{0, 0, 0, 1, 3, 32},
74 	{2, 0, 0, 1, 3, 32},
75 	{1, 0, 0, 1, 3, 32},
76 	{0, 0, 0, 1, 4, 32},
77 	{2, 0, 0, 1, 4, 32},
78 	{1, 0, 0, 1, 4, 32},
79 	{0, 0, 0, 1, 5, 32},
80 	{2, 0, 0, 1, 5, 32},
81 	{1, 0, 0, 1, 5, 32},
82 	{0, 0, 0, 1, 6, 32},
83 	{2, 0, 0, 1, 6, 32},
84 	{1, 0, 0, 1, 6, 32},
85 	{0, 0, 0, 1, 7, 32},
86 	{2, 0, 0, 1, 7, 32},
87 	{1, 0, 0, 1, 7, 32},
88 	{0, 0, 0, 1, 8, 32},
89 	{2, 0, 0, 1, 8, 32},
90 	{1, 0, 0, 1, 8, 32},
91 	{0, 0, 0, 1, 9, 32},
92 	{2, 0, 0, 1, 9, 32},
93 	{1, 0, 0, 1, 9, 32},
94 	{0, 0, 0, 1, 10, 28},
95 	{2, 0, 0, 1, 10, 32},
96 	{1, 0, 0, 1, 10, 32},
97 	{0, 0, 0, 1, 11, 28},
98 	{2, 0, 0, 1, 11, 32},
99 	{1, 0, 0, 1, 11, 32},
100 	{0, 0, 0, 1, 12, 63},
101 	{2, 0, 0, 1, 12, 32},
102 	{1, 0, 0, 1, 12, 32},
103 	{0, 0, 0, 1, 13, 63},
104 	{2, 0, 0, 1, 13, 28},
105 	{1, 0, 0, 1, 13, 28},
106 	{0, 0, 0, 1, 14, 63},
107 	{2, 0, 0, 1, 14, 63},
108 	{1, 0, 0, 1, 14, 63},
109 	{0, 0, 0, 2, 1, 26},
110 	{2, 0, 0, 2, 1, 26},
111 	{1, 0, 0, 2, 1, 28},
112 	{0, 0, 0, 2, 2, 26},
113 	{2, 0, 0, 2, 2, 32},
114 	{1, 0, 0, 2, 2, 32},
115 	{0, 0, 0, 2, 3, 32},
116 	{2, 0, 0, 2, 3, 32},
117 	{1, 0, 0, 2, 3, 32},
118 	{0, 0, 0, 2, 4, 32},
119 	{2, 0, 0, 2, 4, 32},
120 	{1, 0, 0, 2, 4, 32},
121 	{0, 0, 0, 2, 5, 32},
122 	{2, 0, 0, 2, 5, 32},
123 	{1, 0, 0, 2, 5, 32},
124 	{0, 0, 0, 2, 6, 32},
125 	{2, 0, 0, 2, 6, 32},
126 	{1, 0, 0, 2, 6, 32},
127 	{0, 0, 0, 2, 7, 32},
128 	{2, 0, 0, 2, 7, 32},
129 	{1, 0, 0, 2, 7, 32},
130 	{0, 0, 0, 2, 8, 32},
131 	{2, 0, 0, 2, 8, 32},
132 	{1, 0, 0, 2, 8, 32},
133 	{0, 0, 0, 2, 9, 32},
134 	{2, 0, 0, 2, 9, 32},
135 	{1, 0, 0, 2, 9, 32},
136 	{0, 0, 0, 2, 10, 26},
137 	{2, 0, 0, 2, 10, 32},
138 	{1, 0, 0, 2, 10, 32},
139 	{0, 0, 0, 2, 11, 26},
140 	{2, 0, 0, 2, 11, 32},
141 	{1, 0, 0, 2, 11, 32},
142 	{0, 0, 0, 2, 12, 63},
143 	{2, 0, 0, 2, 12, 32},
144 	{1, 0, 0, 2, 12, 32},
145 	{0, 0, 0, 2, 13, 63},
146 	{2, 0, 0, 2, 13, 26},
147 	{1, 0, 0, 2, 13, 28},
148 	{0, 0, 0, 2, 14, 63},
149 	{2, 0, 0, 2, 14, 63},
150 	{1, 0, 0, 2, 14, 63},
151 	{0, 0, 1, 2, 1, 63},
152 	{2, 0, 1, 2, 1, 63},
153 	{1, 0, 1, 2, 1, 63},
154 	{0, 0, 1, 2, 2, 63},
155 	{2, 0, 1, 2, 2, 63},
156 	{1, 0, 1, 2, 2, 63},
157 	{0, 0, 1, 2, 3, 26},
158 	{2, 0, 1, 2, 3, 26},
159 	{1, 0, 1, 2, 3, 26},
160 	{0, 0, 1, 2, 4, 26},
161 	{2, 0, 1, 2, 4, 28},
162 	{1, 0, 1, 2, 4, 26},
163 	{0, 0, 1, 2, 5, 28},
164 	{2, 0, 1, 2, 5, 28},
165 	{1, 0, 1, 2, 5, 26},
166 	{0, 0, 1, 2, 6, 28},
167 	{2, 0, 1, 2, 6, 28},
168 	{1, 0, 1, 2, 6, 26},
169 	{0, 0, 1, 2, 7, 28},
170 	{2, 0, 1, 2, 7, 28},
171 	{1, 0, 1, 2, 7, 26},
172 	{0, 0, 1, 2, 8, 26},
173 	{2, 0, 1, 2, 8, 28},
174 	{1, 0, 1, 2, 8, 26},
175 	{0, 0, 1, 2, 9, 26},
176 	{2, 0, 1, 2, 9, 28},
177 	{1, 0, 1, 2, 9, 26},
178 	{0, 0, 1, 2, 10, 26},
179 	{2, 0, 1, 2, 10, 28},
180 	{1, 0, 1, 2, 10, 26},
181 	{0, 0, 1, 2, 11, 26},
182 	{2, 0, 1, 2, 11, 26},
183 	{1, 0, 1, 2, 11, 26},
184 	{0, 0, 1, 2, 12, 63},
185 	{2, 0, 1, 2, 12, 26},
186 	{1, 0, 1, 2, 12, 26},
187 	{0, 0, 1, 2, 13, 63},
188 	{2, 0, 1, 2, 13, 26},
189 	{1, 0, 1, 2, 13, 26},
190 	{0, 0, 1, 2, 14, 63},
191 	{2, 0, 1, 2, 14, 63},
192 	{1, 0, 1, 2, 14, 63},
193 };
194 
195 RTW_DECL_TABLE_TXPWR_LMT(rtw8703b_txpwr_lmt);
196 
197 static const u32 rtw8703b_mac[] = {
198 	0x02F, 0x00000030,
199 	0x035, 0x00000000,
200 	0x067, 0x00000002,
201 	0x092, 0x00000080,
202 	0x421, 0x0000000F,
203 	0x428, 0x0000000A,
204 	0x429, 0x00000010,
205 	0x430, 0x00000000,
206 	0x431, 0x00000000,
207 	0x432, 0x00000000,
208 	0x433, 0x00000001,
209 	0x434, 0x00000002,
210 	0x435, 0x00000003,
211 	0x436, 0x00000005,
212 	0x437, 0x00000007,
213 	0x438, 0x00000000,
214 	0x439, 0x00000000,
215 	0x43A, 0x00000000,
216 	0x43B, 0x00000001,
217 	0x43C, 0x00000002,
218 	0x43D, 0x00000003,
219 	0x43E, 0x00000005,
220 	0x43F, 0x00000007,
221 	0x440, 0x0000005D,
222 	0x441, 0x00000001,
223 	0x442, 0x00000000,
224 	0x444, 0x00000010,
225 	0x445, 0x00000000,
226 	0x446, 0x00000000,
227 	0x447, 0x00000000,
228 	0x448, 0x00000000,
229 	0x449, 0x000000F0,
230 	0x44A, 0x0000000F,
231 	0x44B, 0x0000003E,
232 	0x44C, 0x00000010,
233 	0x44D, 0x00000000,
234 	0x44E, 0x00000000,
235 	0x44F, 0x00000000,
236 	0x450, 0x00000000,
237 	0x451, 0x000000F0,
238 	0x452, 0x0000000F,
239 	0x453, 0x00000000,
240 	0x456, 0x0000005E,
241 	0x460, 0x00000066,
242 	0x461, 0x00000066,
243 	0x4C8, 0x000000FF,
244 	0x4C9, 0x00000008,
245 	0x4CC, 0x000000FF,
246 	0x4CD, 0x000000FF,
247 	0x4CE, 0x00000001,
248 	0x500, 0x00000026,
249 	0x501, 0x000000A2,
250 	0x502, 0x0000002F,
251 	0x503, 0x00000000,
252 	0x504, 0x00000028,
253 	0x505, 0x000000A3,
254 	0x506, 0x0000005E,
255 	0x507, 0x00000000,
256 	0x508, 0x0000002B,
257 	0x509, 0x000000A4,
258 	0x50A, 0x0000005E,
259 	0x50B, 0x00000000,
260 	0x50C, 0x0000004F,
261 	0x50D, 0x000000A4,
262 	0x50E, 0x00000000,
263 	0x50F, 0x00000000,
264 	0x512, 0x0000001C,
265 	0x514, 0x0000000A,
266 	0x516, 0x0000000A,
267 	0x525, 0x0000004F,
268 	0x550, 0x00000010,
269 	0x551, 0x00000010,
270 	0x559, 0x00000002,
271 	0x55C, 0x00000028,
272 	0x55D, 0x000000FF,
273 	0x605, 0x00000030,
274 	0x608, 0x0000000E,
275 	0x609, 0x0000002A,
276 	0x620, 0x000000FF,
277 	0x621, 0x000000FF,
278 	0x622, 0x000000FF,
279 	0x623, 0x000000FF,
280 	0x624, 0x000000FF,
281 	0x625, 0x000000FF,
282 	0x626, 0x000000FF,
283 	0x627, 0x000000FF,
284 	0x638, 0x00000028,
285 	0x63C, 0x0000000A,
286 	0x63D, 0x0000000A,
287 	0x63E, 0x0000000C,
288 	0x63F, 0x0000000C,
289 	0x640, 0x00000040,
290 	0x642, 0x00000040,
291 	0x643, 0x00000000,
292 	0x652, 0x000000C8,
293 	0x66A, 0x000000B0,
294 	0x66E, 0x00000005,
295 	0x700, 0x00000021,
296 	0x701, 0x00000043,
297 	0x702, 0x00000065,
298 	0x703, 0x00000087,
299 	0x708, 0x00000021,
300 	0x709, 0x00000043,
301 	0x70A, 0x00000065,
302 	0x70B, 0x00000087,
303 	0x765, 0x00000018,
304 	0x76E, 0x00000004,
305 };
306 
307 RTW_DECL_TABLE_PHY_COND(rtw8703b_mac, rtw_phy_cfg_mac);
308 
309 static const u32 rtw8703b_agc[] = {
310 	0xC78, 0xFC000101,
311 	0xC78, 0xFB010101,
312 	0xC78, 0xFA020101,
313 	0xC78, 0xF9030101,
314 	0xC78, 0xF8040101,
315 	0xC78, 0xF7050101,
316 	0xC78, 0xF6060101,
317 	0xC78, 0xF5070101,
318 	0xC78, 0xF4080101,
319 	0xC78, 0xF3090101,
320 	0xC78, 0xF20A0101,
321 	0xC78, 0xF10B0101,
322 	0xC78, 0xF00C0101,
323 	0xC78, 0xEF0D0101,
324 	0xC78, 0xEE0E0101,
325 	0xC78, 0xED0F0101,
326 	0xC78, 0xEC100101,
327 	0xC78, 0xEB110101,
328 	0xC78, 0xEA120101,
329 	0xC78, 0xE9130101,
330 	0xC78, 0xE8140101,
331 	0xC78, 0xE7150101,
332 	0xC78, 0xE6160101,
333 	0xC78, 0xE5170101,
334 	0xC78, 0xE4180101,
335 	0xC78, 0xE3190101,
336 	0xC78, 0x661A0101,
337 	0xC78, 0x651B0101,
338 	0xC78, 0x641C0101,
339 	0xC78, 0x631D0101,
340 	0xC78, 0x071E0101,
341 	0xC78, 0x061F0101,
342 	0xC78, 0x05200101,
343 	0xC78, 0x04210101,
344 	0xC78, 0x03220101,
345 	0xC78, 0xE8230001,
346 	0xC78, 0xE7240001,
347 	0xC78, 0xE6250001,
348 	0xC78, 0xE5260001,
349 	0xC78, 0xE4270001,
350 	0xC78, 0x89280001,
351 	0xC78, 0x88290001,
352 	0xC78, 0x872A0001,
353 	0xC78, 0x862B0001,
354 	0xC78, 0x852C0001,
355 	0xC78, 0x482D0001,
356 	0xC78, 0x472E0001,
357 	0xC78, 0x462F0001,
358 	0xC78, 0x45300001,
359 	0xC78, 0x44310001,
360 	0xC78, 0x07320001,
361 	0xC78, 0x06330001,
362 	0xC78, 0x05340001,
363 	0xC78, 0x04350001,
364 	0xC78, 0x03360001,
365 	0xC78, 0x02370001,
366 	0xC78, 0x01380001,
367 	0xC78, 0x00390001,
368 	0xC78, 0x003A0001,
369 	0xC78, 0x003B0001,
370 	0xC78, 0x003C0001,
371 	0xC78, 0x003D0001,
372 	0xC78, 0x003E0001,
373 	0xC78, 0x003F0001,
374 	0xC78, 0x7F002001,
375 	0xC78, 0x7F012001,
376 	0xC78, 0x7F022001,
377 	0xC78, 0x7F032001,
378 	0xC78, 0x7F042001,
379 	0xC78, 0x7F052001,
380 	0xC78, 0x7F062001,
381 	0xC78, 0x7F072001,
382 	0xC78, 0x7F082001,
383 	0xC78, 0x7F092001,
384 	0xC78, 0x7F0A2001,
385 	0xC78, 0x7F0B2001,
386 	0xC78, 0x7F0C2001,
387 	0xC78, 0x7F0D2001,
388 	0xC78, 0x7F0E2001,
389 	0xC78, 0x7F0F2001,
390 	0xC78, 0x7F102001,
391 	0xC78, 0x7F112001,
392 	0xC78, 0x7E122001,
393 	0xC78, 0x7D132001,
394 	0xC78, 0x7C142001,
395 	0xC78, 0x7B152001,
396 	0xC78, 0x7A162001,
397 	0xC78, 0x79172001,
398 	0xC78, 0x78182001,
399 	0xC78, 0x77192001,
400 	0xC78, 0x761A2001,
401 	0xC78, 0x751B2001,
402 	0xC78, 0x741C2001,
403 	0xC78, 0x731D2001,
404 	0xC78, 0x721E2001,
405 	0xC78, 0x711F2001,
406 	0xC78, 0x70202001,
407 	0xC78, 0x6F212001,
408 	0xC78, 0x6E222001,
409 	0xC78, 0x6D232001,
410 	0xC78, 0x6C242001,
411 	0xC78, 0x6B252001,
412 	0xC78, 0x6A262001,
413 	0xC78, 0x69272001,
414 	0xC78, 0x68282001,
415 	0xC78, 0x67292001,
416 	0xC78, 0x662A2001,
417 	0xC78, 0x652B2001,
418 	0xC78, 0x642C2001,
419 	0xC78, 0x632D2001,
420 	0xC78, 0x622E2001,
421 	0xC78, 0x612F2001,
422 	0xC78, 0x60302001,
423 	0xC78, 0x42312001,
424 	0xC78, 0x41322001,
425 	0xC78, 0x40332001,
426 	0xC78, 0x23342001,
427 	0xC78, 0x22352001,
428 	0xC78, 0x21362001,
429 	0xC78, 0x20372001,
430 	0xC78, 0x00382001,
431 	0xC78, 0x02392001,
432 	0xC78, 0x013A2001,
433 	0xC78, 0x003B2001,
434 	0xC78, 0x003C2001,
435 	0xC78, 0x003D2001,
436 	0xC78, 0x003E2001,
437 	0xC78, 0x003F2001,
438 	0xC78, 0x7F003101,
439 	0xC78, 0x7F013101,
440 	0xC78, 0x7F023101,
441 	0xC78, 0x7F033101,
442 	0xC78, 0x7F043101,
443 	0xC78, 0x7F053101,
444 	0xC78, 0x7F063101,
445 	0xC78, 0x7E073101,
446 	0xC78, 0x7D083101,
447 	0xC78, 0x7C093101,
448 	0xC78, 0x7B0A3101,
449 	0xC78, 0x7A0B3101,
450 	0xC78, 0x790C3101,
451 	0xC78, 0x780D3101,
452 	0xC78, 0x770E3101,
453 	0xC78, 0x760F3101,
454 	0xC78, 0x75103101,
455 	0xC78, 0x74113101,
456 	0xC78, 0x73123101,
457 	0xC78, 0x72133101,
458 	0xC78, 0x71143101,
459 	0xC78, 0x70153101,
460 	0xC78, 0x6F163101,
461 	0xC78, 0x69173101,
462 	0xC78, 0x68183101,
463 	0xC78, 0x67193101,
464 	0xC78, 0x661A3101,
465 	0xC78, 0x651B3101,
466 	0xC78, 0x641C3101,
467 	0xC78, 0x631D3101,
468 	0xC78, 0x621E3101,
469 	0xC78, 0x611F3101,
470 	0xC78, 0x60203101,
471 	0xC78, 0x42213101,
472 	0xC78, 0x41223101,
473 	0xC78, 0x40233101,
474 	0xC78, 0x22243101,
475 	0xC78, 0x21253101,
476 	0xC78, 0x20263101,
477 	0xC78, 0x00273101,
478 	0xC78, 0x00283101,
479 	0xC78, 0x00293101,
480 	0xC78, 0x002A3101,
481 	0xC78, 0x002B3101,
482 	0xC78, 0x002C3101,
483 	0xC78, 0x002D3101,
484 	0xC78, 0x002E3101,
485 	0xC78, 0x002F3101,
486 	0xC78, 0x00303101,
487 	0xC78, 0x00313101,
488 	0xC78, 0x00323101,
489 	0xC78, 0x00333101,
490 	0xC78, 0x00343101,
491 	0xC78, 0x00353101,
492 	0xC78, 0x00363101,
493 	0xC78, 0x00373101,
494 	0xC78, 0x00383101,
495 	0xC78, 0x00393101,
496 	0xC78, 0x003A3101,
497 	0xC78, 0x003B3101,
498 	0xC78, 0x003C3101,
499 	0xC78, 0x003D3101,
500 	0xC78, 0x003E3101,
501 	0xC78, 0x003F3101,
502 	0xC78, 0xFA403101,
503 	0xC78, 0xF9413101,
504 	0xC78, 0xF8423101,
505 	0xC78, 0xF7433101,
506 	0xC78, 0xF6443101,
507 	0xC78, 0xF5453101,
508 	0xC78, 0xF4463101,
509 	0xC78, 0xF3473101,
510 	0xC78, 0xF2483101,
511 	0xC78, 0xE1493101,
512 	0xC78, 0xE04A3101,
513 	0xC78, 0xEF4B3101,
514 	0xC78, 0xEE4C3101,
515 	0xC78, 0xED4D3101,
516 	0xC78, 0xEC4E3101,
517 	0xC78, 0xEB4F3101,
518 	0xC78, 0xEA503101,
519 	0xC78, 0xE9513101,
520 	0xC78, 0xE8523101,
521 	0xC78, 0xE7533101,
522 	0xC78, 0xE6543101,
523 	0xC78, 0xE5553101,
524 	0xC78, 0xE4563101,
525 	0xC78, 0xE3573101,
526 	0xC78, 0xE2583101,
527 	0xC78, 0xE1593101,
528 	0xC78, 0xE05A3101,
529 	0xC78, 0xC25B3101,
530 	0xC78, 0xC15C3101,
531 	0xC78, 0xC05D3101,
532 	0xC78, 0x825E3101,
533 	0xC78, 0x815F3101,
534 	0xC78, 0x80603101,
535 	0xC78, 0x80613101,
536 	0xC78, 0x80623101,
537 	0xC78, 0x80633101,
538 	0xC78, 0x80643101,
539 	0xC78, 0x80653101,
540 	0xC78, 0x80663101,
541 	0xC78, 0x80673101,
542 	0xC78, 0x80683101,
543 	0xC78, 0x80693101,
544 	0xC78, 0x806A3101,
545 	0xC78, 0x806B3101,
546 	0xC78, 0x806C3101,
547 	0xC78, 0x806D3101,
548 	0xC78, 0x806E3101,
549 	0xC78, 0x806F3101,
550 	0xC78, 0x80703101,
551 	0xC78, 0x80713101,
552 	0xC78, 0x80723101,
553 	0xC78, 0x80733101,
554 	0xC78, 0x80743101,
555 	0xC78, 0x80753101,
556 	0xC78, 0x80763101,
557 	0xC78, 0x80773101,
558 	0xC78, 0x80783101,
559 	0xC78, 0x80793101,
560 	0xC78, 0x807A3101,
561 	0xC78, 0x807B3101,
562 	0xC78, 0x807C3101,
563 	0xC78, 0x807D3101,
564 	0xC78, 0x807E3101,
565 	0xC78, 0x807F3101,
566 	0xC78, 0xFF402001,
567 	0xC78, 0xFF412001,
568 	0xC78, 0xFF422001,
569 	0xC78, 0xFF432001,
570 	0xC78, 0xFF442001,
571 	0xC78, 0xFF452001,
572 	0xC78, 0xFF462001,
573 	0xC78, 0xFF472001,
574 	0xC78, 0xFF482001,
575 	0xC78, 0xFF492001,
576 	0xC78, 0xFF4A2001,
577 	0xC78, 0xFF4B2001,
578 	0xC78, 0xFF4C2001,
579 	0xC78, 0xFE4D2001,
580 	0xC78, 0xFD4E2001,
581 	0xC78, 0xFC4F2001,
582 	0xC78, 0xFB502001,
583 	0xC78, 0xFA512001,
584 	0xC78, 0xF9522001,
585 	0xC78, 0xF8532001,
586 	0xC78, 0xF7542001,
587 	0xC78, 0xF6552001,
588 	0xC78, 0xF5562001,
589 	0xC78, 0xF4572001,
590 	0xC78, 0xF3582001,
591 	0xC78, 0xF2592001,
592 	0xC78, 0xF15A2001,
593 	0xC78, 0xF05B2001,
594 	0xC78, 0xEF5C2001,
595 	0xC78, 0xEE5D2001,
596 	0xC78, 0xED5E2001,
597 	0xC78, 0xEC5F2001,
598 	0xC78, 0xEB602001,
599 	0xC78, 0xEA612001,
600 	0xC78, 0xE9622001,
601 	0xC78, 0xE8632001,
602 	0xC78, 0xE7642001,
603 	0xC78, 0xE6652001,
604 	0xC78, 0xE5662001,
605 	0xC78, 0xE4672001,
606 	0xC78, 0xE3682001,
607 	0xC78, 0xC5692001,
608 	0xC78, 0xC46A2001,
609 	0xC78, 0xC36B2001,
610 	0xC78, 0xA46C2001,
611 	0xC78, 0x846D2001,
612 	0xC78, 0x836E2001,
613 	0xC78, 0x826F2001,
614 	0xC78, 0x81702001,
615 	0xC78, 0x80712001,
616 	0xC78, 0x80722001,
617 	0xC78, 0x80732001,
618 	0xC78, 0x80742001,
619 	0xC78, 0x80752001,
620 	0xC78, 0x80762001,
621 	0xC78, 0x80772001,
622 	0xC78, 0x80782001,
623 	0xC78, 0x80792001,
624 	0xC78, 0x807A2001,
625 	0xC78, 0x807B2001,
626 	0xC78, 0x807C2001,
627 	0xC78, 0x807D2001,
628 	0xC78, 0x807E2001,
629 	0xC78, 0x807F2001,
630 	0xC50, 0x69553422,
631 	0xC50, 0x69553420,
632 };
633 
634 RTW_DECL_TABLE_PHY_COND(rtw8703b_agc, rtw_phy_cfg_agc);
635 
636 /* init values for BB registers */
637 static const u32 rtw8703b_bb[] = {
638 	0x800, 0x83045700,
639 	0x804, 0x00000003,
640 	0x808, 0x0000FC00,
641 	0x80C, 0x0000000A,
642 	0x810, 0x10001331,
643 	0x814, 0x020C3D10,
644 	0x818, 0x02200385,
645 	0x81C, 0x00000000,
646 	0x820, 0x01000100,
647 	0x824, 0x00390204,
648 	0x828, 0x00000000,
649 	0x82C, 0x00000000,
650 	0x830, 0x00000000,
651 	0x834, 0x00000000,
652 	0x838, 0x00000000,
653 	0x83C, 0x00000000,
654 	0x840, 0x00010000,
655 	0x844, 0x00000000,
656 	0x848, 0x00000000,
657 	0x84C, 0x00000000,
658 	0x850, 0x00000000,
659 	0x854, 0x00000000,
660 	0x858, 0x569A11A9,
661 	0x85C, 0x01000014,
662 	0x860, 0x66F60110,
663 	0x864, 0x061F0649,
664 	0x868, 0x00000000,
665 	0x86C, 0x27272700,
666 	0x870, 0x07000760,
667 	0x874, 0x25004000,
668 	0x878, 0x00000808,
669 	0x87C, 0x004F0201,
670 	0x880, 0xB0000B1E,
671 	0x884, 0x00000001,
672 	0x888, 0x00000000,
673 	0x88C, 0xCCC000C0,
674 	0x890, 0x00000800,
675 	0x894, 0xFFFFFFFE,
676 	0x898, 0x40302010,
677 	0x89C, 0x00706050,
678 	0x900, 0x00000000,
679 	0x904, 0x00000023,
680 	0x908, 0x00000000,
681 	0x90C, 0x81121111,
682 	0x910, 0x00000002,
683 	0x914, 0x00000201,
684 	0x948, 0x99000000,
685 	0x94C, 0x00000010,
686 	0x950, 0x20003800,
687 	0x954, 0x4A880000,
688 	0x958, 0x4BC5D87A,
689 	0x95C, 0x04EB9B79,
690 	0xA00, 0x00D047C8,
691 	0xA04, 0x80FF800C,
692 	0xA08, 0x8C838300,
693 	0xA0C, 0x2E7F120F,
694 	0xA10, 0x9500BB78,
695 	0xA14, 0x1114D028,
696 	0xA18, 0x00881117,
697 	0xA1C, 0x89140F00,
698 	0xA20, 0xD1D80000,
699 	0xA24, 0x5A7DA0BD,
700 	0xA28, 0x0000223B,
701 	0xA2C, 0x00D30000,
702 	0xA70, 0x101FBF00,
703 	0xA74, 0x00000007,
704 	0xA78, 0x00008900,
705 	0xA7C, 0x225B0606,
706 	0xA80, 0x2180FA74,
707 	0xA84, 0x00120000,
708 	0xA88, 0x040C0000,
709 	0xA8C, 0x12345678,
710 	0xA90, 0xABCDEF00,
711 	0xA94, 0x001B1B89,
712 	0xA98, 0x05100000,
713 	0xA9C, 0x3F000000,
714 	0xAA0, 0x00000000,
715 	0xB2C, 0x00000000,
716 	0xC00, 0x48071D40,
717 	0xC04, 0x03A05611,
718 	0xC08, 0x000000E4,
719 	0xC0C, 0x6C6C6C6C,
720 	0xC10, 0x18800000,
721 	0xC14, 0x40000100,
722 	0xC18, 0x08800000,
723 	0xC1C, 0x40000100,
724 	0xC20, 0x00000000,
725 	0xC24, 0x00000000,
726 	0xC28, 0x00000000,
727 	0xC2C, 0x00000000,
728 	0xC30, 0x69E9AC4B,
729 	0xC34, 0x31000040,
730 	0xC38, 0x21688080,
731 	0xC3C, 0x000016CC,
732 	0xC40, 0x1F78403F,
733 	0xC44, 0x00010036,
734 	0xC48, 0xEC020107,
735 	0xC4C, 0x007F037F,
736 	0xC50, 0x69553420,
737 	0xC54, 0x43BC0094,
738 	0xC58, 0x00015967,
739 	0xC5C, 0x18250492,
740 	0xC60, 0x00000000,
741 	0xC64, 0x7112848B,
742 	0xC68, 0x47C07BFF,
743 	0xC6C, 0x00000036,
744 	0xC70, 0x2C7F000D,
745 	0xC74, 0x020600DB,
746 	0xC78, 0x0000001F,
747 	0xC7C, 0x00B91612,
748 	0xC80, 0x390000E4,
749 	0xC84, 0x19F60000,
750 	0xC88, 0x40000100,
751 	0xC8C, 0x20200000,
752 	0xC90, 0x00091521,
753 	0xC94, 0x00000000,
754 	0xC98, 0x00121820,
755 	0xC9C, 0x00007F7F,
756 	0xCA0, 0x00000000,
757 	0xCA4, 0x000300A0,
758 	0xCA8, 0x00000000,
759 	0xCAC, 0x00000000,
760 	0xCB0, 0x00000000,
761 	0xCB4, 0x00000000,
762 	0xCB8, 0x00000000,
763 	0xCBC, 0x28000000,
764 	0xCC0, 0x00000000,
765 	0xCC4, 0x00000000,
766 	0xCC8, 0x00000000,
767 	0xCCC, 0x00000000,
768 	0xCD0, 0x00000000,
769 	0xCD4, 0x00000000,
770 	0xCD8, 0x64B22427,
771 	0xCDC, 0x00766932,
772 	0xCE0, 0x00222222,
773 	0xCE4, 0x10000000,
774 	0xCE8, 0x37644302,
775 	0xCEC, 0x2F97D40C,
776 	0xD00, 0x00030740,
777 	0xD04, 0x40020401,
778 	0xD08, 0x0000907F,
779 	0xD0C, 0x20010201,
780 	0xD10, 0xA0633333,
781 	0xD14, 0x3333BC53,
782 	0xD18, 0x7A8F5B6F,
783 	0xD2C, 0xCB979975,
784 	0xD30, 0x00000000,
785 	0xD34, 0x80608000,
786 	0xD38, 0x98000000,
787 	0xD3C, 0x40127353,
788 	0xD40, 0x00000000,
789 	0xD44, 0x00000000,
790 	0xD48, 0x00000000,
791 	0xD4C, 0x00000000,
792 	0xD50, 0x6437140A,
793 	0xD54, 0x00000000,
794 	0xD58, 0x00000282,
795 	0xD5C, 0x30032064,
796 	0xD60, 0x4653DE68,
797 	0xD64, 0x04518A3C,
798 	0xD68, 0x00002101,
799 	0xE00, 0x2D2D2D2D,
800 	0xE04, 0x2D2D2D2D,
801 	0xE08, 0x0390272D,
802 	0xE10, 0x2D2D2D2D,
803 	0xE14, 0x2D2D2D2D,
804 	0xE18, 0x2D2D2D2D,
805 	0xE1C, 0x2D2D2D2D,
806 	0xE28, 0x00000000,
807 	0xE30, 0x1000DC1F,
808 	0xE34, 0x10008C1F,
809 	0xE38, 0x02140102,
810 	0xE3C, 0x681604C2,
811 	0xE40, 0x01007C00,
812 	0xE44, 0x01004800,
813 	0xE48, 0xFB000000,
814 	0xE4C, 0x000028D1,
815 	0xE50, 0x1000DC1F,
816 	0xE54, 0x10008C1F,
817 	0xE58, 0x02140102,
818 	0xE5C, 0x28160D05,
819 	0xE60, 0x00000048,
820 	0xE68, 0x001B25A4,
821 	0xE6C, 0x01C00014,
822 	0xE70, 0x01C00014,
823 	0xE74, 0x02000014,
824 	0xE78, 0x02000014,
825 	0xE7C, 0x02000014,
826 	0xE80, 0x02000014,
827 	0xE84, 0x01C00014,
828 	0xE88, 0x02000014,
829 	0xE8C, 0x01C00014,
830 	0xED0, 0x01C00014,
831 	0xED4, 0x01C00014,
832 	0xED8, 0x01C00014,
833 	0xEDC, 0x00000014,
834 	0xEE0, 0x00000014,
835 	0xEE8, 0x21555448,
836 	0xEEC, 0x03C00014,
837 	0xF14, 0x00000003,
838 	0xF4C, 0x00000000,
839 	0xF00, 0x00000300,
840 };
841 
842 RTW_DECL_TABLE_PHY_COND(rtw8703b_bb, rtw_phy_cfg_bb);
843 
844 static const u32 rtw8703b_rf_a[] = {
845 	0x018, 0x00008C01,
846 	0x0B5, 0x0008C050,
847 	0x0B1, 0x00054258,
848 	0x0B2, 0x00054C00,
849 	0x030, 0x00018000,
850 	0x031, 0x00000027,
851 	0x032, 0x000A7F07,
852 	0x030, 0x00020000,
853 	0x031, 0x00000027,
854 	0x032, 0x000E7D87,
855 	0x01C, 0x000F8635,
856 	0x0EF, 0x00080000,
857 	0x030, 0x00008000,
858 	0x031, 0x00000004,
859 	0x032, 0x00006105,
860 	0x0EF, 0x00000000,
861 	0x0EF, 0x00000400,
862 	0x041, 0x0000BD54,
863 	0x041, 0x00003DD4,
864 	0x041, 0x0000FDD4,
865 	0x0EF, 0x00000000,
866 	0x0DF, 0x00000600,
867 	0x050, 0x0000C6DB,
868 	0x051, 0x00004505,
869 	0x052, 0x0000E31D,
870 	0x053, 0x00040579,
871 	0x054, 0x00000000,
872 	0x055, 0x0008206E,
873 	0x056, 0x00040000,
874 	0x0EF, 0x00000100,
875 	0x034, 0x0000ADD7,
876 	0x034, 0x00009DD4,
877 	0x034, 0x00008DD1,
878 	0x034, 0x00007DCE,
879 	0x034, 0x00006DCB,
880 	0x034, 0x00005CCE,
881 	0x034, 0x000048CD,
882 	0x034, 0x000034CC,
883 	0x034, 0x0000244F,
884 	0x034, 0x0000144C,
885 	0x034, 0x0000004E,
886 	0x0EF, 0x00000000,
887 	0x0EF, 0x00002000,
888 	0x03B, 0x0003801F,
889 	0x03B, 0x00030002,
890 	0x03B, 0x00028001,
891 	0x03B, 0x00020000,
892 	0x03B, 0x00018003,
893 	0x03B, 0x00010002,
894 	0x03B, 0x00008001,
895 	0x03B, 0x00000000,
896 	0x0EF, 0x00000000,
897 	0x082, 0x000C0000,
898 	0x083, 0x000AF025,
899 	0x01E, 0x00000C08,
900 };
901 
902 RTW_DECL_TABLE_RF_RADIO(rtw8703b_rf_a, A);
903