xref: /freebsd/sys/dev/ath/ath_hal/ar5416/ar5416.ini (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
114779705SSam Leffler/*
214779705SSam Leffler * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
38b9cd503SAdrian Chadd * Copyright (c) 2008-2009 Atheros Communications Inc.
414779705SSam Leffler *
514779705SSam Leffler * Permission to use, copy, modify, and/or distribute this software for any
614779705SSam Leffler * purpose with or without fee is hereby granted, provided that the above
714779705SSam Leffler * copyright notice and this permission notice appear in all copies.
814779705SSam Leffler *
914779705SSam Leffler * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1014779705SSam Leffler * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1114779705SSam Leffler * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1214779705SSam Leffler * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1314779705SSam Leffler * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1414779705SSam Leffler * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1514779705SSam Leffler * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1614779705SSam Leffler */
1714779705SSam Leffler/* Auto Generated PCI Register Writes.  Created: 09/20/06 */
1814779705SSam Leffler
1914779705SSam Lefflerstatic const uint32_t ar5416Modes[][6] = {
2014779705SSam Leffler   /* Register    A           A-20/40     G-20/40     G           G-Turbo    */
2114779705SSam Leffler    { 0x00001030, 0x00000230, 0x00000460, 0x000002c0, 0x00000160, 0x000001e0 },
2214779705SSam Leffler    { 0x00001070, 0x00000168, 0x000002d0, 0x00000318, 0x0000018c, 0x000001e0 },
2314779705SSam Leffler    { 0x000010b0, 0x00000e60, 0x00001cc0, 0x00007c70, 0x00003e38, 0x00001180 },
2414779705SSam Leffler    { 0x000010f0, 0x0000a000, 0x00014000, 0x00016000, 0x0000b000, 0x00014008 },
258b9cd503SAdrian Chadd    { 0x00008014, 0x03e803e8, 0x07d007d0, 0x10801600, 0x08400b00, 0x06e006e0 },
2614779705SSam Leffler    { 0x0000801c, 0x128d93a7, 0x128d93cf, 0x12e013d7, 0x12e013ab, 0x098813cf },
278b9cd503SAdrian Chadd    { 0x00008120, 0x08f04800, 0x08f04800, 0x08f04810, 0x08f04810, 0x08f04810 },
288b9cd503SAdrian Chadd    { 0x000081d0, 0x00003210, 0x00003210, 0x0000320a, 0x0000320a, 0x0000320a },
2914779705SSam Leffler    { 0x00009804, 0x00000300, 0x000003c4, 0x000003c4, 0x00000300, 0x00000303 },
3014779705SSam Leffler    { 0x00009820, 0x02020200, 0x02020200, 0x02020200, 0x02020200, 0x02020200 },
3114779705SSam Leffler    { 0x00009824, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e },
3214779705SSam Leffler    { 0x00009828, 0x0a020001, 0x0a020001, 0x0a020001, 0x0a020001, 0x0a020001 },
3314779705SSam Leffler    { 0x00009834, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e },
3414779705SSam Leffler    { 0x00009838, 0x00000007, 0x00000007, 0x00000007, 0x00000007, 0x00000007 },
358b9cd503SAdrian Chadd    { 0x00009844, 0x1372161e, 0x1372161e, 0x137216a0, 0x137216a0, 0x137216a0 },
3614779705SSam Leffler    { 0x00009848, 0x001a6a65, 0x001a6a65, 0x00197a68, 0x00197a68, 0x00197a68 },
3714779705SSam Leffler    { 0x0000a848, 0x001a6a65, 0x001a6a65, 0x00197a68, 0x00197a68, 0x00197a68 },
3814779705SSam Leffler    { 0x0000b848, 0x001a6a65, 0x001a6a65, 0x00197a68, 0x00197a68, 0x00197a68 },
398b9cd503SAdrian Chadd    { 0x00009850, 0x6c48b4e0, 0x6d48b4e0, 0x6d48b0de, 0x6c48b0de, 0x6c48b0de },
4014779705SSam Leffler    { 0x00009858, 0x7ec82d2e, 0x7ec82d2e, 0x7ec82d2e, 0x7ec82d2e, 0x7ec82d2e },
418b9cd503SAdrian Chadd    { 0x0000985c, 0x31395d5e, 0x3139605e, 0x3139605e, 0x31395d5e, 0x31395d5e },
428b9cd503SAdrian Chadd    { 0x00009860, 0x00049d18, 0x00049d18, 0x00049d18, 0x00049d18, 0x00049d18 },
438b9cd503SAdrian Chadd    { 0x00009864, 0x0001ce00, 0x0001ce00, 0x0001ce00, 0x0001ce00, 0x0001ce00 },
4414779705SSam Leffler    { 0x00009868, 0x409a4190, 0x409a4190, 0x409a4190, 0x409a4190, 0x409a4190 },
4514779705SSam Leffler    { 0x0000986c, 0x050cb081, 0x050cb081, 0x050cb081, 0x050cb081, 0x050cb081 },
468b9cd503SAdrian Chadd    { 0x00009914, 0x000007d0, 0x00000fa0, 0x00001130, 0x00000898, 0x000007d0 },
478b9cd503SAdrian Chadd    { 0x00009918, 0x000001b8, 0x00000370, 0x00000268, 0x00000134, 0x00000134 },
488b9cd503SAdrian Chadd    { 0x00009924, 0xd0058a0b, 0xd0058a0b, 0xd0058a0b, 0xd0058a0b, 0xd0058a0b },
498b9cd503SAdrian Chadd    { 0x00009944, 0xffb81020, 0xffb81020, 0xffb81020, 0xffb81020, 0xffb81020 },
5014779705SSam Leffler#ifdef TB243
5114779705SSam Leffler    { 0x00009960, 0x00000900, 0x00000900, 0x00009b40, 0x00009b40, 0x00012d80 },
5214779705SSam Leffler    { 0x0000a960, 0x00000900, 0x00000900, 0x00009b40, 0x00009b40, 0x00012d80 },
5314779705SSam Leffler    { 0x0000b960, 0x00000900, 0x00000900, 0x00009b40, 0x00009b40, 0x00012d80 },
5414779705SSam Leffler    { 0x00009964, 0x00000000, 0x00000000, 0x00002210, 0x00002210, 0x00001120 },
5514779705SSam Leffler#else
5614779705SSam Leffler    { 0x00009960, 0x00000900, 0x00000900, 0x00012d80, 0x00012d80, 0x00012d80 },
5714779705SSam Leffler    { 0x0000a960, 0x00000900, 0x00000900, 0x00012d80, 0x00012d80, 0x00012d80 },
5814779705SSam Leffler    { 0x0000b960, 0x00000900, 0x00000900, 0x00012d80, 0x00012d80, 0x00012d80 },
5914779705SSam Leffler#ifdef __LINUX_ARM_ARCH__
6014779705SSam Leffler    { 0x00009964, 0x00000000, 0x00000000, 0x00001120, 0x00001120, 0x00001120 },
6114779705SSam Leffler#else
6214779705SSam Leffler    { 0x00009964, 0x00000000, 0x00000000, 0x00001120, 0x00001120, 0x00001120 },
6314779705SSam Leffler#endif
6414779705SSam Leffler#endif
6514779705SSam Leffler    { 0x0000c9bc, 0x001a0a00, 0x001a0a00, 0x001a0a00, 0x001a0a00, 0x001a0a00 },
668b9cd503SAdrian Chadd    { 0x00009964, 0x00000000, 0x00000000, 0x00001120, 0x00001120, 0x00001120 },
678b9cd503SAdrian Chadd    { 0x000099bc, 0x001a0a00, 0x001a0a00, 0x001a0a00, 0x001a0a00, 0x001a0a00 },
6814779705SSam Leffler    { 0x000099c0, 0x038919be, 0x038919be, 0x038919be, 0x038919be, 0x038919be },
6914779705SSam Leffler    { 0x000099c4, 0x06336f77, 0x06336f77, 0x06336f77, 0x06336f77, 0x06336f77 },
708b9cd503SAdrian Chadd    { 0x000099c8, 0x6af6532c, 0x6af6532c, 0x6af6532c, 0x6af6532c, 0x6af6532c },
7114779705SSam Leffler    { 0x000099cc, 0x08f186c8, 0x08f186c8, 0x08f186c8, 0x08f186c8, 0x08f186c8 },
7214779705SSam Leffler    { 0x000099d0, 0x00046384, 0x00046384, 0x00046384, 0x00046384, 0x00046384 },
7314779705SSam Leffler    { 0x000099d4, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
7414779705SSam Leffler    { 0x000099d8, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
758b9cd503SAdrian Chadd    { 0x0000a204, 0x00000880, 0x00000880, 0x00000880, 0x00000880, 0x00000880 },
7614779705SSam Leffler    { 0x0000a208, 0xd6be4788, 0xd6be4788, 0xd03e4788, 0xd03e4788, 0xd03e4788 },
7714779705SSam Leffler    { 0x0000a20c, 0x002ec1e0, 0x002ec1e0, 0x002ac120, 0x002ac120, 0x002ac120 },
7814779705SSam Leffler    { 0x0000b20c, 0x002ec1e0, 0x002ec1e0, 0x002ac120, 0x002ac120, 0x002ac120 },
7914779705SSam Leffler    { 0x0000c20c, 0x002ec1e0, 0x002ec1e0, 0x002ac120, 0x002ac120, 0x002ac120 },
8014779705SSam Leffler    { 0x0000a21c, 0x1883800a, 0x1883800a, 0x1883800a, 0x1883800a, 0x1883800a },
8114779705SSam Leffler    { 0x0000a230, 0x00000000, 0x00000000, 0x00000210, 0x00000108, 0x00000000 },
8214779705SSam Leffler    { 0x0000a274, 0x0a1a9caa, 0x0a1a9caa, 0x0a1a7caa, 0x0a1a7caa, 0x0a1a7caa },
8314779705SSam Leffler    { 0x0000a300, 0x18010000, 0x18010000, 0x18010000, 0x18010000, 0x18010000 },
8414779705SSam Leffler    { 0x0000a304, 0x30032602, 0x30032602, 0x2e032402, 0x2e032402, 0x2e032402 },
8514779705SSam Leffler    { 0x0000a308, 0x48073e06, 0x48073e06, 0x4a0a3c06, 0x4a0a3c06, 0x4a0a3c06 },
8614779705SSam Leffler    { 0x0000a30c, 0x560b4c0a, 0x560b4c0a, 0x621a540b, 0x621a540b, 0x621a540b },
8714779705SSam Leffler    { 0x0000a310, 0x641a600f, 0x641a600f, 0x764f6c1b, 0x764f6c1b, 0x764f6c1b },
8814779705SSam Leffler    { 0x0000a314, 0x7a4f6e1b, 0x7a4f6e1b, 0x845b7a5a, 0x845b7a5a, 0x845b7a5a },
8914779705SSam Leffler    { 0x0000a318, 0x8c5b7e5a, 0x8c5b7e5a, 0x950f8ccf, 0x950f8ccf, 0x950f8ccf },
9014779705SSam Leffler    { 0x0000a31c, 0x9d0f96cf, 0x9d0f96cf, 0xa5cf9b4f, 0xa5cf9b4f, 0xa5cf9b4f },
9114779705SSam Leffler    { 0x0000a320, 0xb51fa69f, 0xb51fa69f, 0xbddfaf1f, 0xbddfaf1f, 0xbddfaf1f },
9214779705SSam Leffler    { 0x0000a324, 0xcb3fbd07, 0xcb3fbcbf, 0xd1ffc93f, 0xd1ffc93f, 0xd1ffc93f },
9314779705SSam Leffler    { 0x0000a328, 0x0000d7bf, 0x0000d7bf, 0x00000000, 0x00000000, 0x00000000 },
9414779705SSam Leffler    { 0x0000a32c, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
9514779705SSam Leffler    { 0x0000a330, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
9614779705SSam Leffler    { 0x0000a334, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
9714779705SSam Leffler};
9814779705SSam Leffler
9914779705SSam Lefflerstatic const uint32_t ar5416Common[][2] = {
10014779705SSam Leffler    { 0x0000000c, 0x00000000 },
10114779705SSam Leffler    { 0x00000030, 0x00020015 },
10214779705SSam Leffler    { 0x00000034, 0x00000005 },
10314779705SSam Leffler    { 0x00000040, 0x00000000 },
10414779705SSam Leffler    { 0x00000044, 0x00000008 },
10514779705SSam Leffler    { 0x00000048, 0x00000008 },
10614779705SSam Leffler    { 0x0000004c, 0x00000010 },
10714779705SSam Leffler    { 0x00000050, 0x00000000 },
10814779705SSam Leffler    { 0x00000054, 0x0000001f },
10914779705SSam Leffler    { 0x00000800, 0x00000000 },
11014779705SSam Leffler    { 0x00000804, 0x00000000 },
11114779705SSam Leffler    { 0x00000808, 0x00000000 },
11214779705SSam Leffler    { 0x0000080c, 0x00000000 },
11314779705SSam Leffler    { 0x00000810, 0x00000000 },
11414779705SSam Leffler    { 0x00000814, 0x00000000 },
11514779705SSam Leffler    { 0x00000818, 0x00000000 },
11614779705SSam Leffler    { 0x0000081c, 0x00000000 },
11714779705SSam Leffler    { 0x00000820, 0x00000000 },
11814779705SSam Leffler    { 0x00000824, 0x00000000 },
11914779705SSam Leffler    { 0x00001040, 0x002ffc0f },
12014779705SSam Leffler    { 0x00001044, 0x002ffc0f },
12114779705SSam Leffler    { 0x00001048, 0x002ffc0f },
12214779705SSam Leffler    { 0x0000104c, 0x002ffc0f },
12314779705SSam Leffler    { 0x00001050, 0x002ffc0f },
12414779705SSam Leffler    { 0x00001054, 0x002ffc0f },
12514779705SSam Leffler    { 0x00001058, 0x002ffc0f },
12614779705SSam Leffler    { 0x0000105c, 0x002ffc0f },
12714779705SSam Leffler    { 0x00001060, 0x002ffc0f },
12814779705SSam Leffler    { 0x00001064, 0x002ffc0f },
12914779705SSam Leffler    { 0x00001230, 0x00000000 },
13014779705SSam Leffler    { 0x00001270, 0x00000000 },
13114779705SSam Leffler    { 0x00001038, 0x00000000 },
13214779705SSam Leffler    { 0x00001078, 0x00000000 },
13314779705SSam Leffler    { 0x000010b8, 0x00000000 },
13414779705SSam Leffler    { 0x000010f8, 0x00000000 },
13514779705SSam Leffler    { 0x00001138, 0x00000000 },
13614779705SSam Leffler    { 0x00001178, 0x00000000 },
13714779705SSam Leffler    { 0x000011b8, 0x00000000 },
13814779705SSam Leffler    { 0x000011f8, 0x00000000 },
13914779705SSam Leffler    { 0x00001238, 0x00000000 },
14014779705SSam Leffler    { 0x00001278, 0x00000000 },
14114779705SSam Leffler    { 0x000012b8, 0x00000000 },
14214779705SSam Leffler    { 0x000012f8, 0x00000000 },
14314779705SSam Leffler    { 0x00001338, 0x00000000 },
14414779705SSam Leffler    { 0x00001378, 0x00000000 },
14514779705SSam Leffler    { 0x000013b8, 0x00000000 },
14614779705SSam Leffler    { 0x000013f8, 0x00000000 },
14714779705SSam Leffler    { 0x00001438, 0x00000000 },
14814779705SSam Leffler    { 0x00001478, 0x00000000 },
14914779705SSam Leffler    { 0x000014b8, 0x00000000 },
15014779705SSam Leffler    { 0x000014f8, 0x00000000 },
15114779705SSam Leffler    { 0x00001538, 0x00000000 },
15214779705SSam Leffler    { 0x00001578, 0x00000000 },
15314779705SSam Leffler    { 0x000015b8, 0x00000000 },
15414779705SSam Leffler    { 0x000015f8, 0x00000000 },
15514779705SSam Leffler    { 0x00001638, 0x00000000 },
15614779705SSam Leffler    { 0x00001678, 0x00000000 },
15714779705SSam Leffler    { 0x000016b8, 0x00000000 },
15814779705SSam Leffler    { 0x000016f8, 0x00000000 },
15914779705SSam Leffler    { 0x00001738, 0x00000000 },
16014779705SSam Leffler    { 0x00001778, 0x00000000 },
16114779705SSam Leffler    { 0x000017b8, 0x00000000 },
16214779705SSam Leffler    { 0x000017f8, 0x00000000 },
16314779705SSam Leffler    { 0x0000103c, 0x00000000 },
16414779705SSam Leffler    { 0x0000107c, 0x00000000 },
16514779705SSam Leffler    { 0x000010bc, 0x00000000 },
16614779705SSam Leffler    { 0x000010fc, 0x00000000 },
16714779705SSam Leffler    { 0x0000113c, 0x00000000 },
16814779705SSam Leffler    { 0x0000117c, 0x00000000 },
16914779705SSam Leffler    { 0x000011bc, 0x00000000 },
17014779705SSam Leffler    { 0x000011fc, 0x00000000 },
17114779705SSam Leffler    { 0x0000123c, 0x00000000 },
17214779705SSam Leffler    { 0x0000127c, 0x00000000 },
17314779705SSam Leffler    { 0x000012bc, 0x00000000 },
17414779705SSam Leffler    { 0x000012fc, 0x00000000 },
17514779705SSam Leffler    { 0x0000133c, 0x00000000 },
17614779705SSam Leffler    { 0x0000137c, 0x00000000 },
17714779705SSam Leffler    { 0x000013bc, 0x00000000 },
17814779705SSam Leffler    { 0x000013fc, 0x00000000 },
17914779705SSam Leffler    { 0x0000143c, 0x00000000 },
18014779705SSam Leffler    { 0x0000147c, 0x00000000 },
18114779705SSam Leffler    { 0x00004030, 0x00000002 },
18214779705SSam Leffler    { 0x0000403c, 0x00000002 },
18314779705SSam Leffler#ifdef AR9100
18414779705SSam Leffler    { 0x00020010, 0x00000000 },
18514779705SSam Leffler#else
18614779705SSam Leffler    { 0x00007010, 0x00000000 },
18714779705SSam Leffler#endif
18814779705SSam Leffler    { 0x00007038, 0x000004c2 },
18914779705SSam Leffler    { 0x00008004, 0x00000000 },
19014779705SSam Leffler    { 0x00008008, 0x00000000 },
19114779705SSam Leffler    { 0x0000800c, 0x00000000 },
19214779705SSam Leffler    { 0x00008018, 0x00000700 },
19314779705SSam Leffler    { 0x00008020, 0x00000000 },
19414779705SSam Leffler    { 0x00008038, 0x00000000 },
19514779705SSam Leffler    { 0x0000803c, 0x00000000 },
19614779705SSam Leffler    { 0x00008048, 0x40000000 },
19714779705SSam Leffler    { 0x00008054, 0x00000000 },
19814779705SSam Leffler    { 0x00008058, 0x00000000 },
19914779705SSam Leffler    { 0x0000805c, 0x000fc78f },
20014779705SSam Leffler    { 0x00008060, 0x0000000f },
20114779705SSam Leffler    { 0x00008064, 0x00000000 },
20214779705SSam Leffler    { 0x000080c0, 0x2a82301a },
20314779705SSam Leffler    { 0x000080c4, 0x05dc01e0 },
20414779705SSam Leffler    { 0x000080c8, 0x1f402710 },
20514779705SSam Leffler    { 0x000080cc, 0x01f40000 },
20614779705SSam Leffler    { 0x000080d0, 0x00001e00 },
20714779705SSam Leffler    { 0x000080d4, 0x00000000 },
20814779705SSam Leffler    { 0x000080d8, 0x00400000 },
20914779705SSam Leffler    { 0x000080e0, 0xffffffff },
21014779705SSam Leffler    { 0x000080e4, 0x0000ffff },
21114779705SSam Leffler    { 0x000080e8, 0x003f3f3f },
21214779705SSam Leffler    { 0x000080ec, 0x00000000 },
21314779705SSam Leffler    { 0x000080f0, 0x00000000 },
21414779705SSam Leffler    { 0x000080f4, 0x00000000 },
21514779705SSam Leffler    { 0x000080f8, 0x00000000 },
21614779705SSam Leffler    { 0x000080fc, 0x00020000 },
21714779705SSam Leffler    { 0x00008100, 0x00020000 },
21814779705SSam Leffler    { 0x00008104, 0x00000001 },
21914779705SSam Leffler    { 0x00008108, 0x00000052 },
22014779705SSam Leffler    { 0x0000810c, 0x00000000 },
22114779705SSam Leffler    { 0x00008110, 0x00000168 },
22214779705SSam Leffler    { 0x00008118, 0x000100aa },
22314779705SSam Leffler    { 0x0000811c, 0x00003210 },
22414779705SSam Leffler    { 0x00008124, 0x00000000 },
22514779705SSam Leffler    { 0x00008128, 0x00000000 },
22614779705SSam Leffler    { 0x0000812c, 0x00000000 },
22714779705SSam Leffler    { 0x00008130, 0x00000000 },
22814779705SSam Leffler    { 0x00008134, 0x00000000 },
22914779705SSam Leffler    { 0x00008138, 0x00000000 },
23014779705SSam Leffler    { 0x0000813c, 0x00000000 },
2318b9cd503SAdrian Chadd    { 0x00008144, 0xffffffff },
23214779705SSam Leffler    { 0x00008168, 0x00000000 },
23314779705SSam Leffler    { 0x0000816c, 0x00000000 },
23414779705SSam Leffler    { 0x00008170, 0x32143320 },
23514779705SSam Leffler    { 0x00008174, 0xfaa4fa50 },
23614779705SSam Leffler    { 0x00008178, 0x00000100 },
23714779705SSam Leffler    { 0x0000817c, 0x00000000 },
23814779705SSam Leffler    { 0x000081c4, 0x00000000 },
23914779705SSam Leffler    { 0x000081ec, 0x00000000 },
24014779705SSam Leffler    { 0x000081f0, 0x00000000 },
24114779705SSam Leffler    { 0x000081f4, 0x00000000 },
24214779705SSam Leffler    { 0x000081f8, 0x00000000 },
24314779705SSam Leffler    { 0x000081fc, 0x00000000 },
24414779705SSam Leffler    { 0x00008200, 0x00000000 },
24514779705SSam Leffler    { 0x00008204, 0x00000000 },
24614779705SSam Leffler    { 0x00008208, 0x00000000 },
24714779705SSam Leffler    { 0x0000820c, 0x00000000 },
24814779705SSam Leffler    { 0x00008210, 0x00000000 },
24914779705SSam Leffler    { 0x00008214, 0x00000000 },
25014779705SSam Leffler    { 0x00008218, 0x00000000 },
25114779705SSam Leffler    { 0x0000821c, 0x00000000 },
25214779705SSam Leffler    { 0x00008220, 0x00000000 },
25314779705SSam Leffler    { 0x00008224, 0x00000000 },
25414779705SSam Leffler    { 0x00008228, 0x00000000 },
25514779705SSam Leffler    { 0x0000822c, 0x00000000 },
25614779705SSam Leffler    { 0x00008230, 0x00000000 },
25714779705SSam Leffler    { 0x00008234, 0x00000000 },
25814779705SSam Leffler    { 0x00008238, 0x00000000 },
25914779705SSam Leffler    { 0x0000823c, 0x00000000 },
26014779705SSam Leffler    { 0x00008240, 0x00100000 },
26114779705SSam Leffler    { 0x00008244, 0x0010f400 },
26214779705SSam Leffler    { 0x00008248, 0x00000100 },
26314779705SSam Leffler    { 0x0000824c, 0x0001e800 },
26414779705SSam Leffler    { 0x00008250, 0x00000000 },
26514779705SSam Leffler    { 0x00008254, 0x00000000 },
26614779705SSam Leffler    { 0x00008258, 0x00000000 },
26714779705SSam Leffler    { 0x0000825c, 0x400000ff },
26814779705SSam Leffler    { 0x00008260, 0x00080922 },
2698b9cd503SAdrian Chadd    { 0x00008264, 0xa8000010 },
27014779705SSam Leffler    { 0x00008270, 0x00000000 },
27114779705SSam Leffler    { 0x00008274, 0x40000000 },
27214779705SSam Leffler    { 0x00008278, 0x003e4180 },
27314779705SSam Leffler    { 0x0000827c, 0x00000000 },
27414779705SSam Leffler    { 0x00008284, 0x0000002c },
27514779705SSam Leffler    { 0x00008288, 0x0000002c },
27614779705SSam Leffler    { 0x0000828c, 0x00000000 },
27714779705SSam Leffler    { 0x00008294, 0x00000000 },
27814779705SSam Leffler    { 0x00008298, 0x00000000 },
27914779705SSam Leffler    { 0x00008300, 0x00000000 },
28014779705SSam Leffler    { 0x00008304, 0x00000000 },
28114779705SSam Leffler    { 0x00008308, 0x00000000 },
28214779705SSam Leffler    { 0x0000830c, 0x00000000 },
28314779705SSam Leffler    { 0x00008310, 0x00000000 },
28414779705SSam Leffler    { 0x00008314, 0x00000000 },
28514779705SSam Leffler    { 0x00008318, 0x00000000 },
28614779705SSam Leffler    { 0x00008328, 0x00000000 },
28714779705SSam Leffler    { 0x0000832c, 0x00000007 },
28814779705SSam Leffler    { 0x00008330, 0x00000302 },
28914779705SSam Leffler    { 0x00008334, 0x00000e00 },
2908b9cd503SAdrian Chadd    { 0x00008338, 0x00070000 },
29114779705SSam Leffler    { 0x0000833c, 0x00000000 },
29214779705SSam Leffler    { 0x00008340, 0x000107ff },
29314779705SSam Leffler    { 0x00009808, 0x00000000 },
29414779705SSam Leffler    { 0x0000980c, 0xad848e19 },
29514779705SSam Leffler    { 0x00009810, 0x7d14e000 },
29614779705SSam Leffler    { 0x00009814, 0x9c0a9f6b },
29714779705SSam Leffler    { 0x0000981c, 0x00000000 },
29814779705SSam Leffler    { 0x0000982c, 0x0000a000 },
29914779705SSam Leffler    { 0x00009830, 0x00000000 },
30014779705SSam Leffler    { 0x0000983c, 0x00200400 },
3018b9cd503SAdrian Chadd    { 0x00009840, 0x206a002e },
30214779705SSam Leffler    { 0x0000984c, 0x1284233c },
30314779705SSam Leffler    { 0x00009854, 0x00000859 },
30414779705SSam Leffler    { 0x00009900, 0x00000000 },
30514779705SSam Leffler    { 0x00009904, 0x00000000 },
30614779705SSam Leffler    { 0x00009908, 0x00000000 },
30714779705SSam Leffler    { 0x0000990c, 0x00000000 },
30814779705SSam Leffler    { 0x0000991c, 0x10000fff },
30914779705SSam Leffler    { 0x00009920, 0x05100000 },
31014779705SSam Leffler    { 0x0000a920, 0x05100000 },
31114779705SSam Leffler    { 0x0000b920, 0x05100000 },
31214779705SSam Leffler    { 0x00009928, 0x00000001 },
31314779705SSam Leffler    { 0x0000992c, 0x00000004 },
31414779705SSam Leffler    { 0x00009934, 0x1e1f2022 },
31514779705SSam Leffler    { 0x00009938, 0x0a0b0c0d },
31614779705SSam Leffler    { 0x0000993c, 0x00000000 },
31714779705SSam Leffler    { 0x00009948, 0x9280b212 },
31814779705SSam Leffler    { 0x0000994c, 0x00020028 },
31914779705SSam Leffler    { 0x00009954, 0x5d50e188 },
32014779705SSam Leffler    { 0x00009958, 0x00081fff },
32114779705SSam Leffler    { 0x0000c95c, 0x004b6a8e },
32214779705SSam Leffler    { 0x0000c968, 0x000003ce },
3238b9cd503SAdrian Chadd    { 0x00009970, 0x190fb515 },
32414779705SSam Leffler    { 0x00009974, 0x00000000 },
32514779705SSam Leffler    { 0x00009978, 0x00000001 },
32614779705SSam Leffler    { 0x0000997c, 0x00000000 },
32714779705SSam Leffler    { 0x00009980, 0x00000000 },
32814779705SSam Leffler    { 0x00009984, 0x00000000 },
32914779705SSam Leffler    { 0x00009988, 0x00000000 },
33014779705SSam Leffler    { 0x0000998c, 0x00000000 },
33114779705SSam Leffler    { 0x00009990, 0x00000000 },
33214779705SSam Leffler    { 0x00009994, 0x00000000 },
33314779705SSam Leffler    { 0x00009998, 0x00000000 },
33414779705SSam Leffler    { 0x0000999c, 0x00000000 },
33514779705SSam Leffler    { 0x000099a0, 0x00000000 },
33614779705SSam Leffler    { 0x000099a4, 0x00000001 },
33714779705SSam Leffler    { 0x000099a8, 0x001fff00 },
3388b9cd503SAdrian Chadd    { 0x000099ac, 0x00000000 },
33914779705SSam Leffler    { 0x000099b0, 0x03051000 },
34014779705SSam Leffler    { 0x000099dc, 0x00000000 },
34114779705SSam Leffler    { 0x000099e0, 0x00000200 },
34214779705SSam Leffler    { 0x000099e4, 0xaaaaaaaa },
34314779705SSam Leffler    { 0x000099e8, 0x3c466478 },
34414779705SSam Leffler    { 0x000099ec, 0x000000aa },
34514779705SSam Leffler    { 0x000099fc, 0x00001042 },
34614779705SSam Leffler    { 0x00009b00, 0x00000000 },
34714779705SSam Leffler    { 0x00009b04, 0x00000001 },
34814779705SSam Leffler    { 0x00009b08, 0x00000002 },
34914779705SSam Leffler    { 0x00009b0c, 0x00000003 },
35014779705SSam Leffler    { 0x00009b10, 0x00000004 },
35114779705SSam Leffler    { 0x00009b14, 0x00000005 },
35214779705SSam Leffler    { 0x00009b18, 0x00000008 },
35314779705SSam Leffler    { 0x00009b1c, 0x00000009 },
35414779705SSam Leffler    { 0x00009b20, 0x0000000a },
35514779705SSam Leffler    { 0x00009b24, 0x0000000b },
35614779705SSam Leffler    { 0x00009b28, 0x0000000c },
35714779705SSam Leffler    { 0x00009b2c, 0x0000000d },
35814779705SSam Leffler    { 0x00009b30, 0x00000010 },
35914779705SSam Leffler    { 0x00009b34, 0x00000011 },
36014779705SSam Leffler    { 0x00009b38, 0x00000012 },
36114779705SSam Leffler    { 0x00009b3c, 0x00000013 },
36214779705SSam Leffler    { 0x00009b40, 0x00000014 },
36314779705SSam Leffler    { 0x00009b44, 0x00000015 },
36414779705SSam Leffler    { 0x00009b48, 0x00000018 },
36514779705SSam Leffler    { 0x00009b4c, 0x00000019 },
36614779705SSam Leffler    { 0x00009b50, 0x0000001a },
36714779705SSam Leffler    { 0x00009b54, 0x0000001b },
36814779705SSam Leffler    { 0x00009b58, 0x0000001c },
36914779705SSam Leffler    { 0x00009b5c, 0x0000001d },
37014779705SSam Leffler    { 0x00009b60, 0x00000020 },
37114779705SSam Leffler    { 0x00009b64, 0x00000021 },
37214779705SSam Leffler    { 0x00009b68, 0x00000022 },
37314779705SSam Leffler    { 0x00009b6c, 0x00000023 },
37414779705SSam Leffler    { 0x00009b70, 0x00000024 },
37514779705SSam Leffler    { 0x00009b74, 0x00000025 },
37614779705SSam Leffler    { 0x00009b78, 0x00000028 },
37714779705SSam Leffler    { 0x00009b7c, 0x00000029 },
37814779705SSam Leffler    { 0x00009b80, 0x0000002a },
37914779705SSam Leffler    { 0x00009b84, 0x0000002b },
38014779705SSam Leffler    { 0x00009b88, 0x0000002c },
38114779705SSam Leffler    { 0x00009b8c, 0x0000002d },
38214779705SSam Leffler    { 0x00009b90, 0x00000030 },
38314779705SSam Leffler    { 0x00009b94, 0x00000031 },
38414779705SSam Leffler    { 0x00009b98, 0x00000032 },
38514779705SSam Leffler    { 0x00009b9c, 0x00000033 },
38614779705SSam Leffler    { 0x00009ba0, 0x00000034 },
38714779705SSam Leffler    { 0x00009ba4, 0x00000035 },
38814779705SSam Leffler    { 0x00009ba8, 0x00000035 },
38914779705SSam Leffler    { 0x00009bac, 0x00000035 },
39014779705SSam Leffler    { 0x00009bb0, 0x00000035 },
39114779705SSam Leffler    { 0x00009bb4, 0x00000035 },
39214779705SSam Leffler    { 0x00009bb8, 0x00000035 },
39314779705SSam Leffler    { 0x00009bbc, 0x00000035 },
39414779705SSam Leffler    { 0x00009bc0, 0x00000035 },
39514779705SSam Leffler    { 0x00009bc4, 0x00000035 },
39614779705SSam Leffler    { 0x00009bc8, 0x00000035 },
39714779705SSam Leffler    { 0x00009bcc, 0x00000035 },
39814779705SSam Leffler    { 0x00009bd0, 0x00000035 },
39914779705SSam Leffler    { 0x00009bd4, 0x00000035 },
40014779705SSam Leffler    { 0x00009bd8, 0x00000035 },
40114779705SSam Leffler    { 0x00009bdc, 0x00000035 },
40214779705SSam Leffler    { 0x00009be0, 0x00000035 },
40314779705SSam Leffler    { 0x00009be4, 0x00000035 },
40414779705SSam Leffler    { 0x00009be8, 0x00000035 },
40514779705SSam Leffler    { 0x00009bec, 0x00000035 },
40614779705SSam Leffler    { 0x00009bf0, 0x00000035 },
40714779705SSam Leffler    { 0x00009bf4, 0x00000035 },
40814779705SSam Leffler    { 0x00009bf8, 0x00000010 },
40914779705SSam Leffler    { 0x00009bfc, 0x0000001a },
41014779705SSam Leffler    { 0x0000a210, 0x40806333 },
41114779705SSam Leffler    { 0x0000a214, 0x00106c10 },
41214779705SSam Leffler    { 0x0000a218, 0x009c4060 },
41314779705SSam Leffler    { 0x0000a220, 0x018830c6 },
41414779705SSam Leffler    { 0x0000a224, 0x00000400 },
41514779705SSam Leffler    { 0x0000a228, 0x00000bb5 },
41614779705SSam Leffler    { 0x0000a22c, 0x00000011 },
41714779705SSam Leffler    { 0x0000a234, 0x20202020 },
41814779705SSam Leffler    { 0x0000a238, 0x20202020 },
41914779705SSam Leffler    { 0x0000a23c, 0x13c889af },
42014779705SSam Leffler    { 0x0000a240, 0x38490a20 },
42114779705SSam Leffler    { 0x0000a244, 0x00007bb6 },
42214779705SSam Leffler    { 0x0000a248, 0x0fff3ffc },
42314779705SSam Leffler    { 0x0000a24c, 0x00000001 },
42414779705SSam Leffler    { 0x0000a250, 0x0000a000 },
42514779705SSam Leffler    { 0x0000a254, 0x00000000 },
42614779705SSam Leffler    { 0x0000a258, 0x0cc75380 },
42714779705SSam Leffler    { 0x0000a25c, 0x0f0f0f01 },
42814779705SSam Leffler    { 0x0000a260, 0xdfa91f01 },
42914779705SSam Leffler    { 0x0000a268, 0x00000000 },
4308b9cd503SAdrian Chadd    { 0x0000a26c, 0x0e79e5c6 },
4318b9cd503SAdrian Chadd    { 0x0000b26c, 0x0e79e5c6 },
4328b9cd503SAdrian Chadd    { 0x0000c26c, 0x0e79e5c6 },
43314779705SSam Leffler    { 0x0000d270, 0x00820820 },
43414779705SSam Leffler    { 0x0000a278, 0x1ce739ce },
43514779705SSam Leffler    { 0x0000a27c, 0x051701ce },
43614779705SSam Leffler    { 0x0000a338, 0x00000000 },
43714779705SSam Leffler    { 0x0000a33c, 0x00000000 },
43814779705SSam Leffler    { 0x0000a340, 0x00000000 },
43914779705SSam Leffler    { 0x0000a344, 0x00000000 },
44014779705SSam Leffler    { 0x0000a348, 0x3fffffff },
44114779705SSam Leffler    { 0x0000a34c, 0x3fffffff },
44214779705SSam Leffler    { 0x0000a350, 0x3fffffff },
44314779705SSam Leffler    { 0x0000a354, 0x0003ffff },
44414779705SSam Leffler    { 0x0000a358, 0x79a8aa1f },
4458b9cd503SAdrian Chadd    { 0x0000d35c, 0x07ffffef },
4468b9cd503SAdrian Chadd    { 0x0000d360, 0x0fffffe7 },
4478b9cd503SAdrian Chadd    { 0x0000d364, 0x17ffffe5 },
4488b9cd503SAdrian Chadd    { 0x0000d368, 0x1fffffe4 },
4498b9cd503SAdrian Chadd    { 0x0000d36c, 0x37ffffe3 },
4508b9cd503SAdrian Chadd    { 0x0000d370, 0x3fffffe3 },
4518b9cd503SAdrian Chadd    { 0x0000d374, 0x57ffffe3 },
4528b9cd503SAdrian Chadd    { 0x0000d378, 0x5fffffe2 },
4538b9cd503SAdrian Chadd    { 0x0000d37c, 0x7fffffe2 },
45414779705SSam Leffler    { 0x0000d380, 0x7f3c7bba },
45514779705SSam Leffler    { 0x0000d384, 0xf3307ff0 },
45614779705SSam Leffler    { 0x0000a388, 0x08000000 },
45714779705SSam Leffler    { 0x0000a38c, 0x20202020 },
45814779705SSam Leffler    { 0x0000a390, 0x20202020 },
45914779705SSam Leffler    { 0x0000a394, 0x1ce739ce },
46014779705SSam Leffler    { 0x0000a398, 0x000001ce },
46114779705SSam Leffler    { 0x0000a39c, 0x00000001 },
46214779705SSam Leffler    { 0x0000a3a0, 0x00000000 },
46314779705SSam Leffler    { 0x0000a3a4, 0x00000000 },
46414779705SSam Leffler    { 0x0000a3a8, 0x00000000 },
46514779705SSam Leffler    { 0x0000a3ac, 0x00000000 },
46614779705SSam Leffler    { 0x0000a3b0, 0x00000000 },
46714779705SSam Leffler    { 0x0000a3b4, 0x00000000 },
46814779705SSam Leffler    { 0x0000a3b8, 0x00000000 },
46914779705SSam Leffler    { 0x0000a3bc, 0x00000000 },
47014779705SSam Leffler    { 0x0000a3c0, 0x00000000 },
47114779705SSam Leffler    { 0x0000a3c4, 0x00000000 },
47214779705SSam Leffler    { 0x0000a3c8, 0x00000246 },
47314779705SSam Leffler    { 0x0000a3cc, 0x20202020 },
47414779705SSam Leffler    { 0x0000a3d0, 0x20202020 },
47514779705SSam Leffler    { 0x0000a3d4, 0x20202020 },
47614779705SSam Leffler    { 0x0000a3dc, 0x1ce739ce },
47714779705SSam Leffler    { 0x0000a3e0, 0x000001ce },
47814779705SSam Leffler};
47914779705SSam Leffler
48014779705SSam Lefflerstatic const uint32_t ar5416Bank0[][2] = {
48114779705SSam Leffler    { 0x000098b0, 0x1e5795e5 },
48214779705SSam Leffler    { 0x000098e0, 0x02008020 },
48314779705SSam Leffler};
48414779705SSam Leffler
48514779705SSam Lefflerstatic const uint32_t ar5416BB_RfGain[][3] = {
48614779705SSam Leffler    { 0x00009a00, 0x00000000, 0x00000000 },
48714779705SSam Leffler    { 0x00009a04, 0x00000040, 0x00000040 },
48814779705SSam Leffler    { 0x00009a08, 0x00000080, 0x00000080 },
48914779705SSam Leffler    { 0x00009a0c, 0x000001a1, 0x00000141 },
49014779705SSam Leffler    { 0x00009a10, 0x000001e1, 0x00000181 },
49114779705SSam Leffler    { 0x00009a14, 0x00000021, 0x000001c1 },
49214779705SSam Leffler    { 0x00009a18, 0x00000061, 0x00000001 },
49314779705SSam Leffler    { 0x00009a1c, 0x00000168, 0x00000041 },
49414779705SSam Leffler    { 0x00009a20, 0x000001a8, 0x000001a8 },
49514779705SSam Leffler    { 0x00009a24, 0x000001e8, 0x000001e8 },
49614779705SSam Leffler    { 0x00009a28, 0x00000028, 0x00000028 },
49714779705SSam Leffler    { 0x00009a2c, 0x00000068, 0x00000068 },
49814779705SSam Leffler    { 0x00009a30, 0x00000189, 0x000000a8 },
49914779705SSam Leffler    { 0x00009a34, 0x000001c9, 0x00000169 },
50014779705SSam Leffler    { 0x00009a38, 0x00000009, 0x000001a9 },
50114779705SSam Leffler    { 0x00009a3c, 0x00000049, 0x000001e9 },
50214779705SSam Leffler    { 0x00009a40, 0x00000089, 0x00000029 },
50314779705SSam Leffler    { 0x00009a44, 0x00000170, 0x00000069 },
50414779705SSam Leffler    { 0x00009a48, 0x000001b0, 0x00000190 },
50514779705SSam Leffler    { 0x00009a4c, 0x000001f0, 0x000001d0 },
50614779705SSam Leffler    { 0x00009a50, 0x00000030, 0x00000010 },
50714779705SSam Leffler    { 0x00009a54, 0x00000070, 0x00000050 },
50814779705SSam Leffler    { 0x00009a58, 0x00000191, 0x00000090 },
50914779705SSam Leffler    { 0x00009a5c, 0x000001d1, 0x00000151 },
51014779705SSam Leffler    { 0x00009a60, 0x00000011, 0x00000191 },
51114779705SSam Leffler    { 0x00009a64, 0x00000051, 0x000001d1 },
51214779705SSam Leffler    { 0x00009a68, 0x00000091, 0x00000011 },
51314779705SSam Leffler    { 0x00009a6c, 0x000001b8, 0x00000051 },
51414779705SSam Leffler    { 0x00009a70, 0x000001f8, 0x00000198 },
51514779705SSam Leffler    { 0x00009a74, 0x00000038, 0x000001d8 },
51614779705SSam Leffler    { 0x00009a78, 0x00000078, 0x00000018 },
51714779705SSam Leffler    { 0x00009a7c, 0x00000199, 0x00000058 },
51814779705SSam Leffler    { 0x00009a80, 0x000001d9, 0x00000098 },
51914779705SSam Leffler    { 0x00009a84, 0x00000019, 0x00000159 },
52014779705SSam Leffler    { 0x00009a88, 0x00000059, 0x00000199 },
52114779705SSam Leffler    { 0x00009a8c, 0x00000099, 0x000001d9 },
52214779705SSam Leffler    { 0x00009a90, 0x000000d9, 0x00000019 },
52314779705SSam Leffler    { 0x00009a94, 0x000000f9, 0x00000059 },
52414779705SSam Leffler    { 0x00009a98, 0x000000f9, 0x00000099 },
52514779705SSam Leffler    { 0x00009a9c, 0x000000f9, 0x000000d9 },
52614779705SSam Leffler    { 0x00009aa0, 0x000000f9, 0x000000f9 },
52714779705SSam Leffler    { 0x00009aa4, 0x000000f9, 0x000000f9 },
52814779705SSam Leffler    { 0x00009aa8, 0x000000f9, 0x000000f9 },
52914779705SSam Leffler    { 0x00009aac, 0x000000f9, 0x000000f9 },
53014779705SSam Leffler    { 0x00009ab0, 0x000000f9, 0x000000f9 },
53114779705SSam Leffler    { 0x00009ab4, 0x000000f9, 0x000000f9 },
53214779705SSam Leffler    { 0x00009ab8, 0x000000f9, 0x000000f9 },
53314779705SSam Leffler    { 0x00009abc, 0x000000f9, 0x000000f9 },
53414779705SSam Leffler    { 0x00009ac0, 0x000000f9, 0x000000f9 },
53514779705SSam Leffler    { 0x00009ac4, 0x000000f9, 0x000000f9 },
53614779705SSam Leffler    { 0x00009ac8, 0x000000f9, 0x000000f9 },
53714779705SSam Leffler    { 0x00009acc, 0x000000f9, 0x000000f9 },
53814779705SSam Leffler    { 0x00009ad0, 0x000000f9, 0x000000f9 },
53914779705SSam Leffler    { 0x00009ad4, 0x000000f9, 0x000000f9 },
54014779705SSam Leffler    { 0x00009ad8, 0x000000f9, 0x000000f9 },
54114779705SSam Leffler    { 0x00009adc, 0x000000f9, 0x000000f9 },
54214779705SSam Leffler    { 0x00009ae0, 0x000000f9, 0x000000f9 },
54314779705SSam Leffler    { 0x00009ae4, 0x000000f9, 0x000000f9 },
54414779705SSam Leffler    { 0x00009ae8, 0x000000f9, 0x000000f9 },
54514779705SSam Leffler    { 0x00009aec, 0x000000f9, 0x000000f9 },
54614779705SSam Leffler    { 0x00009af0, 0x000000f9, 0x000000f9 },
54714779705SSam Leffler    { 0x00009af4, 0x000000f9, 0x000000f9 },
54814779705SSam Leffler    { 0x00009af8, 0x000000f9, 0x000000f9 },
54914779705SSam Leffler    { 0x00009afc, 0x000000f9, 0x000000f9 },
55014779705SSam Leffler};
55114779705SSam Leffler
55214779705SSam Lefflerstatic const uint32_t ar5416Bank1[][2] = {
55314779705SSam Leffler    { 0x000098b0, 0x02108421 },
55414779705SSam Leffler    { 0x000098ec, 0x00000008 },
55514779705SSam Leffler};
55614779705SSam Leffler
55714779705SSam Lefflerstatic const uint32_t ar5416Bank2[][2] = {
55814779705SSam Leffler    { 0x000098b0, 0x0e73ff17 },
55914779705SSam Leffler    { 0x000098e0, 0x00000420 },
56014779705SSam Leffler};
56114779705SSam Leffler
56214779705SSam Lefflerstatic const uint32_t ar5416Bank3[][3] = {
56314779705SSam Leffler    { 0x000098f0, 0x01400018, 0x01c00018 },
56414779705SSam Leffler};
56514779705SSam Leffler
56614779705SSam Leffler#ifdef USE_NONTPC_BANK
56714779705SSam Lefflerstatic const uint32_t ar5416Bank6[][3] = {
56814779705SSam Leffler/*    Reg      A            G            */
56914779705SSam Leffler    { 0x0000989c, 0x00000000, 0x00000000 },
57014779705SSam Leffler    { 0x0000989c, 0x00000000, 0x00000000 },
57114779705SSam Leffler    { 0x0000989c, 0x00000000, 0x00000000 },
57214779705SSam Leffler    { 0x0000989c, 0x00e00000, 0x00e00000 },
57314779705SSam Leffler    { 0x0000989c, 0x005e0000, 0x005e0000 },
57414779705SSam Leffler    { 0x0000989c, 0x00120000, 0x00120000 },
57514779705SSam Leffler    { 0x0000989c, 0x00620000, 0x00620000 },
57614779705SSam Leffler    { 0x0000989c, 0x00020000, 0x00020000 },
57714779705SSam Leffler    { 0x0000989c, 0x00ff0000, 0x00ff0000 },
57814779705SSam Leffler    { 0x0000989c, 0x00ff0000, 0x00ff0000 },
57914779705SSam Leffler    { 0x0000989c, 0x00ff0000, 0x00ff0000 },
58014779705SSam Leffler    { 0x0000989c, 0x40ff0000, 0x40ff0000 },
58114779705SSam Leffler    { 0x0000989c, 0x005f0000, 0x005f0000 },
58214779705SSam Leffler    { 0x0000989c, 0x00870000, 0x00870000 },
58314779705SSam Leffler    { 0x0000989c, 0x00f90000, 0x00f90000 },
58414779705SSam Leffler    { 0x0000989c, 0x007b0000, 0x007b0000 },
58514779705SSam Leffler    { 0x0000989c, 0x00ff0000, 0x00ff0000 },
58614779705SSam Leffler    { 0x0000989c, 0x00f50000, 0x00f50000 },
58714779705SSam Leffler    { 0x0000989c, 0x00dc0000, 0x00dc0000 },
58814779705SSam Leffler    { 0x0000989c, 0x00110000, 0x00110000 },
58914779705SSam Leffler    { 0x0000989c, 0x006100a8, 0x006100a8 },
59014779705SSam Leffler    { 0x0000989c, 0x004210a2, 0x004210a2 },
59114779705SSam Leffler    { 0x0000989c, 0x0014008f, 0x0014008f },
59214779705SSam Leffler    { 0x0000989c, 0x00c40003, 0x00c40003 },
59314779705SSam Leffler    { 0x0000989c, 0x003000f2, 0x003000f2 },
59414779705SSam Leffler    { 0x0000989c, 0x00440016, 0x00440016 },
59514779705SSam Leffler    { 0x0000989c, 0x00410040, 0x00410040 },
59614779705SSam Leffler    { 0x0000989c, 0x0001805e, 0x0001805e },
59714779705SSam Leffler    { 0x0000989c, 0x0000c0ab, 0x0000c0ab },
59814779705SSam Leffler    { 0x0000989c, 0x000000f1, 0x000000f1 },
59914779705SSam Leffler    { 0x0000989c, 0x00002081, 0x00002081 },
60014779705SSam Leffler    { 0x0000989c, 0x000000d4, 0x000000d4 },
60114779705SSam Leffler    { 0x000098d0, 0x0000000f, 0x0010000f },
60214779705SSam Leffler};
60314779705SSam Leffler
60414779705SSam Leffler#else
60514779705SSam Leffler/* TPC bank */
60614779705SSam Lefflerstatic const uint32_t ar5416Bank6[][3] = {
60714779705SSam Leffler/*    Reg      A            G            */
60814779705SSam Leffler    { 0x0000989c, 0x00000000, 0x00000000 },
60914779705SSam Leffler    { 0x0000989c, 0x00000000, 0x00000000 },
61014779705SSam Leffler    { 0x0000989c, 0x00000000, 0x00000000 },
61114779705SSam Leffler    { 0x0000989c, 0x00e00000, 0x00e00000 },
61214779705SSam Leffler    { 0x0000989c, 0x005e0000, 0x005e0000 },
61314779705SSam Leffler    { 0x0000989c, 0x00120000, 0x00120000 },
61414779705SSam Leffler    { 0x0000989c, 0x00620000, 0x00620000 },
61514779705SSam Leffler    { 0x0000989c, 0x00020000, 0x00020000 },
61614779705SSam Leffler    { 0x0000989c, 0x00ff0000, 0x00ff0000 },
61714779705SSam Leffler    { 0x0000989c, 0x00ff0000, 0x00ff0000 },
61814779705SSam Leffler    { 0x0000989c, 0x00ff0000, 0x00ff0000 },
61914779705SSam Leffler    { 0x0000989c, 0x40ff0000, 0x40ff0000 },
62014779705SSam Leffler    { 0x0000989c, 0x005f0000, 0x005f0000 },
62114779705SSam Leffler    { 0x0000989c, 0x00870000, 0x00870000 },
62214779705SSam Leffler    { 0x0000989c, 0x00f90000, 0x00f90000 },
62314779705SSam Leffler    { 0x0000989c, 0x007b0000, 0x007b0000 },
62414779705SSam Leffler    { 0x0000989c, 0x00ff0000, 0x00ff0000 },
62514779705SSam Leffler    { 0x0000989c, 0x00f50000, 0x00f50000 },
62614779705SSam Leffler    { 0x0000989c, 0x00dc0000, 0x00dc0000 },
62714779705SSam Leffler    { 0x0000989c, 0x00110000, 0x00110000 },
62814779705SSam Leffler    { 0x0000989c, 0x006100a8, 0x006100a8 },
6298b9cd503SAdrian Chadd    { 0x0000989c, 0x00423022, 0x00423022 },
6308b9cd503SAdrian Chadd    { 0x0000989c, 0x201400df, 0x201400df },
63114779705SSam Leffler    { 0x0000989c, 0x00c40002, 0x00c40002 },
63214779705SSam Leffler    { 0x0000989c, 0x003000f2, 0x003000f2 },
63314779705SSam Leffler    { 0x0000989c, 0x00440016, 0x00440016 },
63414779705SSam Leffler    { 0x0000989c, 0x00410040, 0x00410040 },
63514779705SSam Leffler    { 0x0000989c, 0x0001805e, 0x0001805e },
63614779705SSam Leffler    { 0x0000989c, 0x0000c0ab, 0x0000c0ab },
63714779705SSam Leffler    { 0x0000989c, 0x000000e1, 0x000000e1 },
6388b9cd503SAdrian Chadd    { 0x0000989c, 0x00007081, 0x00007081 },
63914779705SSam Leffler    { 0x0000989c, 0x000000d4, 0x000000d4 },
64014779705SSam Leffler    { 0x000098d0, 0x0000000f, 0x0010000f },
64114779705SSam Leffler};
64214779705SSam Leffler
64314779705SSam Leffler#endif
64414779705SSam Leffler
64514779705SSam Lefflerstatic const uint32_t ar5416Bank7[][2] = {
64614779705SSam Leffler    { 0x0000989c, 0x00000500 },
64714779705SSam Leffler    { 0x0000989c, 0x00000800 },
64814779705SSam Leffler    { 0x000098cc, 0x0000000e },
64914779705SSam Leffler};
65014779705SSam Leffler
65114779705SSam Lefflerstatic const uint32_t ar5416Addac[][2] = {
652329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
653329e425aSAdrian Chadd    {0x0000989c,  0x00000003 },
654329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
655329e425aSAdrian Chadd    {0x0000989c,  0x0000000c },
656329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
657329e425aSAdrian Chadd    {0x0000989c,  0x00000030 },
658329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
659329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
660329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
661329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
662329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
663329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
664329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
665329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
666329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
667329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
668329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
669329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
670329e425aSAdrian Chadd    {0x0000989c,  0x00000060 },
671329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
672329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
673329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
674329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
675329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
676329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
677329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
678329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
679329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
680329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
681329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
682329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
683329e425aSAdrian Chadd    {0x0000989c,  0x00000058 },
684329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
685329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
686329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
687329e425aSAdrian Chadd    {0x0000989c,  0x00000000 },
688*d497ffcaSAdrian Chadd    {0x000098c4,  0x00000000 },
68914779705SSam Leffler};
69044834ea4SSam Leffler
69144834ea4SSam Leffler/* hand-crafted from code that does explicit register writes */
69244834ea4SSam Lefflerstatic const uint32_t ar5416PciePhy[][2] = {
69344834ea4SSam Leffler    { AR_PCIE_SERDES,  0x9248fc00 },
69444834ea4SSam Leffler    { AR_PCIE_SERDES,  0x24924924 },
69544834ea4SSam Leffler    { AR_PCIE_SERDES,  0x28000039 },
69644834ea4SSam Leffler    { AR_PCIE_SERDES,  0x53160824 },
69744834ea4SSam Leffler    { AR_PCIE_SERDES,  0xe5980579 },
69844834ea4SSam Leffler    { AR_PCIE_SERDES,  0x001defff },
69944834ea4SSam Leffler    { AR_PCIE_SERDES,  0x1aaabe40 },
70044834ea4SSam Leffler    { AR_PCIE_SERDES,  0xbe105554 },
70144834ea4SSam Leffler    { AR_PCIE_SERDES,  0x000e3007 },
70244834ea4SSam Leffler    { AR_PCIE_SERDES2, 0x00000000 },
70344834ea4SSam Leffler};
704