Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e1f2566 authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville
Browse files

ath9k_hw: reformat the ar5008, ar9001 and ar9002 initvals to match ar9003

This format is generated by the initval tool, available at:
git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/initvals-tool.git



Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f504f5f6
Loading
Loading
Loading
Loading
+625 −694
Original line number Diff line number Diff line
/*
 * Copyright (c) 2008-2009 Atheros Communications Inc.
 * Copyright (c) 2010 Atheros Communications Inc.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
@@ -14,9 +14,6 @@
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#ifndef INITVALS_AR5008_H
#define INITVALS_AR5008_H

static const u32 ar5416Modes[][6] = {
	{0x00001030, 0x00000230, 0x00000460, 0x000002c0, 0x00000160, 0x000001e0},
	{0x00001070, 0x00000168, 0x000002d0, 0x00000318, 0x0000018c, 0x000001e0},
@@ -84,6 +81,7 @@ static const u32 ar5416Modes[][6] = {
};

static const u32 ar5416Common[][2] = {
	/* Addr      allmodes  */
	{0x0000000c, 0x00000000},
	{0x00000030, 0x00020015},
	{0x00000034, 0x00000005},
@@ -461,11 +459,13 @@ static const u32 ar5416Common[][2] = {
};

static const u32 ar5416Bank0[][2] = {
	/* Addr      allmodes  */
	{0x000098b0, 0x1e5795e5},
	{0x000098e0, 0x02008020},
};

static const u32 ar5416BB_RfGain[][3] = {
	/* Addr      5G_HT20     5G_HT40   */
	{0x00009a00, 0x00000000, 0x00000000},
	{0x00009a04, 0x00000040, 0x00000040},
	{0x00009a08, 0x00000080, 0x00000080},
@@ -533,21 +533,24 @@ static const u32 ar5416BB_RfGain[][3] = {
};

static const u32 ar5416Bank1[][2] = {
	/* Addr      allmodes  */
	{0x000098b0, 0x02108421},
	{0x000098ec, 0x00000008},
};

static const u32 ar5416Bank2[][2] = {
	/* Addr      allmodes  */
	{0x000098b0, 0x0e73ff17},
	{0x000098e0, 0x00000420},
};

static const u32 ar5416Bank3[][3] = {
	/* Addr      5G_HT20     5G_HT40   */
	{0x000098f0, 0x01400018, 0x01c00018},
};

static const u32 ar5416Bank6[][3] = {

	/* Addr      5G_HT20     5G_HT40   */
	{0x0000989c, 0x00000000, 0x00000000},
	{0x0000989c, 0x00000000, 0x00000000},
	{0x0000989c, 0x00000000, 0x00000000},
@@ -584,6 +587,7 @@ static const u32 ar5416Bank6[][3] = {
};

static const u32 ar5416Bank6TPC[][3] = {
	/* Addr      5G_HT20     5G_HT40   */
	{0x0000989c, 0x00000000, 0x00000000},
	{0x0000989c, 0x00000000, 0x00000000},
	{0x0000989c, 0x00000000, 0x00000000},
@@ -620,12 +624,14 @@ static const u32 ar5416Bank6TPC[][3] = {
};

static const u32 ar5416Bank7[][2] = {
	/* Addr      allmodes  */
	{0x0000989c, 0x00000500},
	{0x0000989c, 0x00000800},
	{0x000098cc, 0x0000000e},
};

static const u32 ar5416Addac[][2] = {
	/* Addr      allmodes  */
	{0x0000989c, 0x00000000},
	{0x0000989c, 0x00000003},
	{0x0000989c, 0x00000000},
@@ -665,78 +671,3 @@ static const u32 ar5416Addac[][2] = {
	{0x000098cc, 0x00000000},
};
static const u32 ar5416Modes_9100[][6] = {
    { 0x00001030, 0x00000230, 0x00000460, 0x000002c0, 0x00000160, 0x000001e0 },
    { 0x00001070, 0x00000168, 0x000002d0, 0x00000318, 0x0000018c, 0x000001e0 },
    { 0x000010b0, 0x00000e60, 0x00001cc0, 0x00007c70, 0x00003e38, 0x00001180 },
    { 0x000010f0, 0x0000a000, 0x00014000, 0x00016000, 0x0000b000, 0x00014008 },
    { 0x00008014, 0x03e803e8, 0x07d007d0, 0x10801600, 0x08400b00, 0x06e006e0 },
    { 0x0000801c, 0x128d93a7, 0x128d93cf, 0x12e013d7, 0x12e013ab, 0x098813cf },
    { 0x00009804, 0x00000300, 0x000003c4, 0x000003c4, 0x00000300, 0x00000303 },
    { 0x00009820, 0x02020200, 0x02020200, 0x02020200, 0x02020200, 0x02020200 },
    { 0x00009824, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e },
    { 0x00009828, 0x0a020001, 0x0a020001, 0x0a020001, 0x0a020001, 0x0a020001 },
    { 0x00009834, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e },
    { 0x00009838, 0x00000007, 0x00000007, 0x00000007, 0x00000007, 0x00000007 },
    { 0x00009844, 0x0372161e, 0x0372161e, 0x037216a0, 0x037216a0, 0x037216a0 },
    { 0x00009848, 0x001a6a65, 0x001a6a65, 0x00197a68, 0x00197a68, 0x00197a68 },
    { 0x0000a848, 0x001a6a65, 0x001a6a65, 0x00197a68, 0x00197a68, 0x00197a68 },
    { 0x0000b848, 0x001a6a65, 0x001a6a65, 0x00197a68, 0x00197a68, 0x00197a68 },
    { 0x00009850, 0x6d48b4e2, 0x6d48b4e2, 0x6d48b0e2, 0x6d48b0e2, 0x6d48b0e2 },
    { 0x00009858, 0x7ec82d2e, 0x7ec82d2e, 0x7ec86d2e, 0x7ec84d2e, 0x7ec82d2e },
    { 0x0000985c, 0x3139605e, 0x3139605e, 0x3139605e, 0x3139605e, 0x3139605e },
    { 0x00009860, 0x00048d18, 0x00048d18, 0x00048d20, 0x00048d20, 0x00048d18 },
    { 0x0000c864, 0x0001ce00, 0x0001ce00, 0x0001ce00, 0x0001ce00, 0x0001ce00 },
    { 0x00009868, 0x409a40d0, 0x409a40d0, 0x409a40d0, 0x409a40d0, 0x409a40d0 },
    { 0x0000986c, 0x050cb081, 0x050cb081, 0x050cb081, 0x050cb081, 0x050cb081 },
    { 0x00009914, 0x000007d0, 0x000007d0, 0x00000898, 0x00000898, 0x000007d0 },
    { 0x00009918, 0x0000000a, 0x00000014, 0x00000016, 0x0000000b, 0x00000016 },
    { 0x00009924, 0xd00a8a07, 0xd00a8a07, 0xd00a8a11, 0xd00a8a0d, 0xd00a8a0d },
    { 0x00009940, 0x00754604, 0x00754604, 0xfff81204, 0xfff81204, 0xfff81204 },
    { 0x00009944, 0xdfb81020, 0xdfb81020, 0xdfb81020, 0xdfb81020, 0xdfb81020 },
    { 0x00009954, 0x5f3ca3de, 0x5f3ca3de, 0xe250a51e, 0xe250a51e, 0xe250a51e },
    { 0x00009958, 0x2108ecff, 0x2108ecff, 0x3388ffff, 0x3388ffff, 0x3388ffff },
#ifdef TB243
    { 0x00009960, 0x00000900, 0x00000900, 0x00009b40, 0x00009b40, 0x00012d80 },
    { 0x0000a960, 0x00000900, 0x00000900, 0x00009b40, 0x00009b40, 0x00012d80 },
    { 0x0000b960, 0x00000900, 0x00000900, 0x00009b40, 0x00009b40, 0x00012d80 },
    { 0x00009964, 0x00000000, 0x00000000, 0x00002210, 0x00002210, 0x00001120 },
#else
    { 0x00009960, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0 },
    { 0x0000a960, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0 },
    { 0x0000b960, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0 },
    { 0x00009964, 0x00001120, 0x00001120, 0x00001120, 0x00001120, 0x00001120 },
#endif
    { 0x0000c9bc, 0x001a0600, 0x001a0600, 0x001a1000, 0x001a0c00, 0x001a0c00 },
    { 0x000099c0, 0x038919be, 0x038919be, 0x038919be, 0x038919be, 0x038919be },
    { 0x000099c4, 0x06336f77, 0x06336f77, 0x06336f77, 0x06336f77, 0x06336f77 },
    { 0x000099c8, 0x60f65329, 0x60f65329, 0x60f65329, 0x60f65329, 0x60f65329 },
    { 0x000099cc, 0x08f186c8, 0x08f186c8, 0x08f186c8, 0x08f186c8, 0x08f186c8 },
    { 0x000099d0, 0x00046384, 0x00046384, 0x00046384, 0x00046384, 0x00046384 },
    { 0x000099d4, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
    { 0x000099d8, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
    { 0x0000a204, 0x00000880, 0x00000880, 0x00000880, 0x00000880, 0x00000880 },
    { 0x0000a208, 0xd6be4788, 0xd6be4788, 0xd03e4788, 0xd03e4788, 0xd03e4788 },
    { 0x0000a20c, 0x002fc160, 0x002fc160, 0x002ac120, 0x002ac120, 0x002ac120 },
    { 0x0000b20c, 0x002fc160, 0x002fc160, 0x002ac120, 0x002ac120, 0x002ac120 },
    { 0x0000c20c, 0x002fc160, 0x002fc160, 0x002ac120, 0x002ac120, 0x002ac120 },
    { 0x0000a21c, 0x1883800a, 0x1883800a, 0x1883800a, 0x1883800a, 0x1883800a },
    { 0x0000a230, 0x00000000, 0x00000000, 0x00000210, 0x00000108, 0x00000000 },
    { 0x0000a274, 0x0a1a9caa, 0x0a1a9caa, 0x0a1a7caa, 0x0a1a7caa, 0x0a1a7caa },
    { 0x0000a300, 0x18010000, 0x18010000, 0x18010000, 0x18010000, 0x18010000 },
    { 0x0000a304, 0x30032602, 0x30032602, 0x2e032402, 0x2e032402, 0x2e032402 },
    { 0x0000a308, 0x48073e06, 0x48073e06, 0x4a0a3c06, 0x4a0a3c06, 0x4a0a3c06 },
    { 0x0000a30c, 0x560b4c0a, 0x560b4c0a, 0x621a540b, 0x621a540b, 0x621a540b },
    { 0x0000a310, 0x641a600f, 0x641a600f, 0x764f6c1b, 0x764f6c1b, 0x764f6c1b },
    { 0x0000a314, 0x7a4f6e1b, 0x7a4f6e1b, 0x845b7a5a, 0x845b7a5a, 0x845b7a5a },
    { 0x0000a318, 0x8c5b7e5a, 0x8c5b7e5a, 0x950f8ccf, 0x950f8ccf, 0x950f8ccf },
    { 0x0000a31c, 0x9d0f96cf, 0x9d0f96cf, 0xa5cf9b4f, 0xa5cf9b4f, 0xa5cf9b4f },
    { 0x0000a320, 0xb51fa69f, 0xb51fa69f, 0xbddfaf1f, 0xbddfaf1f, 0xbddfaf1f },
    { 0x0000a324, 0xcb3fbd07, 0xcb3fbcbf, 0xd1ffc93f, 0xd1ffc93f, 0xd1ffc93f },
    { 0x0000a328, 0x0000d7bf, 0x0000d7bf, 0x00000000, 0x00000000, 0x00000000 },
    { 0x0000a32c, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
    { 0x0000a330, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
    { 0x0000a334, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
};

#endif /* INITVALS_AR5008_H */
+1287 −1187
Original line number Diff line number Diff line
/*
 * Copyright (c) 2010 Atheros Communications Inc.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

static const u32 ar5416Modes_9100[][6] = {
	{0x00001030, 0x00000230, 0x00000460, 0x000002c0, 0x00000160, 0x000001e0},
	{0x00001070, 0x00000168, 0x000002d0, 0x00000318, 0x0000018c, 0x000001e0},
	{0x000010b0, 0x00000e60, 0x00001cc0, 0x00007c70, 0x00003e38, 0x00001180},
	{0x000010f0, 0x0000a000, 0x00014000, 0x00016000, 0x0000b000, 0x00014008},
	{0x00008014, 0x03e803e8, 0x07d007d0, 0x10801600, 0x08400b00, 0x06e006e0},
	{0x0000801c, 0x128d93a7, 0x128d93cf, 0x12e013d7, 0x12e013ab, 0x098813cf},
	{0x00009804, 0x00000300, 0x000003c4, 0x000003c4, 0x00000300, 0x00000303},
	{0x00009820, 0x02020200, 0x02020200, 0x02020200, 0x02020200, 0x02020200},
	{0x00009824, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e},
	{0x00009828, 0x0a020001, 0x0a020001, 0x0a020001, 0x0a020001, 0x0a020001},
	{0x00009834, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e},
	{0x00009838, 0x00000007, 0x00000007, 0x00000007, 0x00000007, 0x00000007},
	{0x00009844, 0x0372161e, 0x0372161e, 0x037216a0, 0x037216a0, 0x037216a0},
	{0x00009848, 0x001a6a65, 0x001a6a65, 0x00197a68, 0x00197a68, 0x00197a68},
	{0x0000a848, 0x001a6a65, 0x001a6a65, 0x00197a68, 0x00197a68, 0x00197a68},
	{0x0000b848, 0x001a6a65, 0x001a6a65, 0x00197a68, 0x00197a68, 0x00197a68},
	{0x00009850, 0x6d48b4e2, 0x6d48b4e2, 0x6d48b0e2, 0x6d48b0e2, 0x6d48b0e2},
	{0x00009858, 0x7ec82d2e, 0x7ec82d2e, 0x7ec86d2e, 0x7ec84d2e, 0x7ec82d2e},
	{0x0000985c, 0x3139605e, 0x3139605e, 0x3139605e, 0x3139605e, 0x3139605e},
	{0x00009860, 0x00048d18, 0x00048d18, 0x00048d20, 0x00048d20, 0x00048d18},
	{0x0000c864, 0x0001ce00, 0x0001ce00, 0x0001ce00, 0x0001ce00, 0x0001ce00},
	{0x00009868, 0x409a40d0, 0x409a40d0, 0x409a40d0, 0x409a40d0, 0x409a40d0},
	{0x0000986c, 0x050cb081, 0x050cb081, 0x050cb081, 0x050cb081, 0x050cb081},
	{0x00009914, 0x000007d0, 0x000007d0, 0x00000898, 0x00000898, 0x000007d0},
	{0x00009918, 0x0000000a, 0x00000014, 0x00000016, 0x0000000b, 0x00000016},
	{0x00009924, 0xd00a8a07, 0xd00a8a07, 0xd00a8a11, 0xd00a8a0d, 0xd00a8a0d},
	{0x00009940, 0x00754604, 0x00754604, 0xfff81204, 0xfff81204, 0xfff81204},
	{0x00009944, 0xdfb81020, 0xdfb81020, 0xdfb81020, 0xdfb81020, 0xdfb81020},
	{0x00009954, 0x5f3ca3de, 0x5f3ca3de, 0xe250a51e, 0xe250a51e, 0xe250a51e},
	{0x00009958, 0x2108ecff, 0x2108ecff, 0x3388ffff, 0x3388ffff, 0x3388ffff},
	{0x00009960, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0},
	{0x0000a960, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0},
	{0x0000b960, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0, 0x0001bfc0},
	{0x00009964, 0x00001120, 0x00001120, 0x00001120, 0x00001120, 0x00001120},
	{0x0000c9bc, 0x001a0600, 0x001a0600, 0x001a1000, 0x001a0c00, 0x001a0c00},
	{0x000099c0, 0x038919be, 0x038919be, 0x038919be, 0x038919be, 0x038919be},
	{0x000099c4, 0x06336f77, 0x06336f77, 0x06336f77, 0x06336f77, 0x06336f77},
	{0x000099c8, 0x60f65329, 0x60f65329, 0x60f65329, 0x60f65329, 0x60f65329},
	{0x000099cc, 0x08f186c8, 0x08f186c8, 0x08f186c8, 0x08f186c8, 0x08f186c8},
	{0x000099d0, 0x00046384, 0x00046384, 0x00046384, 0x00046384, 0x00046384},
	{0x000099d4, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
	{0x000099d8, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
	{0x0000a204, 0x00000880, 0x00000880, 0x00000880, 0x00000880, 0x00000880},
	{0x0000a208, 0xd6be4788, 0xd6be4788, 0xd03e4788, 0xd03e4788, 0xd03e4788},
	{0x0000a20c, 0x002fc160, 0x002fc160, 0x002ac120, 0x002ac120, 0x002ac120},
	{0x0000b20c, 0x002fc160, 0x002fc160, 0x002ac120, 0x002ac120, 0x002ac120},
	{0x0000c20c, 0x002fc160, 0x002fc160, 0x002ac120, 0x002ac120, 0x002ac120},
	{0x0000a21c, 0x1883800a, 0x1883800a, 0x1883800a, 0x1883800a, 0x1883800a},
	{0x0000a230, 0x00000000, 0x00000000, 0x00000210, 0x00000108, 0x00000000},
	{0x0000a274, 0x0a1a9caa, 0x0a1a9caa, 0x0a1a7caa, 0x0a1a7caa, 0x0a1a7caa},
	{0x0000a300, 0x18010000, 0x18010000, 0x18010000, 0x18010000, 0x18010000},
	{0x0000a304, 0x30032602, 0x30032602, 0x2e032402, 0x2e032402, 0x2e032402},
	{0x0000a308, 0x48073e06, 0x48073e06, 0x4a0a3c06, 0x4a0a3c06, 0x4a0a3c06},
	{0x0000a30c, 0x560b4c0a, 0x560b4c0a, 0x621a540b, 0x621a540b, 0x621a540b},
	{0x0000a310, 0x641a600f, 0x641a600f, 0x764f6c1b, 0x764f6c1b, 0x764f6c1b},
	{0x0000a314, 0x7a4f6e1b, 0x7a4f6e1b, 0x845b7a5a, 0x845b7a5a, 0x845b7a5a},
	{0x0000a318, 0x8c5b7e5a, 0x8c5b7e5a, 0x950f8ccf, 0x950f8ccf, 0x950f8ccf},
	{0x0000a31c, 0x9d0f96cf, 0x9d0f96cf, 0xa5cf9b4f, 0xa5cf9b4f, 0xa5cf9b4f},
	{0x0000a320, 0xb51fa69f, 0xb51fa69f, 0xbddfaf1f, 0xbddfaf1f, 0xbddfaf1f},
	{0x0000a324, 0xcb3fbd07, 0xcb3fbcbf, 0xd1ffc93f, 0xd1ffc93f, 0xd1ffc93f},
	{0x0000a328, 0x0000d7bf, 0x0000d7bf, 0x00000000, 0x00000000, 0x00000000},
	{0x0000a32c, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
	{0x0000a330, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
	{0x0000a334, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
};

static const u32 ar5416Common_9100[][2] = {
	/* Addr      allmodes  */
	{0x0000000c, 0x00000000},
	{0x00000030, 0x00020015},
	{0x00000034, 0x00000005},
@@ -374,11 +457,13 @@ static const u32 ar5416Common_9100[][2] = {
};

static const u32 ar5416Bank0_9100[][2] = {
	/* Addr      allmodes  */
	{0x000098b0, 0x1e5795e5},
	{0x000098e0, 0x02008020},
};

static const u32 ar5416BB_RfGain_9100[][3] = {
	/* Addr      5G_HT20     5G_HT40   */
	{0x00009a00, 0x00000000, 0x00000000},
	{0x00009a04, 0x00000040, 0x00000040},
	{0x00009a08, 0x00000080, 0x00000080},
@@ -446,21 +531,24 @@ static const u32 ar5416BB_RfGain_9100[][3] = {
};

static const u32 ar5416Bank1_9100[][2] = {
	/* Addr      allmodes  */
	{0x000098b0, 0x02108421},
	{0x000098ec, 0x00000008},
};

static const u32 ar5416Bank2_9100[][2] = {
	/* Addr      allmodes  */
	{0x000098b0, 0x0e73ff17},
	{0x000098e0, 0x00000420},
};

static const u32 ar5416Bank3_9100[][3] = {
	/* Addr      5G_HT20     5G_HT40   */
	{0x000098f0, 0x01400018, 0x01c00018},
};

static const u32 ar5416Bank6_9100[][3] = {

	/* Addr      5G_HT20     5G_HT40   */
	{0x0000989c, 0x00000000, 0x00000000},
	{0x0000989c, 0x00000000, 0x00000000},
	{0x0000989c, 0x00000000, 0x00000000},
@@ -496,9 +584,8 @@ static const u32 ar5416Bank6_9100[][3] = {
	{0x000098d0, 0x0000000f, 0x0010000f},
};


static const u32 ar5416Bank6TPC_9100[][3] = {

	/* Addr      5G_HT20     5G_HT40   */
	{0x0000989c, 0x00000000, 0x00000000},
	{0x0000989c, 0x00000000, 0x00000000},
	{0x0000989c, 0x00000000, 0x00000000},
@@ -535,12 +622,14 @@ static const u32 ar5416Bank6TPC_9100[][3] = {
};

static const u32 ar5416Bank7_9100[][2] = {
	/* Addr      allmodes  */
	{0x0000989c, 0x00000500},
	{0x0000989c, 0x00000800},
	{0x000098cc, 0x0000000e},
};

static const u32 ar5416Addac_9100[][2] = {
	/* Addr      allmodes  */
	{0x0000989c, 0x00000000},
	{0x0000989c, 0x00000000},
	{0x0000989c, 0x00000000},
@@ -641,6 +730,7 @@ static const u32 ar5416Modes_9160[][6] = {
};

static const u32 ar5416Common_9160[][2] = {
	/* Addr      allmodes  */
	{0x0000000c, 0x00000000},
	{0x00000030, 0x00020015},
	{0x00000034, 0x00000005},
@@ -1019,11 +1109,13 @@ static const u32 ar5416Common_9160[][2] = {
};

static const u32 ar5416Bank0_9160[][2] = {
	/* Addr      allmodes  */
	{0x000098b0, 0x1e5795e5},
	{0x000098e0, 0x02008020},
};

static const u32 ar5416BB_RfGain_9160[][3] = {
	/* Addr      5G_HT20     5G_HT40   */
	{0x00009a00, 0x00000000, 0x00000000},
	{0x00009a04, 0x00000040, 0x00000040},
	{0x00009a08, 0x00000080, 0x00000080},
@@ -1091,20 +1183,24 @@ static const u32 ar5416BB_RfGain_9160[][3] = {
};

static const u32 ar5416Bank1_9160[][2] = {
	/* Addr      allmodes  */
	{0x000098b0, 0x02108421},
	{0x000098ec, 0x00000008},
};

static const u32 ar5416Bank2_9160[][2] = {
	/* Addr      allmodes  */
	{0x000098b0, 0x0e73ff17},
	{0x000098e0, 0x00000420},
};

static const u32 ar5416Bank3_9160[][3] = {
	/* Addr      5G_HT20     5G_HT40   */
	{0x000098f0, 0x01400018, 0x01c00018},
};

static const u32 ar5416Bank6_9160[][3] = {
	/* Addr      5G_HT20     5G_HT40   */
	{0x0000989c, 0x00000000, 0x00000000},
	{0x0000989c, 0x00000000, 0x00000000},
	{0x0000989c, 0x00000000, 0x00000000},
@@ -1141,6 +1237,7 @@ static const u32 ar5416Bank6_9160[][3] = {
};

static const u32 ar5416Bank6TPC_9160[][3] = {
	/* Addr      5G_HT20     5G_HT40   */
	{0x0000989c, 0x00000000, 0x00000000},
	{0x0000989c, 0x00000000, 0x00000000},
	{0x0000989c, 0x00000000, 0x00000000},
@@ -1177,12 +1274,14 @@ static const u32 ar5416Bank6TPC_9160[][3] = {
};

static const u32 ar5416Bank7_9160[][2] = {
	/* Addr      allmodes  */
	{0x0000989c, 0x00000500},
	{0x0000989c, 0x00000800},
	{0x000098cc, 0x0000000e},
};

static const u32 ar5416Addac_9160[][2] = {
	/* Addr      allmodes  */
	{0x0000989c, 0x00000000},
	{0x0000989c, 0x00000000},
	{0x0000989c, 0x00000000},
@@ -1218,6 +1317,7 @@ static const u32 ar5416Addac_9160[][2] = {
};

static const u32 ar5416Addac_9160_1_1[][2] = {
	/* Addr      allmodes  */
	{0x0000989c, 0x00000000},
	{0x0000989c, 0x00000000},
	{0x0000989c, 0x00000000},
+5071 −5076

File changed.

Preview size limit exceeded, changes collapsed.