// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/* Copyright(c) 2018-2019 Realtek Corporation
*/
#include "main.h"
#include "phy.h"
#include "rtw8822c.h"
#include "rtw8822c_table.h"
static const u32 rtw8822c_mac[] = {
};
RTW_DECL_TABLE_PHY_COND(rtw8822c_mac, rtw_phy_cfg_mac);
static const u32 rtw8822c_agc[] = {
0x83000000, 0x00000000, 0x40000000, 0x00000000,
0x1D90, 0x300001FF,
0x1D90, 0x300101FE,
0x1D90, 0x300201FD,
0x1D90, 0x300301FC,
0x1D90, 0x300401FB,
0x1D90, 0x300501FA,
0x1D90, 0x300601F9,
0x1D90, 0x300701F8,
0x1D90, 0x300801F7,
0x1D90, 0x300901F6,
0x1D90, 0x300A01F5,
0x1D90, 0x300B01F4,
0x1D90, 0x300C01F3,
0x1D90, 0x300D01F2,
0x1D90, 0x300E01F1,
0x1D90, 0x300F01F0,
0x1D90, 0x301001EF,
0x1D90, 0x301101EE,
0x1D90, 0x301201ED,
0x1D90, 0x301301EC,
0x1D90, 0x301401EB,
0x1D90, 0x301501EA,
0x1D90, 0x301601E9,
0x1D90, 0x301701E8,
0x1D90, 0x301801E7,
0x1D90, 0x301901E5,
0x1D90, 0x301A01E4,
0x1D90, 0x301B01C5,
0x1D90, 0x301C01C4,
0x1D90, 0x301D01C3,
0x1D90, 0x301E01C2,
0x1D90, 0x301F0188,
0x1D90, 0x30200187,
0x1D90, 0x30210186,
0x1D90, 0x30220184,
0x1D90, 0x30230183,
0x1D90, 0x30240182,
0x1D90, 0x30250181,
0x1D90, 0x30260148,
0x1D90, 0x30270147,
0x1D90, 0x30280146,
0x1D90, 0x30290144,
0x1D90, 0x302A0143,
0x1D90, 0x302B0142,
0x1D90, 0x302C0141,
0x1D90, 0x302D00C8,
0x1D90, 0x302E00C7,
0x1D90, 0x302F00C6,
0x1D90, 0x303000C5,
0x1D90, 0x303100C4,
0x1D90, 0x303200C3,
0x1D90, 0x30330048,
0x1D90, 0x30340047,
0x1D90, 0x30350046,
0x1D90, 0x30360045,
0x1D90, 0x30370025,
0x1D90, 0x30380024,
0x1D90, 0x30390023,
0x1D90, 0x303A0022,
0x1D90, 0x303B0021,
0x1D90, 0x303C0020,
0x1D90, 0x303D0003,
0x1D90, 0x303E0002,
0x1D90, 0x303F0001,
0x90000015, 0x00000000, 0x40000000, 0x00000000,
0x1D90, 0x300001FF,
0x1D90, 0x300101FE,
0x1D90, 0x300201FD,
0x1D90, 0x300301FC,
0x1D90, 0x300401FB,
0x1D90, 0x300501FA,
0x1D90, 0x300601F9,
0x1D90, 0x300701F8,
0x1D90, 0x300801F7,
0x1D90, 0x300901F6,
0x1D90, 0x300A01F5,
0x1D90, 0x300B01F4,
0x1D90, 0x300C01F3,
0x1D90, 0x300D01F2,
0x1D90, 0x300E01F1,
0x1D90, 0x300F01F0,
0x1D90, 0x301001EF,
0x1D90, 0x301101EE,
0x1D90, 0x301201ED,
0x1D90, 0x301301EC,
0x1D90, 0x301401EB,
0x1D90, 0x301501EA,
0x1D90, 0x301601E9,
0x1D90, 0x301701E8,
0x1D90, 0x301801E7,
0x1D90, 0x301901E5,
0x1D90, 0x301A01E4,
0x1D90, 0x301B01C5,
0x1D90, 0x301C01C4,
0x1D90, 0x301D01C3,
0x1D90, 0x301E01C2,
0x1D90, 0x301F0188,
0x1D90, 0x30200187,
0x1D90, 0x30210186,
0x1D90, 0x30220184,
0x1D90, 0x30230183,
0x1D90, 0x30240182,
0x1D90, 0x30250181,
0x1D90, 0x30260148,
0x1D90, 0x30270147,
0x1D90, 0x30280146,
0x1D90, 0x30290144,
0x1D90, 0x302A0143,
0x1D90, 0x302B0142,
0x1D90, 0x302C0141,
0x1D90, 0x302D00C8,
0x1D90, 0x302E00C7,
0x1D90, 0x302F00C6,
0x1D90, 0x303000C5,
0x1D90, 0x303100C4,
0x1D90, 0x303200C3,
0x1D90, 0x30330048,
0x1D90, 0x30340047,
0x1D90, 0x30350046,
0x1D90, 0x30360045,
0x1D90, 0x30370025,
0x1D90, 0x30380024,
0x1D90, 0x30390023,
0x1D90, 0x303A0022,
0x1D90, 0x303B0021,
0x1D90, 0x303C0020,
0x1D90, 0x303D0003,
0x1D90, 0x303E0002,
0x1D90, 0x303F0001,
0x90000016, 0x00000000, 0x40000000, 0x00000000,
0x1D90, 0x300001FF,
0x1D90, 0x300101FE,
0x1D90, 0x300201FD,
0x1D90, 0x300301FC,
0x1D90, 0x300401FB,
0x1D90, 0x300501FA,
0x1D90, 0x300601F9,
0x1D90, 0x300701F8,
0x1D90, 0x300801F7,
0x1D90, 0x300901F6,
0x1D90, 0x300A01F5,
0x1D90, 0x300B01F4,
0x1D90, 0x300C01F3,
0x1D90, 0x300D01F2,
0x1D90, 0x300E01F1,
0x1D90, 0x300F01F0,
0x1D90, 0x301001EF,
0x1D90, 0x301101EE,
0x1D90, 0x301201ED,
0x1D90, 0x301301EC,
0x1D90, 0x301401EB,
0x1D90, 0x301501EA,
0x1D90, 0x301601E9,
0x1D90, 0x301701E8,
0x1D90, 0x301801E7,
0x1D90, 0x301901E5,
0x1D90, 0x301A01E4,
0x1D90, 0x301B01C5,
0x1D90, 0x301C01C4,
0x1D90, 0x301D01C3,
0x1D90, 0x301E01C2,
0x1D90, 0x301F0188,
0x1D90, 0x30200187,
0x1D90, 0x30210186,
0x1D90, 0x30220184,
0x1D90, 0x30230183,
0x1D90, 0x30240182,
0x1D90, 0x30250181,
0x1D90, 0x30260148,
0x1D90, 0x30270147,
0x1D90, 0x30280146,
0x1D90, 0x30290144,
0x1D90, 0x302A0143,
0x1D90, 0x302B0142,
0x1D90, 0x302C0141,
0x1D90, 0x302D00C8,
0x1D90, 0x302E00C7,
0x1D90, 0x302F00C6,
0x1D90, 0x303000C5,
0x1D90, 0x303100C4,
0x1D90, 0x303200C3,
0x1D90, 0x30330048,
0x1D90, 0x30340047,
0x1D90, 0x30350046,
0x1D90, 0x30360045,
0x1D90, 0x30370025,
0x1D90, 0x30380024,
0x1D90, 0x30390023,
0x1D90, 0x303A0022,
0x1D90, 0x303B0021,
0x1D90, 0x303C0020,
0x1D90, 0x303D0003,
0x1D90, 0x303E0002,
0x1D90, 0x303F0001,
0xA0000000, 0x00000000,
0x1D90, 0x300001FF,
0x1D90, 0x300101FE,
0x1D90, 0x300201FD,
0x1D90, 0x300301FC,
0x1D90, 0x300401FB,
0x1D90, 0x300501FA,
0x1D90, 0x300601F9,
0x1D90, 0x300701F8,
0x1D90, 0x300801F7,
0x1D90, 0x300901F6,
0x1D90, 0x300A01F5,
0x1D90, 0x300B01F4,
0x1D90, 0x300C01F3,
0x1D90, 0x300D01F2,
0x1D90, 0x300E01F1,
0x1D90, 0x300F01F0,
0x1D90, 0x301001EF,
0x1D90, 0x301101EE,
0x1D90, 0x301201ED,
0x1D90, 0x301301EC,
0x1D90, 0x301401EB,
0x1D90, 0x301501EA,
0x1D90, 0x301601E9,
0x1D90, 0x301701E8,
0x1D90, 0x301801E7,
0x1D90, 0x301901E5,
0x1D90, 0x301A01E4,
0x1D90, 0x301B01C5,
0x1D90, 0x301C01C4,
0x1D90, 0x301D01C3,
0x1D90, 0x301E01C2,
0x1D90, 0x301F0188,
0x1D90, 0x30200187,
0x1D90, 0x30210186,
0x1D90, 0x30220184,
0x1D90, 0x30230183,
0x1D90, 0x30240182,
0x1D90, 0x30250181,
0x1D90, 0x30260148,
0x1D90, 0x30270147,
0x1D90, 0x30280146,
0x1D90, 0x30290144,
0x1D90, 0x302A0143,
0x1D90, 0x302B0142,
0x1D90, 0x302C0141,
0x1D90, 0x302D00C8,
0x1D90, 0x302E00C7,
0x1D90, 0x302F00C6,
0x1D90, 0x303000C5,
0x1D90, 0x303100C4,
0x1D90, 0x303200C3,
0x1D90, 0x30330048,
0x1D90, 0x30340047,
0x1D90, 0x30350046,
0x1D90, 0x30360045,
0x1D90, 0x30370025,
0x1D90, 0x30380024,
0x1D90, 0x30390023,
0x1D90, 0x303A0022,
0x1D90, 0x303B0021,
0x1D90, 0x303C0020,
0x1D90, 0x303D0003,
0x1D90, 0x303E0002,
0x1D90, 0x303F0001,
0xB0000000, 0x00000000,
0x83000000, 0x00000000, 0x40000000, 0x00000000,
0x1D90, 0x3040011F,
0x1D90, 0x3041011F,
0x1D90, 0x3042011F,
0x1D90, 0x3043011F,
0x1D90, 0x3044011F,
0x1D90, 0x3045011F,
0x1D90, 0x3046011F,
0x1D90, 0x3047011F,
0x1D90, 0x3048011F,
0x1D90, 0x3049011F,
0x1D90, 0x304A011F,
0x1D90, 0x304B011F,
0x1D90, 0x304C011F,
0x1D90, 0x304D011F,
0x1D90, 0x304E011F,
0x1D90, 0x304F00F4,
0x1D90, 0x305000F3,
0x1D90, 0x305100F2,
0x1D90, 0x305200F1,
0x1D90, 0x305300F0,
0x1D90, 0x305400EF,
0x1D90, 0x305500EE,
0x1D90, 0x305600ED,
0x1D90, 0x305700EC,
0x1D90, 0x305800EB,
0x1D90, 0x305900EA,
0x1D90, 0x305A00E9,
0x1D90, 0x305B00E8,
0x1D90, 0x305C00E7,
0x1D90, 0x305D00E6,
0x1D90, 0x305E00E4,
0x1D90, 0x305F00E3,
0x1D90, 0x306000E2,
0x1D90, 0x306100C4,
0x1D90, 0x306200C3,
0x1D90, 0x306300C2,
0x1D90, 0x306400A4,
0x1D90, 0x306500A3,
0x1D90, 0x306600A2,
0x1D90, 0x306700A1,
0x1D90, 0x30680084,
0x1D90, 0x30690083,
0x1D90, 0x306A0082,
0x1D90, 0x306B0081,
0x1D90, 0x306C0080,
0x1D90, 0x306D0067,
0x1D90, 0x306E0066,
0x1D90, 0x306F0065,
0x1D90, 0x30700064,
0x1D90, 0x30710063,
0x1D90, 0x30720044,
0x1D90, 0x30730043,
0x1D90, 0x30740042,
0x1D90, 0x30750041,
0x1D90, 0x30760024,
0x1D90, 0x30770023,
0x1D90, 0x30780022,
0x1D90, 0x30790021,
0x1D90, 0x307A0020,
0x1D90, 0x307B0004,
0x1D90, 0x307C0003,
0x1D90, 0x307D0002,
0x1D90, 0x307E0001,
0x1D90, 0x307F0000,
0x90000015, 0x00000000, 0x40000000, 0x00000000,
0x1D90, 0x304001FD,
0x1D90, 0x304101FC,
0x1D90, 0x304201FB,
0x1D90, 0x304301FA,
0x1D90, 0x304401F9,
0x1D90, 0x304501F8,
0x1D90, 0x304601F7,
0x1D90, 0x304701F6,
0x1D90, 0x304801F5,
0x1D90, 0x304901F4,
0x1D90, 0x304A01F3,
0x1D90, 0x304B01F2,
0x1D90, 0x304C01F1,
0x1D90, 0x304D01F0,
0x1D90, 0x304E01EF,
0x1D90, 0x3