1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2019-2020 Realtek Corporation 3 */ 4 5 #include "rtw8852a_rfk_table.h" 6 7 static const struct rtw89_reg5_def rtw8852a_tssi_sys_defs[] = { 8 RTW89_DECL_RFK_WM(0x12a8, 0x00000001, 0x00000001), 9 RTW89_DECL_RFK_WM(0x12a8, 0x0000000e, 0x00000002), 10 RTW89_DECL_RFK_WM(0x32a8, 0x00000001, 0x00000001), 11 RTW89_DECL_RFK_WM(0x32a8, 0x0000000e, 0x00000002), 12 RTW89_DECL_RFK_WM(0x12bc, 0x000000f0, 0x00000005), 13 RTW89_DECL_RFK_WM(0x12bc, 0x00000f00, 0x00000005), 14 RTW89_DECL_RFK_WM(0x12bc, 0x000f0000, 0x00000005), 15 RTW89_DECL_RFK_WM(0x12bc, 0x0000f000, 0x00000005), 16 RTW89_DECL_RFK_WM(0x120c, 0x000000ff, 0x00000033), 17 RTW89_DECL_RFK_WM(0x12c0, 0x0ff00000, 0x00000033), 18 RTW89_DECL_RFK_WM(0x32bc, 0x000000f0, 0x00000005), 19 RTW89_DECL_RFK_WM(0x32bc, 0x00000f00, 0x00000005), 20 RTW89_DECL_RFK_WM(0x32bc, 0x000f0000, 0x00000005), 21 RTW89_DECL_RFK_WM(0x32bc, 0x0000f000, 0x00000005), 22 RTW89_DECL_RFK_WM(0x320c, 0x000000ff, 0x00000033), 23 RTW89_DECL_RFK_WM(0x32c0, 0x0ff00000, 0x00000033), 24 RTW89_DECL_RFK_WM(0x0300, 0xff000000, 0x00000019), 25 RTW89_DECL_RFK_WM(0x0304, 0x000000ff, 0x00000019), 26 RTW89_DECL_RFK_WM(0x0304, 0x0000ff00, 0x0000001d), 27 RTW89_DECL_RFK_WM(0x0314, 0xffff0000, 0x00002044), 28 RTW89_DECL_RFK_WM(0x0318, 0x0000ffff, 0x00002042), 29 RTW89_DECL_RFK_WM(0x0318, 0xffff0000, 0x00002002), 30 RTW89_DECL_RFK_WM(0x0020, 0x00006000, 0x00000003), 31 RTW89_DECL_RFK_WM(0x0024, 0x00006000, 0x00000003), 32 RTW89_DECL_RFK_WM(0x0704, 0xffff0000, 0x0000601e), 33 RTW89_DECL_RFK_WM(0x2704, 0xffff0000, 0x0000601e), 34 RTW89_DECL_RFK_WM(0x0700, 0xf0000000, 0x00000004), 35 RTW89_DECL_RFK_WM(0x2700, 0xf0000000, 0x00000004), 36 RTW89_DECL_RFK_WM(0x0650, 0x3c000000, 0x00000000), 37 RTW89_DECL_RFK_WM(0x2650, 0x3c000000, 0x00000000), 38 }; 39 40 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_sys_defs); 41 42 static const struct rtw89_reg5_def rtw8852a_tssi_sys_defs_2g[] = { 43 RTW89_DECL_RFK_WM(0x120c, 0x000000ff, 0x00000033), 44 RTW89_DECL_RFK_WM(0x12c0, 0x0ff00000, 0x00000033), 45 RTW89_DECL_RFK_WM(0x32c0, 0x0ff00000, 0x00000033), 46 RTW89_DECL_RFK_WM(0x320c, 0x000000ff, 0x00000033), 47 }; 48 49 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_sys_defs_2g); 50 51 static const struct rtw89_reg5_def rtw8852a_tssi_sys_defs_5g[] = { 52 RTW89_DECL_RFK_WM(0x120c, 0x000000ff, 0x00000044), 53 RTW89_DECL_RFK_WM(0x12c0, 0x0ff00000, 0x00000044), 54 RTW89_DECL_RFK_WM(0x32c0, 0x0ff00000, 0x00000044), 55 RTW89_DECL_RFK_WM(0x320c, 0x000000ff, 0x00000044), 56 }; 57 58 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_sys_defs_5g); 59 60 static const struct rtw89_reg5_def rtw8852a_tssi_txpwr_ctrl_bb_defs_a[] = { 61 RTW89_DECL_RFK_WM(0x5800, 0x000000ff, 0x0000007f), 62 RTW89_DECL_RFK_WM(0x5800, 0x0000ff00, 0x00000080), 63 RTW89_DECL_RFK_WM(0x5800, 0x003f0000, 0x0000003f), 64 RTW89_DECL_RFK_WM(0x5800, 0x10000000, 0x00000000), 65 RTW89_DECL_RFK_WM(0x5800, 0x20000000, 0x00000000), 66 RTW89_DECL_RFK_WM(0x5800, 0xc0000000, 0x00000000), 67 RTW89_DECL_RFK_WM(0x5804, 0xf8000000, 0x00000000), 68 RTW89_DECL_RFK_WM(0x580c, 0x0000007f, 0x00000040), 69 RTW89_DECL_RFK_WM(0x580c, 0x00007f00, 0x00000040), 70 RTW89_DECL_RFK_WM(0x580c, 0x00008000, 0x00000000), 71 RTW89_DECL_RFK_WM(0x580c, 0x0fff0000, 0x00000000), 72 RTW89_DECL_RFK_WM(0x5810, 0x000001ff, 0x00000000), 73 RTW89_DECL_RFK_WM(0x5810, 0x00000200, 0x00000000), 74 RTW89_DECL_RFK_WM(0x5810, 0x0000fc00, 0x00000000), 75 RTW89_DECL_RFK_WM(0x5810, 0x00010000, 0x00000001), 76 RTW89_DECL_RFK_WM(0x5810, 0x00fe0000, 0x00000000), 77 RTW89_DECL_RFK_WM(0x5810, 0x01000000, 0x00000001), 78 RTW89_DECL_RFK_WM(0x5810, 0x06000000, 0x00000000), 79 RTW89_DECL_RFK_WM(0x5810, 0x38000000, 0x00000003), 80 RTW89_DECL_RFK_WM(0x5810, 0x40000000, 0x00000001), 81 RTW89_DECL_RFK_WM(0x5810, 0x80000000, 0x00000000), 82 RTW89_DECL_RFK_WM(0x5814, 0x000003ff, 0x00000000), 83 RTW89_DECL_RFK_WM(0x5814, 0x00000c00, 0x00000000), 84 RTW89_DECL_RFK_WM(0x5814, 0x00001000, 0x00000001), 85 RTW89_DECL_RFK_WM(0x5814, 0x00002000, 0x00000000), 86 RTW89_DECL_RFK_WM(0x5814, 0x00004000, 0x00000001), 87 RTW89_DECL_RFK_WM(0x5814, 0x00038000, 0x00000005), 88 RTW89_DECL_RFK_WM(0x5814, 0x003c0000, 0x00000000), 89 RTW89_DECL_RFK_WM(0x5814, 0x01c00000, 0x00000000), 90 RTW89_DECL_RFK_WM(0x5814, 0x18000000, 0x00000000), 91 RTW89_DECL_RFK_WM(0x5814, 0xe0000000, 0x00000000), 92 RTW89_DECL_RFK_WM(0x5818, 0x000000ff, 0x00000000), 93 RTW89_DECL_RFK_WM(0x5818, 0x0001ff00, 0x00000018), 94 RTW89_DECL_RFK_WM(0x5818, 0x03fe0000, 0x00000016), 95 RTW89_DECL_RFK_WM(0x5818, 0xfc000000, 0x00000000), 96 RTW89_DECL_RFK_WM(0x581c, 0x000003ff, 0x00000280), 97 RTW89_DECL_RFK_WM(0x581c, 0x000ffc00, 0x00000200), 98 RTW89_DECL_RFK_WM(0x581c, 0x00100000, 0x00000000), 99 RTW89_DECL_RFK_WM(0x581c, 0x01e00000, 0x00000008), 100 RTW89_DECL_RFK_WM(0x581c, 0x01e00000, 0x0000000e), 101 RTW89_DECL_RFK_WM(0x581c, 0x1e000000, 0x00000008), 102 RTW89_DECL_RFK_WM(0x581c, 0x1e000000, 0x0000000e), 103 RTW89_DECL_RFK_WM(0x581c, 0x20000000, 0x00000000), 104 RTW89_DECL_RFK_WM(0x5820, 0x00000fff, 0x00000080), 105 RTW89_DECL_RFK_WM(0x5820, 0x0000f000, 0x0000000f), 106 RTW89_DECL_RFK_WM(0x5820, 0x001f0000, 0x00000000), 107 RTW89_DECL_RFK_WM(0x5820, 0xffe00000, 0x00000000), 108 RTW89_DECL_RFK_WM(0x5824, 0x0003ffff, 0x000115f2), 109 RTW89_DECL_RFK_WM(0x5824, 0x3ffc0000, 0x00000000), 110 RTW89_DECL_RFK_WM(0x5828, 0x00000fff, 0x00000121), 111 RTW89_DECL_RFK_WM(0x582c, 0x0003ffff, 0x000115f2), 112 RTW89_DECL_RFK_WM(0x582c, 0x3ffc0000, 0x00000000), 113 RTW89_DECL_RFK_WM(0x5830, 0x00000fff, 0x00000121), 114 RTW89_DECL_RFK_WM(0x5834, 0x0003ffff, 0x000115f2), 115 RTW89_DECL_RFK_WM(0x5834, 0x3ffc0000, 0x00000000), 116 RTW89_DECL_RFK_WM(0x5838, 0x00000fff, 0x00000121), 117 RTW89_DECL_RFK_WM(0x583c, 0x0003ffff, 0x000115f2), 118 RTW89_DECL_RFK_WM(0x583c, 0x3ffc0000, 0x00000000), 119 RTW89_DECL_RFK_WM(0x5840, 0x00000fff, 0x00000121), 120 RTW89_DECL_RFK_WM(0x5844, 0x0003ffff, 0x000115f2), 121 RTW89_DECL_RFK_WM(0x5844, 0x3ffc0000, 0x00000000), 122 RTW89_DECL_RFK_WM(0x5848, 0x00000fff, 0x00000121), 123 RTW89_DECL_RFK_WM(0x584c, 0x0003ffff, 0x000115f2), 124 RTW89_DECL_RFK_WM(0x584c, 0x3ffc0000, 0x00000000), 125 RTW89_DECL_RFK_WM(0x5850, 0x00000fff, 0x00000121), 126 RTW89_DECL_RFK_WM(0x5854, 0x0003ffff, 0x000115f2), 127 RTW89_DECL_RFK_WM(0x5854, 0x3ffc0000, 0x00000000), 128 RTW89_DECL_RFK_WM(0x5858, 0x00000fff, 0x00000121), 129 RTW89_DECL_RFK_WM(0x585c, 0x0003ffff, 0x000115f2), 130 RTW89_DECL_RFK_WM(0x585c, 0x3ffc0000, 0x00000000), 131 RTW89_DECL_RFK_WM(0x5860, 0x00000fff, 0x00000121), 132 RTW89_DECL_RFK_WM(0x5828, 0x003ff000, 0x00000000), 133 RTW89_DECL_RFK_WM(0x5828, 0x7fc00000, 0x00000000), 134 RTW89_DECL_RFK_WM(0x5830, 0x003ff000, 0x00000000), 135 RTW89_DECL_RFK_WM(0x5830, 0x7fc00000, 0x00000000), 136 RTW89_DECL_RFK_WM(0x5838, 0x003ff000, 0x00000000), 137 RTW89_DECL_RFK_WM(0x5838, 0x7fc00000, 0x00000000), 138 RTW89_DECL_RFK_WM(0x5840, 0x003ff000, 0x00000000), 139 RTW89_DECL_RFK_WM(0x5840, 0x7fc00000, 0x00000000), 140 RTW89_DECL_RFK_WM(0x5848, 0x003ff000, 0x00000000), 141 RTW89_DECL_RFK_WM(0x5848, 0x7fc00000, 0x00000000), 142 RTW89_DECL_RFK_WM(0x5850, 0x003ff000, 0x00000000), 143 RTW89_DECL_RFK_WM(0x5850, 0x7fc00000, 0x00000000), 144 RTW89_DECL_RFK_WM(0x5858, 0x003ff000, 0x00000000), 145 RTW89_DECL_RFK_WM(0x5858, 0x7fc00000, 0x00000000), 146 RTW89_DECL_RFK_WM(0x5860, 0x003ff000, 0x00000000), 147 RTW89_DECL_RFK_WM(0x5860, 0x7fc00000, 0x00000000), 148 RTW89_DECL_RFK_WM(0x5860, 0x80000000, 0x00000000), 149 RTW89_DECL_RFK_WM(0x5864, 0x000003ff, 0x000001ff), 150 RTW89_DECL_RFK_WM(0x5864, 0x000ffc00, 0x00000200), 151 RTW89_DECL_RFK_WM(0x5864, 0x03f00000, 0x00000000), 152 RTW89_DECL_RFK_WM(0x5864, 0x04000000, 0x00000000), 153 RTW89_DECL_RFK_WM(0x5898, 0xffffffff, 0x00000000), 154 RTW89_DECL_RFK_WM(0x589c, 0xffffffff, 0x00000000), 155 RTW89_DECL_RFK_WM(0x58a0, 0x000000ff, 0x000000fd), 156 RTW89_DECL_RFK_WM(0x58a0, 0x0000ff00, 0x000000e5), 157 RTW89_DECL_RFK_WM(0x58a0, 0x00ff0000, 0x000000cd), 158 RTW89_DECL_RFK_WM(0x58a0, 0xff000000, 0x000000b5), 159 RTW89_DECL_RFK_WM(0x58a4, 0x000000ff, 0x00000016), 160 RTW89_DECL_RFK_WM(0x58a4, 0x0001ff00, 0x00000000), 161 RTW89_DECL_RFK_WM(0x58a4, 0x03fe0000, 0x00000000), 162 RTW89_DECL_RFK_WM(0x58a8, 0x000001ff, 0x00000000), 163 RTW89_DECL_RFK_WM(0x58a8, 0x0003fe00, 0x00000000), 164 RTW89_DECL_RFK_WM(0x58a8, 0x07fc0000, 0x00000000), 165 RTW89_DECL_RFK_WM(0x58ac, 0x000001ff, 0x00000000), 166 RTW89_DECL_RFK_WM(0x58ac, 0x0003fe00, 0x00000000), 167 RTW89_DECL_RFK_WM(0x58ac, 0x07fc0000, 0x00000000), 168 RTW89_DECL_RFK_WM(0x58b0, 0xffffffff, 0x00000000), 169 RTW89_DECL_RFK_WM(0x58b4, 0x0000001f, 0x00000000), 170 RTW89_DECL_RFK_WM(0x58b4, 0x00000020, 0x00000000), 171 RTW89_DECL_RFK_WM(0x58b4, 0x000001c0, 0x00000000), 172 RTW89_DECL_RFK_WM(0x58b4, 0x00000200, 0x00000000), 173 RTW89_DECL_RFK_WM(0x58b4, 0x0000f000, 0x00000002), 174 RTW89_DECL_RFK_WM(0x58b4, 0x00ff0000, 0x00000000), 175 RTW89_DECL_RFK_WM(0x58b4, 0x7f000000, 0x0000000a), 176 RTW89_DECL_RFK_WM(0x58b8, 0x0000007f, 0x00000028), 177 RTW89_DECL_RFK_WM(0x58b8, 0x00007f00, 0x00000076), 178 RTW89_DECL_RFK_WM(0x58b8, 0x007f0000, 0x00000000), 179 RTW89_DECL_RFK_WM(0x58b8, 0x7f000000, 0x00000000), 180 RTW89_DECL_RFK_WM(0x58bc, 0x000000ff, 0x0000007f), 181 RTW89_DECL_RFK_WM(0x58bc, 0x0000ff00, 0x00000080), 182 RTW89_DECL_RFK_WM(0x58bc, 0x00030000, 0x00000003), 183 RTW89_DECL_RFK_WM(0x58bc, 0x000c0000, 0x00000001), 184 RTW89_DECL_RFK_WM(0x58bc, 0x00300000, 0x00000002), 185 RTW89_DECL_RFK_WM(0x58bc, 0x00c00000, 0x00000002), 186 RTW89_DECL_RFK_WM(0x58bc, 0x07000000, 0x00000007), 187 RTW89_DECL_RFK_WM(0x58c0, 0x00fe0000, 0x0000003f), 188 RTW89_DECL_RFK_WM(0x58c0, 0xff000000, 0x00000000), 189 RTW89_DECL_RFK_WM(0x58c4, 0x0003ffff, 0x0003ffff), 190 RTW89_DECL_RFK_WM(0x58c4, 0x3ffc0000, 0x00000000), 191 RTW89_DECL_RFK_WM(0x58c4, 0xc0000000, 0x00000000), 192 RTW89_DECL_RFK_WM(0x58c8, 0x00ffffff, 0x00000000), 193 RTW89_DECL_RFK_WM(0x58c8, 0xf0000000, 0x00000000), 194 RTW89_DECL_RFK_WM(0x58cc, 0xffffffff, 0x00000000), 195 RTW89_DECL_RFK_WM(0x58d0, 0x00001fff, 0x00000101), 196 RTW89_DECL_RFK_WM(0x58d0, 0x0001e000, 0x00000004), 197 RTW89_DECL_RFK_WM(0x58d0, 0x03fe0000, 0x00000100), 198 RTW89_DECL_RFK_WM(0x58d0, 0x04000000, 0x00000000), 199 RTW89_DECL_RFK_WM(0x58d4, 0x000000ff, 0x00000000), 200 RTW89_DECL_RFK_WM(0x58d4, 0x0003fe00, 0x000000ff), 201 RTW89_DECL_RFK_WM(0x58d4, 0x07fc0000, 0x00000100), 202 RTW89_DECL_RFK_WM(0x58d8, 0x000001ff, 0x0000016c), 203 RTW89_DECL_RFK_WM(0x58d8, 0x0003fe00, 0x0000005c), 204 RTW89_DECL_RFK_WM(0x58d8, 0x000c0000, 0x00000002), 205 RTW89_DECL_RFK_WM(0x58d8, 0xfff00000, 0x00000800), 206 RTW89_DECL_RFK_WM(0x58dc, 0x000000ff, 0x0000007f), 207 RTW89_DECL_RFK_WM(0x58dc, 0x0000ff00, 0x00000080), 208 RTW89_DECL_RFK_WM(0x58dc, 0x00010000, 0x00000000), 209 RTW89_DECL_RFK_WM(0x58dc, 0x3ff00000, 0x00000000), 210 RTW89_DECL_RFK_WM(0x58dc, 0x80000000, 0x00000001), 211 RTW89_DECL_RFK_WM(0x58f0, 0x000001ff, 0x000001ff), 212 RTW89_DECL_RFK_WM(0x58f0, 0x0003fe00, 0x00000000), 213 RTW89_DECL_RFK_WM(0x58f4, 0x000003ff, 0x00000000), 214 RTW89_DECL_RFK_WM(0x58f4, 0x000ffc00, 0x00000000), 215 RTW89_DECL_RFK_WM(0x58f4, 0x000003ff, 0x00000000), 216 RTW89_DECL_RFK_WM(0x58f4, 0x000ffc00, 0x00000000), 217 }; 218 219 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_txpwr_ctrl_bb_defs_a); 220 221 static const struct rtw89_reg5_def rtw8852a_tssi_txpwr_ctrl_bb_defs_b[] = { 222 RTW89_DECL_RFK_WM(0x7800, 0x000000ff, 0x0000007f), 223 RTW89_DECL_RFK_WM(0x7800, 0x0000ff00, 0x00000080), 224 RTW89_DECL_RFK_WM(0x7800, 0x003f0000, 0x0000003f), 225 RTW89_DECL_RFK_WM(0x7800, 0x10000000, 0x00000000), 226 RTW89_DECL_RFK_WM(0x7800, 0x20000000, 0x00000000), 227 RTW89_DECL_RFK_WM(0x7800, 0xc0000000, 0x00000000), 228 RTW89_DECL_RFK_WM(0x7804, 0xf8000000, 0x00000000), 229 RTW89_DECL_RFK_WM(0x780c, 0x0000007f, 0x00000040), 230 RTW89_DECL_RFK_WM(0x780c, 0x00007f00, 0x00000040), 231 RTW89_DECL_RFK_WM(0x780c, 0x00008000, 0x00000000), 232 RTW89_DECL_RFK_WM(0x780c, 0x0fff0000, 0x00000000), 233 RTW89_DECL_RFK_WM(0x7810, 0x000001ff, 0x00000000), 234 RTW89_DECL_RFK_WM(0x7810, 0x00000200, 0x00000000), 235 RTW89_DECL_RFK_WM(0x7810, 0x0000fc00, 0x00000000), 236 RTW89_DECL_RFK_WM(0x7810, 0x00010000, 0x00000001), 237 RTW89_DECL_RFK_WM(0x7810, 0x00fe0000, 0x00000000), 238 RTW89_DECL_RFK_WM(0x7810, 0x01000000, 0x00000001), 239 RTW89_DECL_RFK_WM(0x7810, 0x06000000, 0x00000000), 240 RTW89_DECL_RFK_WM(0x7810, 0x38000000, 0x00000003), 241 RTW89_DECL_RFK_WM(0x7810, 0x40000000, 0x00000001), 242 RTW89_DECL_RFK_WM(0x7810, 0x80000000, 0x00000000), 243 RTW89_DECL_RFK_WM(0x7814, 0x000003ff, 0x00000000), 244 RTW89_DECL_RFK_WM(0x7814, 0x00000c00, 0x00000000), 245 RTW89_DECL_RFK_WM(0x7814, 0x00001000, 0x00000001), 246 RTW89_DECL_RFK_WM(0x7814, 0x00002000, 0x00000000), 247 RTW89_DECL_RFK_WM(0x7814, 0x00004000, 0x00000001), 248 RTW89_DECL_RFK_WM(0x7814, 0x00038000, 0x00000005), 249 RTW89_DECL_RFK_WM(0x7814, 0x003c0000, 0x00000000), 250 RTW89_DECL_RFK_WM(0x7814, 0x01c00000, 0x00000000), 251 RTW89_DECL_RFK_WM(0x7814, 0x18000000, 0x00000000), 252 RTW89_DECL_RFK_WM(0x7814, 0xe0000000, 0x00000000), 253 RTW89_DECL_RFK_WM(0x7818, 0x000000ff, 0x00000000), 254 RTW89_DECL_RFK_WM(0x7818, 0x0001ff00, 0x00000018), 255 RTW89_DECL_RFK_WM(0x7818, 0x03fe0000, 0x00000016), 256 RTW89_DECL_RFK_WM(0x7818, 0xfc000000, 0x00000000), 257 RTW89_DECL_RFK_WM(0x781c, 0x000003ff, 0x00000280), 258 RTW89_DECL_RFK_WM(0x781c, 0x000ffc00, 0x00000200), 259 RTW89_DECL_RFK_WM(0x781c, 0x00100000, 0x00000000), 260 RTW89_DECL_RFK_WM(0x781c, 0x01e00000, 0x00000008), 261 RTW89_DECL_RFK_WM(0x781c, 0x01e00000, 0x0000000e), 262 RTW89_DECL_RFK_WM(0x781c, 0x1e000000, 0x00000008), 263 RTW89_DECL_RFK_WM(0x781c, 0x1e000000, 0x0000000e), 264 RTW89_DECL_RFK_WM(0x781c, 0x20000000, 0x00000000), 265 RTW89_DECL_RFK_WM(0x7820, 0x00000fff, 0x00000080), 266 RTW89_DECL_RFK_WM(0x7820, 0x0000f000, 0x00000000), 267 RTW89_DECL_RFK_WM(0x7820, 0x001f0000, 0x00000000), 268 RTW89_DECL_RFK_WM(0x7820, 0xffe00000, 0x00000000), 269 RTW89_DECL_RFK_WM(0x7824, 0x0003ffff, 0x000115f2), 270 RTW89_DECL_RFK_WM(0x7824, 0x3ffc0000, 0x00000000), 271 RTW89_DECL_RFK_WM(0x7828, 0x00000fff, 0x00000121), 272 RTW89_DECL_RFK_WM(0x782c, 0x0003ffff, 0x000115f2), 273 RTW89_DECL_RFK_WM(0x782c, 0x3ffc0000, 0x00000000), 274 RTW89_DECL_RFK_WM(0x7830, 0x00000fff, 0x00000121), 275 RTW89_DECL_RFK_WM(0x7834, 0x0003ffff, 0x000115f2), 276 RTW89_DECL_RFK_WM(0x7834, 0x3ffc0000, 0x00000000), 277 RTW89_DECL_RFK_WM(0x7838, 0x00000fff, 0x00000121), 278 RTW89_DECL_RFK_WM(0x783c, 0x0003ffff, 0x000115f2), 279 RTW89_DECL_RFK_WM(0x783c, 0x3ffc0000, 0x00000000), 280 RTW89_DECL_RFK_WM(0x7840, 0x00000fff, 0x00000121), 281 RTW89_DECL_RFK_WM(0x7844, 0x0003ffff, 0x000115f2), 282 RTW89_DECL_RFK_WM(0x7844, 0x3ffc0000, 0x00000000), 283 RTW89_DECL_RFK_WM(0x7848, 0x00000fff, 0x00000121), 284 RTW89_DECL_RFK_WM(0x784c, 0x0003ffff, 0x000115f2), 285 RTW89_DECL_RFK_WM(0x784c, 0x3ffc0000, 0x00000000), 286 RTW89_DECL_RFK_WM(0x7850, 0x00000fff, 0x00000121), 287 RTW89_DECL_RFK_WM(0x7854, 0x0003ffff, 0x000115f2), 288 RTW89_DECL_RFK_WM(0x7854, 0x3ffc0000, 0x00000000), 289 RTW89_DECL_RFK_WM(0x7858, 0x00000fff, 0x00000121), 290 RTW89_DECL_RFK_WM(0x785c, 0x0003ffff, 0x000115f2), 291 RTW89_DECL_RFK_WM(0x785c, 0x3ffc0000, 0x00000000), 292 RTW89_DECL_RFK_WM(0x7860, 0x00000fff, 0x00000121), 293 RTW89_DECL_RFK_WM(0x7828, 0x003ff000, 0x00000000), 294 RTW89_DECL_RFK_WM(0x7828, 0x7fc00000, 0x00000000), 295 RTW89_DECL_RFK_WM(0x7830, 0x003ff000, 0x00000000), 296 RTW89_DECL_RFK_WM(0x7830, 0x7fc00000, 0x00000000), 297 RTW89_DECL_RFK_WM(0x7838, 0x003ff000, 0x00000000), 298 RTW89_DECL_RFK_WM(0x7838, 0x7fc00000, 0x00000000), 299 RTW89_DECL_RFK_WM(0x7840, 0x003ff000, 0x00000000), 300 RTW89_DECL_RFK_WM(0x7840, 0x7fc00000, 0x00000000), 301 RTW89_DECL_RFK_WM(0x7848, 0x003ff000, 0x00000000), 302 RTW89_DECL_RFK_WM(0x7848, 0x7fc00000, 0x00000000), 303 RTW89_DECL_RFK_WM(0x7850, 0x003ff000, 0x00000000), 304 RTW89_DECL_RFK_WM(0x7850, 0x7fc00000, 0x00000000), 305 RTW89_DECL_RFK_WM(0x7858, 0x003ff000, 0x00000000), 306 RTW89_DECL_RFK_WM(0x7858, 0x7fc00000, 0x00000000), 307 RTW89_DECL_RFK_WM(0x7860, 0x003ff000, 0x00000000), 308 RTW89_DECL_RFK_WM(0x7860, 0x7fc00000, 0x00000000), 309 RTW89_DECL_RFK_WM(0x7860, 0x80000000, 0x00000000), 310 RTW89_DECL_RFK_WM(0x7864, 0x000003ff, 0x000001ff), 311 RTW89_DECL_RFK_WM(0x7864, 0x000ffc00, 0x00000200), 312 RTW89_DECL_RFK_WM(0x7864, 0x03f00000, 0x00000000), 313 RTW89_DECL_RFK_WM(0x7864, 0x04000000, 0x00000000), 314 RTW89_DECL_RFK_WM(0x7898, 0xffffffff, 0x00000000), 315 RTW89_DECL_RFK_WM(0x789c, 0xffffffff, 0x00000000), 316 RTW89_DECL_RFK_WM(0x78a0, 0x000000ff, 0x000000fd), 317 RTW89_DECL_RFK_WM(0x78a0, 0x0000ff00, 0x000000e5), 318 RTW89_DECL_RFK_WM(0x78a0, 0x00ff0000, 0x000000cd), 319 RTW89_DECL_RFK_WM(0x78a0, 0xff000000, 0x000000b5), 320 RTW89_DECL_RFK_WM(0x78a4, 0x000000ff, 0x00000016), 321 RTW89_DECL_RFK_WM(0x78a4, 0x0001ff00, 0x00000000), 322 RTW89_DECL_RFK_WM(0x78a4, 0x03fe0000, 0x00000000), 323 RTW89_DECL_RFK_WM(0x78a8, 0x000001ff, 0x00000000), 324 RTW89_DECL_RFK_WM(0x78a8, 0x0003fe00, 0x00000000), 325 RTW89_DECL_RFK_WM(0x78a8, 0x07fc0000, 0x00000000), 326 RTW89_DECL_RFK_WM(0x78ac, 0x000001ff, 0x00000000), 327 RTW89_DECL_RFK_WM(0x78ac, 0x0003fe00, 0x00000000), 328 RTW89_DECL_RFK_WM(0x78ac, 0x07fc0000, 0x00000000), 329 RTW89_DECL_RFK_WM(0x78b0, 0xffffffff, 0x00000000), 330 RTW89_DECL_RFK_WM(0x78b4, 0x0000001f, 0x00000000), 331 RTW89_DECL_RFK_WM(0x78b4, 0x00000020, 0x00000000), 332 RTW89_DECL_RFK_WM(0x78b4, 0x000001c0, 0x00000000), 333 RTW89_DECL_RFK_WM(0x78b4, 0x00000200, 0x00000000), 334 RTW89_DECL_RFK_WM(0x78b4, 0x0000f000, 0x00000002), 335 RTW89_DECL_RFK_WM(0x78b4, 0x00ff0000, 0x00000000), 336 RTW89_DECL_RFK_WM(0x78b4, 0x7f000000, 0x0000000a), 337 RTW89_DECL_RFK_WM(0x78b8, 0x0000007f, 0x00000028), 338 RTW89_DECL_RFK_WM(0x78b8, 0x00007f00, 0x00000076), 339 RTW89_DECL_RFK_WM(0x78b8, 0x007f0000, 0x00000000), 340 RTW89_DECL_RFK_WM(0x78b8, 0x7f000000, 0x00000000), 341 RTW89_DECL_RFK_WM(0x78bc, 0x000000ff, 0x0000007f), 342 RTW89_DECL_RFK_WM(0x78bc, 0x0000ff00, 0x00000080), 343 RTW89_DECL_RFK_WM(0x78bc, 0x00030000, 0x00000003), 344 RTW89_DECL_RFK_WM(0x78bc, 0x000c0000, 0x00000001), 345 RTW89_DECL_RFK_WM(0x78bc, 0x00300000, 0x00000002), 346 RTW89_DECL_RFK_WM(0x78bc, 0x00c00000, 0x00000002), 347 RTW89_DECL_RFK_WM(0x78bc, 0x07000000, 0x00000007), 348 RTW89_DECL_RFK_WM(0x78c0, 0x00fe0000, 0x0000003f), 349 RTW89_DECL_RFK_WM(0x78c0, 0xff000000, 0x00000000), 350 RTW89_DECL_RFK_WM(0x78c4, 0x0003ffff, 0x0003ffff), 351 RTW89_DECL_RFK_WM(0x78c4, 0x3ffc0000, 0x00000000), 352 RTW89_DECL_RFK_WM(0x78c4, 0xc0000000, 0x00000000), 353 RTW89_DECL_RFK_WM(0x78c8, 0x00ffffff, 0x00000000), 354 RTW89_DECL_RFK_WM(0x78c8, 0xf0000000, 0x00000000), 355 RTW89_DECL_RFK_WM(0x78cc, 0xffffffff, 0x00000000), 356 RTW89_DECL_RFK_WM(0x78d0, 0x00001fff, 0x00000101), 357 RTW89_DECL_RFK_WM(0x78d0, 0x0001e000, 0x00000004), 358 RTW89_DECL_RFK_WM(0x78d0, 0x03fe0000, 0x00000100), 359 RTW89_DECL_RFK_WM(0x78d0, 0x04000000, 0x00000000), 360 RTW89_DECL_RFK_WM(0x78d4, 0x000000ff, 0x00000000), 361 RTW89_DECL_RFK_WM(0x78d4, 0x0003fe00, 0x000000ff), 362 RTW89_DECL_RFK_WM(0x78d4, 0x07fc0000, 0x00000100), 363 RTW89_DECL_RFK_WM(0x78d8, 0x000001ff, 0x0000016c), 364 RTW89_DECL_RFK_WM(0x78d8, 0x0003fe00, 0x0000005c), 365 RTW89_DECL_RFK_WM(0x78d8, 0x000c0000, 0x00000002), 366 RTW89_DECL_RFK_WM(0x78d8, 0xfff00000, 0x00000800), 367 RTW89_DECL_RFK_WM(0x78dc, 0x000000ff, 0x0000007f), 368 RTW89_DECL_RFK_WM(0x78dc, 0x0000ff00, 0x00000080), 369 RTW89_DECL_RFK_WM(0x78dc, 0x00010000, 0x00000000), 370 RTW89_DECL_RFK_WM(0x78dc, 0x3ff00000, 0x00000000), 371 RTW89_DECL_RFK_WM(0x78dc, 0x80000000, 0x00000001), 372 RTW89_DECL_RFK_WM(0x78f0, 0x000001ff, 0x000001ff), 373 RTW89_DECL_RFK_WM(0x78f0, 0x0003fe00, 0x00000000), 374 RTW89_DECL_RFK_WM(0x78f4, 0x000003ff, 0x00000000), 375 RTW89_DECL_RFK_WM(0x78f4, 0x000ffc00, 0x00000000), 376 RTW89_DECL_RFK_WM(0x78f4, 0x000003ff, 0x00000000), 377 RTW89_DECL_RFK_WM(0x78f4, 0x000ffc00, 0x00000000), 378 }; 379 380 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_txpwr_ctrl_bb_defs_b); 381 382 static const struct rtw89_reg5_def rtw8852a_tssi_txpwr_ctrl_bb_defs_2g[] = { 383 RTW89_DECL_RFK_WM(0x58d8, 0x000001ff, 0x0000013c), 384 RTW89_DECL_RFK_WM(0x78d8, 0x000001ff, 0x0000013c), 385 }; 386 387 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_txpwr_ctrl_bb_defs_2g); 388 389 static const struct rtw89_reg5_def rtw8852a_tssi_txpwr_ctrl_bb_defs_5g[] = { 390 RTW89_DECL_RFK_WM(0x58d8, 0x000001ff, 0x0000016c), 391 RTW89_DECL_RFK_WM(0x78d8, 0x000001ff, 0x0000016c), 392 }; 393 394 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_txpwr_ctrl_bb_defs_5g); 395 396 static const struct rtw89_reg5_def rtw8852a_tssi_txpwr_ctrl_bb_he_tb_defs_a[] = { 397 RTW89_DECL_RFK_WM(0x58a0, 0xffffffff, 0x000000fc), 398 RTW89_DECL_RFK_WM(0x58e4, 0x0000007f, 0x00000020), 399 }; 400 401 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_txpwr_ctrl_bb_he_tb_defs_a); 402 403 static const struct rtw89_reg5_def rtw8852a_tssi_txpwr_ctrl_bb_he_tb_defs_b[] = { 404 RTW89_DECL_RFK_WM(0x78a0, 0xffffffff, 0x000000fc), 405 RTW89_DECL_RFK_WM(0x78e4, 0x0000007f, 0x00000020), 406 }; 407 408 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_txpwr_ctrl_bb_he_tb_defs_b); 409 410 static const struct rtw89_reg5_def rtw8852a_tssi_dck_defs_a[] = { 411 RTW89_DECL_RFK_WM(0x580c, 0x0fff0000, 0x00000000), 412 RTW89_DECL_RFK_WM(0x5814, 0x00001000, 0x00000001), 413 RTW89_DECL_RFK_WM(0x5814, 0x00002000, 0x00000001), 414 RTW89_DECL_RFK_WM(0x5814, 0x00004000, 0x00000001), 415 RTW89_DECL_RFK_WM(0x5814, 0x00038000, 0x00000005), 416 RTW89_DECL_RFK_WM(0x5814, 0x003c0000, 0x00000003), 417 RTW89_DECL_RFK_WM(0x5814, 0x18000000, 0x00000000), 418 }; 419 420 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_dck_defs_a); 421 422 static const struct rtw89_reg5_def rtw8852a_tssi_dck_defs_b[] = { 423 RTW89_DECL_RFK_WM(0x780c, 0x0fff0000, 0x00000000), 424 RTW89_DECL_RFK_WM(0x7814, 0x00001000, 0x00000001), 425 RTW89_DECL_RFK_WM(0x7814, 0x00002000, 0x00000001), 426 RTW89_DECL_RFK_WM(0x7814, 0x00004000, 0x00000001), 427 RTW89_DECL_RFK_WM(0x7814, 0x00038000, 0x00000005), 428 RTW89_DECL_RFK_WM(0x7814, 0x003c0000, 0x00000003), 429 RTW89_DECL_RFK_WM(0x7814, 0x18000000, 0x00000000), 430 }; 431 432 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_dck_defs_b); 433 434 static const struct rtw89_reg5_def rtw8852a_tssi_dac_gain_tbl_defs_a[] = { 435 RTW89_DECL_RFK_WM(0x58b0, 0x00000fff, 0x00000000), 436 RTW89_DECL_RFK_WM(0x58b0, 0x00000800, 0x00000001), 437 RTW89_DECL_RFK_WM(0x5a00, 0xffffffff, 0x00000000), 438 RTW89_DECL_RFK_WM(0x5a04, 0xffffffff, 0x00000000), 439 RTW89_DECL_RFK_WM(0x5a08, 0xffffffff, 0x00000000), 440 RTW89_DECL_RFK_WM(0x5a0c, 0xffffffff, 0x00000000), 441 RTW89_DECL_RFK_WM(0x5a10, 0xffffffff, 0x00000000), 442 RTW89_DECL_RFK_WM(0x5a14, 0xffffffff, 0x00000000), 443 RTW89_DECL_RFK_WM(0x5a18, 0xffffffff, 0x00000000), 444 RTW89_DECL_RFK_WM(0x5a1c, 0xffffffff, 0x00000000), 445 RTW89_DECL_RFK_WM(0x5a20, 0xffffffff, 0x00000000), 446 RTW89_DECL_RFK_WM(0x5a24, 0xffffffff, 0x00000000), 447 RTW89_DECL_RFK_WM(0x5a28, 0xffffffff, 0x00000000), 448 RTW89_DECL_RFK_WM(0x5a2c, 0xffffffff, 0x00000000), 449 RTW89_DECL_RFK_WM(0x5a30, 0xffffffff, 0x00000000), 450 RTW89_DECL_RFK_WM(0x5a34, 0xffffffff, 0x00000000), 451 RTW89_DECL_RFK_WM(0x5a38, 0xffffffff, 0x00000000), 452 RTW89_DECL_RFK_WM(0x5a3c, 0xffffffff, 0x00000000), 453 RTW89_DECL_RFK_WM(0x5a40, 0xffffffff, 0x00000000), 454 RTW89_DECL_RFK_WM(0x5a44, 0xffffffff, 0x00000000), 455 RTW89_DECL_RFK_WM(0x5a48, 0xffffffff, 0x00000000), 456 RTW89_DECL_RFK_WM(0x5a4c, 0xffffffff, 0x00000000), 457 RTW89_DECL_RFK_WM(0x5a50, 0xffffffff, 0x00000000), 458 RTW89_DECL_RFK_WM(0x5a54, 0xffffffff, 0x00000000), 459 RTW89_DECL_RFK_WM(0x5a58, 0xffffffff, 0x00000000), 460 RTW89_DECL_RFK_WM(0x5a5c, 0xffffffff, 0x00000000), 461 RTW89_DECL_RFK_WM(0x5a60, 0xffffffff, 0x00000000), 462 RTW89_DECL_RFK_WM(0x5a64, 0xffffffff, 0x00000000), 463 RTW89_DECL_RFK_WM(0x5a68, 0xffffffff, 0x00000000), 464 RTW89_DECL_RFK_WM(0x5a6c, 0xffffffff, 0x00000000), 465 RTW89_DECL_RFK_WM(0x5a70, 0xffffffff, 0x00000000), 466 RTW89_DECL_RFK_WM(0x5a74, 0xffffffff, 0x00000000), 467 RTW89_DECL_RFK_WM(0x5a78, 0xffffffff, 0x00000000), 468 RTW89_DECL_RFK_WM(0x5a7c, 0xffffffff, 0x00000000), 469 RTW89_DECL_RFK_WM(0x5a80, 0xffffffff, 0x00000000), 470 RTW89_DECL_RFK_WM(0x5a84, 0xffffffff, 0x00000000), 471 RTW89_DECL_RFK_WM(0x5a88, 0xffffffff, 0x00000000), 472 RTW89_DECL_RFK_WM(0x5a8c, 0xffffffff, 0x00000000), 473 RTW89_DECL_RFK_WM(0x5a90, 0xffffffff, 0x00000000), 474 RTW89_DECL_RFK_WM(0x5a94, 0xffffffff, 0x00000000), 475 RTW89_DECL_RFK_WM(0x5a98, 0xffffffff, 0x00000000), 476 RTW89_DECL_RFK_WM(0x5a9c, 0xffffffff, 0x00000000), 477 RTW89_DECL_RFK_WM(0x5aa0, 0xffffffff, 0x00000000), 478 RTW89_DECL_RFK_WM(0x5aa4, 0xffffffff, 0x00000000), 479 RTW89_DECL_RFK_WM(0x5aa8, 0xffffffff, 0x00000000), 480 RTW89_DECL_RFK_WM(0x5aac, 0xffffffff, 0x00000000), 481 RTW89_DECL_RFK_WM(0x5ab0, 0xffffffff, 0x00000000), 482 RTW89_DECL_RFK_WM(0x5ab4, 0xffffffff, 0x00000000), 483 RTW89_DECL_RFK_WM(0x5ab8, 0xffffffff, 0x00000000), 484 RTW89_DECL_RFK_WM(0x5abc, 0xffffffff, 0x00000000), 485 RTW89_DECL_RFK_WM(0x5ac0, 0xffffffff, 0x00000000), 486 }; 487 488 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_dac_gain_tbl_defs_a); 489 490 static const struct rtw89_reg5_def rtw8852a_tssi_dac_gain_tbl_defs_b[] = { 491 RTW89_DECL_RFK_WM(0x78b0, 0x00000fff, 0x00000000), 492 RTW89_DECL_RFK_WM(0x78b0, 0x00000800, 0x00000001), 493 RTW89_DECL_RFK_WM(0x7a00, 0xffffffff, 0x00000000), 494 RTW89_DECL_RFK_WM(0x7a04, 0xffffffff, 0x00000000), 495 RTW89_DECL_RFK_WM(0x7a08, 0xffffffff, 0x00000000), 496 RTW89_DECL_RFK_WM(0x7a0c, 0xffffffff, 0x00000000), 497 RTW89_DECL_RFK_WM(0x7a10, 0xffffffff, 0x00000000), 498 RTW89_DECL_RFK_WM(0x7a14, 0xffffffff, 0x00000000), 499 RTW89_DECL_RFK_WM(0x7a18, 0xffffffff, 0x00000000), 500 RTW89_DECL_RFK_WM(0x7a1c, 0xffffffff, 0x00000000), 501 RTW89_DECL_RFK_WM(0x7a20, 0xffffffff, 0x00000000), 502 RTW89_DECL_RFK_WM(0x7a24, 0xffffffff, 0x00000000), 503 RTW89_DECL_RFK_WM(0x7a28, 0xffffffff, 0x00000000), 504 RTW89_DECL_RFK_WM(0x7a2c, 0xffffffff, 0x00000000), 505 RTW89_DECL_RFK_WM(0x7a30, 0xffffffff, 0x00000000), 506 RTW89_DECL_RFK_WM(0x7a34, 0xffffffff, 0x00000000), 507 RTW89_DECL_RFK_WM(0x7a38, 0xffffffff, 0x00000000), 508 RTW89_DECL_RFK_WM(0x7a3c, 0xffffffff, 0x00000000), 509 RTW89_DECL_RFK_WM(0x7a40, 0xffffffff, 0x00000000), 510 RTW89_DECL_RFK_WM(0x7a44, 0xffffffff, 0x00000000), 511 RTW89_DECL_RFK_WM(0x7a48, 0xffffffff, 0x00000000), 512 RTW89_DECL_RFK_WM(0x7a4c, 0xffffffff, 0x00000000), 513 RTW89_DECL_RFK_WM(0x7a50, 0xffffffff, 0x00000000), 514 RTW89_DECL_RFK_WM(0x7a54, 0xffffffff, 0x00000000), 515 RTW89_DECL_RFK_WM(0x7a58, 0xffffffff, 0x00000000), 516 RTW89_DECL_RFK_WM(0x7a5c, 0xffffffff, 0x00000000), 517 RTW89_DECL_RFK_WM(0x7a60, 0xffffffff, 0x00000000), 518 RTW89_DECL_RFK_WM(0x7a64, 0xffffffff, 0x00000000), 519 RTW89_DECL_RFK_WM(0x7a68, 0xffffffff, 0x00000000), 520 RTW89_DECL_RFK_WM(0x7a6c, 0xffffffff, 0x00000000), 521 RTW89_DECL_RFK_WM(0x7a70, 0xffffffff, 0x00000000), 522 RTW89_DECL_RFK_WM(0x7a74, 0xffffffff, 0x00000000), 523 RTW89_DECL_RFK_WM(0x7a78, 0xffffffff, 0x00000000), 524 RTW89_DECL_RFK_WM(0x7a7c, 0xffffffff, 0x00000000), 525 RTW89_DECL_RFK_WM(0x7a80, 0xffffffff, 0x00000000), 526 RTW89_DECL_RFK_WM(0x7a84, 0xffffffff, 0x00000000), 527 RTW89_DECL_RFK_WM(0x7a88, 0xffffffff, 0x00000000), 528 RTW89_DECL_RFK_WM(0x7a8c, 0xffffffff, 0x00000000), 529 RTW89_DECL_RFK_WM(0x7a90, 0xffffffff, 0x00000000), 530 RTW89_DECL_RFK_WM(0x7a94, 0xffffffff, 0x00000000), 531 RTW89_DECL_RFK_WM(0x7a98, 0xffffffff, 0x00000000), 532 RTW89_DECL_RFK_WM(0x7a9c, 0xffffffff, 0x00000000), 533 RTW89_DECL_RFK_WM(0x7aa0, 0xffffffff, 0x00000000), 534 RTW89_DECL_RFK_WM(0x7aa4, 0xffffffff, 0x00000000), 535 RTW89_DECL_RFK_WM(0x7aa8, 0xffffffff, 0x00000000), 536 RTW89_DECL_RFK_WM(0x7aac, 0xffffffff, 0x00000000), 537 RTW89_DECL_RFK_WM(0x7ab0, 0xffffffff, 0x00000000), 538 RTW89_DECL_RFK_WM(0x7ab4, 0xffffffff, 0x00000000), 539 RTW89_DECL_RFK_WM(0x7ab8, 0xffffffff, 0x00000000), 540 RTW89_DECL_RFK_WM(0x7abc, 0xffffffff, 0x00000000), 541 RTW89_DECL_RFK_WM(0x7ac0, 0xffffffff, 0x00000000), 542 }; 543 544 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_dac_gain_tbl_defs_b); 545 546 static const struct rtw89_reg5_def rtw8852a_tssi_slope_cal_org_defs_a[] = { 547 RTW89_DECL_RFK_WM(0x581c, 0x00100000, 0x00000000), 548 RTW89_DECL_RFK_WM(0x58cc, 0x00001000, 0x00000001), 549 RTW89_DECL_RFK_WM(0x58cc, 0x00000007, 0x00000000), 550 RTW89_DECL_RFK_WM(0x58cc, 0x00000038, 0x00000001), 551 RTW89_DECL_RFK_WM(0x58cc, 0x000001c0, 0x00000002), 552 RTW89_DECL_RFK_WM(0x58cc, 0x00000e00, 0x00000003), 553 RTW89_DECL_RFK_WM(0x5828, 0x7fc00000, 0x00000040), 554 RTW89_DECL_RFK_WM(0x5898, 0x000000ff, 0x00000040), 555 RTW89_DECL_RFK_WM(0x5830, 0x7fc00000, 0x00000040), 556 RTW89_DECL_RFK_WM(0x5898, 0x0000ff00, 0x00000040), 557 RTW89_DECL_RFK_WM(0x5838, 0x7fc00000, 0x00000040), 558 RTW89_DECL_RFK_WM(0x5898, 0x00ff0000, 0x00000040), 559 RTW89_DECL_RFK_WM(0x5840, 0x7fc00000, 0x00000040), 560 RTW89_DECL_RFK_WM(0x5898, 0xff000000, 0x00000040), 561 RTW89_DECL_RFK_WM(0x5848, 0x7fc00000, 0x00000040), 562 RTW89_DECL_RFK_WM(0x589c, 0x000000ff, 0x00000040), 563 RTW89_DECL_RFK_WM(0x5850, 0x7fc00000, 0x00000040), 564 RTW89_DECL_RFK_WM(0x589c, 0x0000ff00, 0x00000040), 565 RTW89_DECL_RFK_WM(0x5858, 0x7fc00000, 0x00000040), 566 RTW89_DECL_RFK_WM(0x589c, 0x00ff0000, 0x00000040), 567 RTW89_DECL_RFK_WM(0x5860, 0x7fc00000, 0x00000040), 568 RTW89_DECL_RFK_WM(0x589c, 0xff000000, 0x00000040), 569 }; 570 571 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_slope_cal_org_defs_a); 572 573 static const struct rtw89_reg5_def rtw8852a_tssi_slope_cal_org_defs_b[] = { 574 RTW89_DECL_RFK_WM(0x781c, 0x00100000, 0x00000000), 575 RTW89_DECL_RFK_WM(0x78cc, 0x00001000, 0x00000001), 576 RTW89_DECL_RFK_WM(0x78cc, 0x00000007, 0x00000000), 577 RTW89_DECL_RFK_WM(0x78cc, 0x00000038, 0x00000001), 578 RTW89_DECL_RFK_WM(0x78cc, 0x000001c0, 0x00000002), 579 RTW89_DECL_RFK_WM(0x78cc, 0x00000e00, 0x00000003), 580 RTW89_DECL_RFK_WM(0x7828, 0x7fc00000, 0x00000040), 581 RTW89_DECL_RFK_WM(0x7898, 0x000000ff, 0x00000040), 582 RTW89_DECL_RFK_WM(0x7830, 0x7fc00000, 0x00000040), 583 RTW89_DECL_RFK_WM(0x7898, 0x0000ff00, 0x00000040), 584 RTW89_DECL_RFK_WM(0x7838, 0x7fc00000, 0x00000040), 585 RTW89_DECL_RFK_WM(0x7898, 0x00ff0000, 0x00000040), 586 RTW89_DECL_RFK_WM(0x7840, 0x7fc00000, 0x00000040), 587 RTW89_DECL_RFK_WM(0x7898, 0xff000000, 0x00000040), 588 RTW89_DECL_RFK_WM(0x7848, 0x7fc00000, 0x00000040), 589 RTW89_DECL_RFK_WM(0x789c, 0x000000ff, 0x00000040), 590 RTW89_DECL_RFK_WM(0x7850, 0x7fc00000, 0x00000040), 591 RTW89_DECL_RFK_WM(0x789c, 0x0000ff00, 0x00000040), 592 RTW89_DECL_RFK_WM(0x7878, 0x7fc00000, 0x00000040), 593 RTW89_DECL_RFK_WM(0x789c, 0x00ff0000, 0x00000040), 594 RTW89_DECL_RFK_WM(0x7860, 0x7fc00000, 0x00000040), 595 RTW89_DECL_RFK_WM(0x789c, 0xff000000, 0x00000040), 596 }; 597 598 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_slope_cal_org_defs_b); 599 600 static const struct rtw89_reg5_def rtw8852a_tssi_rf_gap_tbl_defs_a[] = { 601 RTW89_DECL_RFK_WM(0x5814, 0x000003ff, 0x00000000), 602 RTW89_DECL_RFK_WM(0x58f4, 0x000003ff, 0x00000000), 603 RTW89_DECL_RFK_WM(0x58f4, 0x000ffc00, 0x00000000), 604 RTW89_DECL_RFK_WM(0x58f8, 0x000003ff, 0x00000000), 605 RTW89_DECL_RFK_WM(0x58f8, 0x000ffc00, 0x00000000), 606 RTW89_DECL_RFK_WM(0x58a4, 0x0001ff00, 0x00000000), 607 RTW89_DECL_RFK_WM(0x58a4, 0x03fe0000, 0x00000000), 608 RTW89_DECL_RFK_WM(0x58a8, 0x000001ff, 0x00000000), 609 RTW89_DECL_RFK_WM(0x58a8, 0x0003fe00, 0x00000000), 610 RTW89_DECL_RFK_WM(0x58a8, 0x07fc0000, 0x00000000), 611 RTW89_DECL_RFK_WM(0x58ac, 0x000001ff, 0x00000000), 612 RTW89_DECL_RFK_WM(0x58ac, 0x0003fe00, 0x00000000), 613 RTW89_DECL_RFK_WM(0x58ac, 0x07fc0000, 0x00000000), 614 }; 615 616 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_rf_gap_tbl_defs_a); 617 618 static const struct rtw89_reg5_def rtw8852a_tssi_rf_gap_tbl_defs_b[] = { 619 RTW89_DECL_RFK_WM(0x7814, 0x000003ff, 0x00000000), 620 RTW89_DECL_RFK_WM(0x78f4, 0x000003ff, 0x00000000), 621 RTW89_DECL_RFK_WM(0x78f4, 0x000ffc00, 0x00000000), 622 RTW89_DECL_RFK_WM(0x78f8, 0x000003ff, 0x00000000), 623 RTW89_DECL_RFK_WM(0x78f8, 0x000ffc00, 0x00000000), 624 RTW89_DECL_RFK_WM(0x78a4, 0x0001ff00, 0x00000000), 625 RTW89_DECL_RFK_WM(0x78a4, 0x03fe0000, 0x00000000), 626 RTW89_DECL_RFK_WM(0x78a8, 0x000001ff, 0x00000000), 627 RTW89_DECL_RFK_WM(0x78a8, 0x0003fe00, 0x00000000), 628 RTW89_DECL_RFK_WM(0x78a8, 0x07fc0000, 0x00000000), 629 RTW89_DECL_RFK_WM(0x78ac, 0x000001ff, 0x00000000), 630 RTW89_DECL_RFK_WM(0x78ac, 0x0003fe00, 0x00000000), 631 RTW89_DECL_RFK_WM(0x78ac, 0x07fc0000, 0x00000000), 632 }; 633 634 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_rf_gap_tbl_defs_b); 635 636 static const struct rtw89_reg5_def rtw8852a_tssi_slope_defs_a[] = { 637 RTW89_DECL_RFK_WM(0x5820, 0x80000000, 0x00000000), 638 RTW89_DECL_RFK_WM(0x5818, 0x10000000, 0x00000000), 639 RTW89_DECL_RFK_WM(0x5814, 0x00000800, 0x00000001), 640 RTW89_DECL_RFK_WM(0x581c, 0x20000000, 0x00000001), 641 RTW89_DECL_RFK_WM(0x5820, 0x0000f000, 0x00000001), 642 RTW89_DECL_RFK_WM(0x581c, 0x000003ff, 0x00000280), 643 RTW89_DECL_RFK_WM(0x581c, 0x000ffc00, 0x00000200), 644 RTW89_DECL_RFK_WM(0x58b8, 0x007f0000, 0x00000000), 645 RTW89_DECL_RFK_WM(0x58b8, 0x7f000000, 0x00000000), 646 RTW89_DECL_RFK_WM(0x58b4, 0x7f000000, 0x0000000a), 647 RTW89_DECL_RFK_WM(0x58b8, 0x0000007f, 0x00000028), 648 RTW89_DECL_RFK_WM(0x58b8, 0x00007f00, 0x00000076), 649 RTW89_DECL_RFK_WM(0x5810, 0x20000000, 0x00000000), 650 RTW89_DECL_RFK_WM(0x5814, 0x20000000, 0x00000001), 651 RTW89_DECL_RFK_WM(0x580c, 0x10000000, 0x00000001), 652 RTW89_DECL_RFK_WM(0x580c, 0x40000000, 0x00000001), 653 RTW89_DECL_RFK_WM(0x5838, 0x003ff000, 0x00000000), 654 RTW89_DECL_RFK_WM(0x5858, 0x003ff000, 0x00000000), 655 RTW89_DECL_RFK_WM(0x5834, 0x0003ffff, 0x000115f2), 656 RTW89_DECL_RFK_WM(0x5834, 0x3ffc0000, 0x00000000), 657 RTW89_DECL_RFK_WM(0x5838, 0x00000fff, 0x00000121), 658 RTW89_DECL_RFK_WM(0x5854, 0x0003ffff, 0x000115f2), 659 RTW89_DECL_RFK_WM(0x5854, 0x3ffc0000, 0x00000000), 660 RTW89_DECL_RFK_WM(0x5858, 0x00000fff, 0x00000121), 661 RTW89_DECL_RFK_WM(0x5824, 0x0003ffff, 0x000115f2), 662 RTW89_DECL_RFK_WM(0x5824, 0x3ffc0000, 0x00000000), 663 RTW89_DECL_RFK_WM(0x5828, 0x00000fff, 0x00000121), 664 RTW89_DECL_RFK_WM(0x582c, 0x0003ffff, 0x000115f2), 665 RTW89_DECL_RFK_WM(0x582c, 0x3ffc0000, 0x00000000), 666 RTW89_DECL_RFK_WM(0x5830, 0x00000fff, 0x00000121), 667 RTW89_DECL_RFK_WM(0x583c, 0x0003ffff, 0x000115f2), 668 RTW89_DECL_RFK_WM(0x583c, 0x3ffc0000, 0x00000000), 669 RTW89_DECL_RFK_WM(0x5840, 0x00000fff, 0x00000121), 670 RTW89_DECL_RFK_WM(0x5844, 0x0003ffff, 0x000115f2), 671 RTW89_DECL_RFK_WM(0x5844, 0x3ffc0000, 0x00000000), 672 RTW89_DECL_RFK_WM(0x5848, 0x00000fff, 0x00000121), 673 RTW89_DECL_RFK_WM(0x584c, 0x0003ffff, 0x000115f2), 674 RTW89_DECL_RFK_WM(0x584c, 0x3ffc0000, 0x00000000), 675 RTW89_DECL_RFK_WM(0x5850, 0x00000fff, 0x00000121), 676 RTW89_DECL_RFK_WM(0x585c, 0x0003ffff, 0x000115f2), 677 RTW89_DECL_RFK_WM(0x585c, 0x3ffc0000, 0x00000000), 678 RTW89_DECL_RFK_WM(0x5860, 0x00000fff, 0x00000121), 679 RTW89_DECL_RFK_WM(0x5828, 0x003ff000, 0x00000000), 680 RTW89_DECL_RFK_WM(0x5830, 0x003ff000, 0x00000000), 681 RTW89_DECL_RFK_WM(0x5840, 0x003ff000, 0x00000000), 682 RTW89_DECL_RFK_WM(0x5848, 0x003ff000, 0x00000000), 683 RTW89_DECL_RFK_WM(0x5850, 0x003ff000, 0x00000000), 684 RTW89_DECL_RFK_WM(0x5860, 0x003ff000, 0x00000000), 685 }; 686 687 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_slope_defs_a); 688 689 static const struct rtw89_reg5_def rtw8852a_tssi_slope_defs_b[] = { 690 RTW89_DECL_RFK_WM(0x7820, 0x80000000, 0x00000000), 691 RTW89_DECL_RFK_WM(0x7818, 0x10000000, 0x00000000), 692 RTW89_DECL_RFK_WM(0x7814, 0x00000800, 0x00000001), 693 RTW89_DECL_RFK_WM(0x781c, 0x20000000, 0x00000001), 694 RTW89_DECL_RFK_WM(0x7820, 0x0000f000, 0x00000001), 695 RTW89_DECL_RFK_WM(0x781c, 0x000003ff, 0x00000280), 696 RTW89_DECL_RFK_WM(0x781c, 0x000ffc00, 0x00000200), 697 RTW89_DECL_RFK_WM(0x78b8, 0x007f0000, 0x00000000), 698 RTW89_DECL_RFK_WM(0x78b8, 0x7f000000, 0x00000000), 699 RTW89_DECL_RFK_WM(0x78b4, 0x7f000000, 0x0000000a), 700 RTW89_DECL_RFK_WM(0x78b8, 0x0000007f, 0x00000028), 701 RTW89_DECL_RFK_WM(0x78b8, 0x00007f00, 0x00000076), 702 RTW89_DECL_RFK_WM(0x7810, 0x20000000, 0x00000000), 703 RTW89_DECL_RFK_WM(0x7814, 0x20000000, 0x00000001), 704 RTW89_DECL_RFK_WM(0x780c, 0x10000000, 0x00000001), 705 RTW89_DECL_RFK_WM(0x780c, 0x40000000, 0x00000001), 706 RTW89_DECL_RFK_WM(0x7838, 0x003ff000, 0x00000000), 707 RTW89_DECL_RFK_WM(0x7858, 0x003ff000, 0x00000000), 708 RTW89_DECL_RFK_WM(0x7834, 0x0003ffff, 0x000115f2), 709 RTW89_DECL_RFK_WM(0x7834, 0x3ffc0000, 0x00000000), 710 RTW89_DECL_RFK_WM(0x7838, 0x00000fff, 0x00000121), 711 RTW89_DECL_RFK_WM(0x7854, 0x0003ffff, 0x000115f2), 712 RTW89_DECL_RFK_WM(0x7854, 0x3ffc0000, 0x00000000), 713 RTW89_DECL_RFK_WM(0x7858, 0x00000fff, 0x00000121), 714 RTW89_DECL_RFK_WM(0x7824, 0x0003ffff, 0x000115f2), 715 RTW89_DECL_RFK_WM(0x7824, 0x3ffc0000, 0x00000000), 716 RTW89_DECL_RFK_WM(0x7828, 0x00000fff, 0x00000121), 717 RTW89_DECL_RFK_WM(0x782c, 0x0003ffff, 0x000115f2), 718 RTW89_DECL_RFK_WM(0x782c, 0x3ffc0000, 0x00000000), 719 RTW89_DECL_RFK_WM(0x7830, 0x00000fff, 0x00000121), 720 RTW89_DECL_RFK_WM(0x783c, 0x0003ffff, 0x000115f2), 721 RTW89_DECL_RFK_WM(0x783c, 0x3ffc0000, 0x00000000), 722 RTW89_DECL_RFK_WM(0x7840, 0x00000fff, 0x00000121), 723 RTW89_DECL_RFK_WM(0x7844, 0x0003ffff, 0x000115f2), 724 RTW89_DECL_RFK_WM(0x7844, 0x3ffc0000, 0x00000000), 725 RTW89_DECL_RFK_WM(0x7848, 0x00000fff, 0x00000121), 726 RTW89_DECL_RFK_WM(0x784c, 0x0003ffff, 0x000115f2), 727 RTW89_DECL_RFK_WM(0x784c, 0x3ffc0000, 0x00000000), 728 RTW89_DECL_RFK_WM(0x7850, 0x00000fff, 0x00000121), 729 RTW89_DECL_RFK_WM(0x785c, 0x0003ffff, 0x000115f2), 730 RTW89_DECL_RFK_WM(0x785c, 0x3ffc0000, 0x00000000), 731 RTW89_DECL_RFK_WM(0x7860, 0x00000fff, 0x00000121), 732 RTW89_DECL_RFK_WM(0x7828, 0x003ff000, 0x00000000), 733 RTW89_DECL_RFK_WM(0x7830, 0x003ff000, 0x00000000), 734 RTW89_DECL_RFK_WM(0x7840, 0x003ff000, 0x00000000), 735 RTW89_DECL_RFK_WM(0x7848, 0x003ff000, 0x00000000), 736 RTW89_DECL_RFK_WM(0x7850, 0x003ff000, 0x00000000), 737 RTW89_DECL_RFK_WM(0x7860, 0x003ff000, 0x00000000), 738 }; 739 740 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_slope_defs_b); 741 742 static const struct rtw89_reg5_def rtw8852a_tssi_track_defs_a[] = { 743 RTW89_DECL_RFK_WM(0x5820, 0x80000000, 0x00000000), 744 RTW89_DECL_RFK_WM(0x5818, 0x18000000, 0x00000000), 745 RTW89_DECL_RFK_WM(0x5814, 0x00000800, 0x00000000), 746 RTW89_DECL_RFK_WM(0x581c, 0x20000000, 0x00000001), 747 RTW89_DECL_RFK_WM(0x5864, 0x000003ff, 0x000001ff), 748 RTW89_DECL_RFK_WM(0x5864, 0x000ffc00, 0x00000200), 749 RTW89_DECL_RFK_WM(0x5820, 0x00000fff, 0x00000080), 750 RTW89_DECL_RFK_WM(0x5814, 0x01000000, 0x00000000), 751 }; 752 753 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_track_defs_a); 754 755 static const struct rtw89_reg5_def rtw8852a_tssi_track_defs_b[] = { 756 RTW89_DECL_RFK_WM(0x7820, 0x80000000, 0x00000000), 757 RTW89_DECL_RFK_WM(0x7818, 0x18000000, 0x00000000), 758 RTW89_DECL_RFK_WM(0x7814, 0x00000800, 0x00000000), 759 RTW89_DECL_RFK_WM(0x781c, 0x20000000, 0x00000001), 760 RTW89_DECL_RFK_WM(0x7864, 0x000003ff, 0x000001ff), 761 RTW89_DECL_RFK_WM(0x7864, 0x000ffc00, 0x00000200), 762 RTW89_DECL_RFK_WM(0x7820, 0x00000fff, 0x00000080), 763 RTW89_DECL_RFK_WM(0x7814, 0x01000000, 0x00000000), 764 }; 765 766 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_track_defs_b); 767 768 static const struct rtw89_reg5_def rtw8852a_tssi_txagc_ofst_mv_avg_defs_a[] = { 769 RTW89_DECL_RFK_WM(0x58e4, 0x00004000, 0x00000000), 770 RTW89_DECL_RFK_WM(0x58e4, 0x00004000, 0x00000001), 771 RTW89_DECL_RFK_WM(0x58e4, 0x00004000, 0x00000000), 772 RTW89_DECL_RFK_WM(0x58e4, 0x00008000, 0x00000000), 773 RTW89_DECL_RFK_WM(0x58e4, 0x000f0000, 0x00000000), 774 }; 775 776 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_txagc_ofst_mv_avg_defs_a); 777 778 static const struct rtw89_reg5_def rtw8852a_tssi_txagc_ofst_mv_avg_defs_b[] = { 779 RTW89_DECL_RFK_WM(0x78e4, 0x00004000, 0x00000000), 780 RTW89_DECL_RFK_WM(0x78e4, 0x00004000, 0x00000001), 781 RTW89_DECL_RFK_WM(0x78e4, 0x00004000, 0x00000000), 782 RTW89_DECL_RFK_WM(0x78e4, 0x00008000, 0x00000000), 783 RTW89_DECL_RFK_WM(0x78e4, 0x000f0000, 0x00000000), 784 }; 785 786 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_txagc_ofst_mv_avg_defs_b); 787 788 static const struct rtw89_reg5_def rtw8852a_tssi_pak_defs_a_2g[] = { 789 RTW89_DECL_RFK_WM(0x5814, 0x000003ff, 0x00000000), 790 RTW89_DECL_RFK_WM(0x58f4, 0x000003ff, 0x00000000), 791 RTW89_DECL_RFK_WM(0x58f4, 0x000ffc00, 0x00000000), 792 RTW89_DECL_RFK_WM(0x58f8, 0x000003ff, 0x00000000), 793 RTW89_DECL_RFK_WM(0x58f8, 0x000ffc00, 0x00000000), 794 RTW89_DECL_RFK_WM(0x58a4, 0x0001ff00, 0x00000000), 795 RTW89_DECL_RFK_WM(0x58a4, 0x03fe0000, 0x000001d0), 796 RTW89_DECL_RFK_WM(0x58a8, 0x000001ff, 0x00000000), 797 RTW89_DECL_RFK_WM(0x58a8, 0x0003fe00, 0x000001e8), 798 RTW89_DECL_RFK_WM(0x58a8, 0x07fc0000, 0x00000000), 799 RTW89_DECL_RFK_WM(0x58ac, 0x000001ff, 0x0000000b), 800 RTW89_DECL_RFK_WM(0x58ac, 0x0003fe00, 0x00000000), 801 RTW89_DECL_RFK_WM(0x58ac, 0x07fc0000, 0x00000088), 802 }; 803 804 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_pak_defs_a_2g); 805 806 static const struct rtw89_reg5_def rtw8852a_tssi_pak_defs_a_5g_1[] = { 807 RTW89_DECL_RFK_WM(0x5814, 0x000003ff, 0x00000000), 808 RTW89_DECL_RFK_WM(0x58f4, 0x000003ff, 0x00000000), 809 RTW89_DECL_RFK_WM(0x58f4, 0x000ffc00, 0x00000000), 810 RTW89_DECL_RFK_WM(0x58f8, 0x000003ff, 0x00000000), 811 RTW89_DECL_RFK_WM(0x58f8, 0x000ffc00, 0x00000000), 812 RTW89_DECL_RFK_WM(0x58a4, 0x0001ff00, 0x00000000), 813 RTW89_DECL_RFK_WM(0x58a4, 0x03fe0000, 0x000001d7), 814 RTW89_DECL_RFK_WM(0x58a8, 0x000001ff, 0x00000000), 815 RTW89_DECL_RFK_WM(0x58a8, 0x0003fe00, 0x000001fb), 816 RTW89_DECL_RFK_WM(0x58a8, 0x07fc0000, 0x00000000), 817 RTW89_DECL_RFK_WM(0x58ac, 0x000001ff, 0x00000000), 818 RTW89_DECL_RFK_WM(0x58ac, 0x0003fe00, 0x00000005), 819 RTW89_DECL_RFK_WM(0x58ac, 0x07fc0000, 0x0000007c), 820 }; 821 822 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_pak_defs_a_5g_1); 823 824 static const struct rtw89_reg5_def rtw8852a_tssi_pak_defs_a_5g_3[] = { 825 RTW89_DECL_RFK_WM(0x5814, 0x000003ff, 0x00000000), 826 RTW89_DECL_RFK_WM(0x58f4, 0x000003ff, 0x00000000), 827 RTW89_DECL_RFK_WM(0x58f4, 0x000ffc00, 0x00000000), 828 RTW89_DECL_RFK_WM(0x58f8, 0x000003ff, 0x00000000), 829 RTW89_DECL_RFK_WM(0x58f8, 0x000ffc00, 0x00000000), 830 RTW89_DECL_RFK_WM(0x58a4, 0x0001ff00, 0x00000000), 831 RTW89_DECL_RFK_WM(0x58a4, 0x03fe0000, 0x000001d8), 832 RTW89_DECL_RFK_WM(0x58a8, 0x000001ff, 0x00000000), 833 RTW89_DECL_RFK_WM(0x58a8, 0x0003fe00, 0x000001fc), 834 RTW89_DECL_RFK_WM(0x58a8, 0x07fc0000, 0x00000000), 835 RTW89_DECL_RFK_WM(0x58ac, 0x000001ff, 0x00000000), 836 RTW89_DECL_RFK_WM(0x58ac, 0x0003fe00, 0x00000006), 837 RTW89_DECL_RFK_WM(0x58ac, 0x07fc0000, 0x00000078), 838 }; 839 840 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_pak_defs_a_5g_3); 841 842 static const struct rtw89_reg5_def rtw8852a_tssi_pak_defs_a_5g_4[] = { 843 RTW89_DECL_RFK_WM(0x5814, 0x000003ff, 0x00000000), 844 RTW89_DECL_RFK_WM(0x58f4, 0x000003ff, 0x00000000), 845 RTW89_DECL_RFK_WM(0x58f4, 0x000ffc00, 0x00000000), 846 RTW89_DECL_RFK_WM(0x58f8, 0x000003ff, 0x00000000), 847 RTW89_DECL_RFK_WM(0x58f8, 0x000ffc00, 0x00000000), 848 RTW89_DECL_RFK_WM(0x58a4, 0x0001ff00, 0x00000000), 849 RTW89_DECL_RFK_WM(0x58a4, 0x03fe0000, 0x000001e5), 850 RTW89_DECL_RFK_WM(0x58a8, 0x000001ff, 0x00000000), 851 RTW89_DECL_RFK_WM(0x58a8, 0x0003fe00, 0x0000000a), 852 RTW89_DECL_RFK_WM(0x58a8, 0x07fc0000, 0x00000000), 853 RTW89_DECL_RFK_WM(0x58ac, 0x000001ff, 0x00000000), 854 RTW89_DECL_RFK_WM(0x58ac, 0x0003fe00, 0x00000011), 855 RTW89_DECL_RFK_WM(0x58ac, 0x07fc0000, 0x00000075), 856 }; 857 858 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_pak_defs_a_5g_4); 859 860 static const struct rtw89_reg5_def rtw8852a_tssi_pak_defs_b_2g[] = { 861 RTW89_DECL_RFK_WM(0x7814, 0x000003ff, 0x00000000), 862 RTW89_DECL_RFK_WM(0x78f4, 0x000003ff, 0x00000000), 863 RTW89_DECL_RFK_WM(0x78f4, 0x000ffc00, 0x00000000), 864 RTW89_DECL_RFK_WM(0x78f8, 0x000003ff, 0x00000000), 865 RTW89_DECL_RFK_WM(0x78f8, 0x000ffc00, 0x00000000), 866 RTW89_DECL_RFK_WM(0x78a4, 0x0001ff00, 0x00000000), 867 RTW89_DECL_RFK_WM(0x78a4, 0x03fe0000, 0x000001cc), 868 RTW89_DECL_RFK_WM(0x78a8, 0x000001ff, 0x00000000), 869 RTW89_DECL_RFK_WM(0x78a8, 0x0003fe00, 0x000001e2), 870 RTW89_DECL_RFK_WM(0x78a8, 0x07fc0000, 0x00000000), 871 RTW89_DECL_RFK_WM(0x78ac, 0x000001ff, 0x00000005), 872 RTW89_DECL_RFK_WM(0x78ac, 0x0003fe00, 0x00000000), 873 RTW89_DECL_RFK_WM(0x78ac, 0x07fc0000, 0x00000089), 874 }; 875 876 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_pak_defs_b_2g); 877 878 static const struct rtw89_reg5_def rtw8852a_tssi_pak_defs_b_5g_1[] = { 879 RTW89_DECL_RFK_WM(0x7814, 0x000003ff, 0x00000000), 880 RTW89_DECL_RFK_WM(0x78f4, 0x000003ff, 0x00000000), 881 RTW89_DECL_RFK_WM(0x78f4, 0x000ffc00, 0x00000000), 882 RTW89_DECL_RFK_WM(0x78f8, 0x000003ff, 0x00000000), 883 RTW89_DECL_RFK_WM(0x78f8, 0x000ffc00, 0x00000000), 884 RTW89_DECL_RFK_WM(0x78a4, 0x0001ff00, 0x00000000), 885 RTW89_DECL_RFK_WM(0x78a4, 0x03fe0000, 0x000001d5), 886 RTW89_DECL_RFK_WM(0x78a8, 0x000001ff, 0x00000000), 887 RTW89_DECL_RFK_WM(0x78a8, 0x0003fe00, 0x000001fc), 888 RTW89_DECL_RFK_WM(0x78a8, 0x07fc0000, 0x00000000), 889 RTW89_DECL_RFK_WM(0x78ac, 0x000001ff, 0x00000000), 890 RTW89_DECL_RFK_WM(0x78ac, 0x0003fe00, 0x00000005), 891 RTW89_DECL_RFK_WM(0x78ac, 0x07fc0000, 0x00000079), 892 }; 893 894 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_pak_defs_b_5g_1); 895 896 static const struct rtw89_reg5_def rtw8852a_tssi_pak_defs_b_5g_3[] = { 897 RTW89_DECL_RFK_WM(0x7814, 0x000003ff, 0x00000000), 898 RTW89_DECL_RFK_WM(0x78f4, 0x000003ff, 0x00000000), 899 RTW89_DECL_RFK_WM(0x78f4, 0x000ffc00, 0x00000000), 900 RTW89_DECL_RFK_WM(0x78f8, 0x000003ff, 0x00000000), 901 RTW89_DECL_RFK_WM(0x78f8, 0x000ffc00, 0x00000000), 902 RTW89_DECL_RFK_WM(0x78a4, 0x0001ff00, 0x00000000), 903 RTW89_DECL_RFK_WM(0x78a4, 0x03fe0000, 0x000001dc), 904 RTW89_DECL_RFK_WM(0x78a8, 0x000001ff, 0x00000000), 905 RTW89_DECL_RFK_WM(0x78a8, 0x0003fe00, 0x00000002), 906 RTW89_DECL_RFK_WM(0x78a8, 0x07fc0000, 0x00000000), 907 RTW89_DECL_RFK_WM(0x78ac, 0x000001ff, 0x00000000), 908 RTW89_DECL_RFK_WM(0x78ac, 0x0003fe00, 0x0000000b), 909 RTW89_DECL_RFK_WM(0x78ac, 0x07fc0000, 0x00000076), 910 }; 911 912 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_pak_defs_b_5g_3); 913 914 static const struct rtw89_reg5_def rtw8852a_tssi_pak_defs_b_5g_4[] = { 915 RTW89_DECL_RFK_WM(0x7814, 0x000003ff, 0x00000000), 916 RTW89_DECL_RFK_WM(0x78f4, 0x000003ff, 0x00000000), 917 RTW89_DECL_RFK_WM(0x78f4, 0x000ffc00, 0x00000000), 918 RTW89_DECL_RFK_WM(0x78f8, 0x000003ff, 0x00000000), 919 RTW89_DECL_RFK_WM(0x78f8, 0x000ffc00, 0x00000000), 920 RTW89_DECL_RFK_WM(0x78a4, 0x0001ff00, 0x00000000), 921 RTW89_DECL_RFK_WM(0x78a4, 0x03fe0000, 0x000001f0), 922 RTW89_DECL_RFK_WM(0x78a8, 0x000001ff, 0x00000000), 923 RTW89_DECL_RFK_WM(0x78a8, 0x0003fe00, 0x00000016), 924 RTW89_DECL_RFK_WM(0x78a8, 0x07fc0000, 0x00000000), 925 RTW89_DECL_RFK_WM(0x78ac, 0x000001ff, 0x00000000), 926 RTW89_DECL_RFK_WM(0x78ac, 0x0003fe00, 0x0000001f), 927 RTW89_DECL_RFK_WM(0x78ac, 0x07fc0000, 0x00000072), 928 }; 929 930 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_pak_defs_b_5g_4); 931 932 static const struct rtw89_reg5_def rtw8852a_tssi_enable_defs_a[] = { 933 RTW89_DECL_RFK_WRF(0x0, 0x55, 0x00080, 0x00001), 934 RTW89_DECL_RFK_WM(0x5818, 0x000000ff, 0x000000c0), 935 RTW89_DECL_RFK_WM(0x5818, 0x10000000, 0x00000000), 936 RTW89_DECL_RFK_WM(0x5818, 0x10000000, 0x00000001), 937 RTW89_DECL_RFK_WM(0x5820, 0x80000000, 0x00000000), 938 RTW89_DECL_RFK_WM(0x5820, 0x80000000, 0x00000001), 939 RTW89_DECL_RFK_WM(0x5818, 0x18000000, 0x00000003), 940 }; 941 942 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_enable_defs_a); 943 944 static const struct rtw89_reg5_def rtw8852a_tssi_enable_defs_b[] = { 945 RTW89_DECL_RFK_WRF(0x1, 0x55, 0x00080, 0x00001), 946 RTW89_DECL_RFK_WM(0x7818, 0x000000ff, 0x000000c0), 947 RTW89_DECL_RFK_WM(0x7818, 0x10000000, 0x00000000), 948 RTW89_DECL_RFK_WM(0x7818, 0x10000000, 0x00000001), 949 RTW89_DECL_RFK_WM(0x7820, 0x80000000, 0x00000000), 950 RTW89_DECL_RFK_WM(0x7820, 0x80000000, 0x00000001), 951 RTW89_DECL_RFK_WM(0x7818, 0x18000000, 0x00000003), 952 }; 953 954 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_enable_defs_b); 955 956 static const struct rtw89_reg5_def rtw8852a_tssi_disable_defs[] = { 957 RTW89_DECL_RFK_WM(0x5820, 0x80000000, 0x00000000), 958 RTW89_DECL_RFK_WM(0x5818, 0x18000000, 0x00000001), 959 RTW89_DECL_RFK_WM(0x7820, 0x80000000, 0x00000000), 960 RTW89_DECL_RFK_WM(0x7818, 0x18000000, 0x00000001), 961 }; 962 963 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_disable_defs); 964 965 static const struct rtw89_reg5_def rtw8852a_tssi_enable_defs_ab[] = { 966 RTW89_DECL_RFK_WM(0x5820, 0x80000000, 0x0), 967 RTW89_DECL_RFK_WM(0x5820, 0x80000000, 0x1), 968 RTW89_DECL_RFK_WM(0x5818, 0x18000000, 0x3), 969 RTW89_DECL_RFK_WM(0x7820, 0x80000000, 0x0), 970 RTW89_DECL_RFK_WM(0x7820, 0x80000000, 0x1), 971 RTW89_DECL_RFK_WM(0x7818, 0x18000000, 0x3), 972 }; 973 974 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_enable_defs_ab); 975 976 static const struct rtw89_reg5_def rtw8852a_tssi_tracking_defs[] = { 977 RTW89_DECL_RFK_WM(0x5800, 0x10000000, 0x00000000), 978 RTW89_DECL_RFK_WM(0x58f0, 0x00080000, 0x00000000), 979 RTW89_DECL_RFK_WM(0x5804, 0xf8000000, 0x00000000), 980 RTW89_DECL_RFK_WM(0x58f0, 0xfff00000, 0x00000400), 981 RTW89_DECL_RFK_WM(0x7800, 0x10000000, 0x00000000), 982 RTW89_DECL_RFK_WM(0x78f0, 0x00080000, 0x00000000), 983 RTW89_DECL_RFK_WM(0x7804, 0xf8000000, 0x00000000), 984 RTW89_DECL_RFK_WM(0x78f0, 0xfff00000, 0x00000400), 985 }; 986 987 RTW89_DECLARE_RFK_TBL(rtw8852a_tssi_tracking_defs); 988 989 static const struct rtw89_reg5_def rtw8852a_rfk_afe_init_defs[] = { 990 RTW89_DECL_RFK_WC(0x12ec, 0x00008000), 991 RTW89_DECL_RFK_WS(0x12ec, 0x00008000), 992 RTW89_DECL_RFK_WC(0x5e00, 0x00000001), 993 RTW89_DECL_RFK_WS(0x5e00, 0x00000001), 994 RTW89_DECL_RFK_WC(0x32ec, 0x00008000), 995 RTW89_DECL_RFK_WS(0x32ec, 0x00008000), 996 RTW89_DECL_RFK_WC(0x7e00, 0x00000001), 997 RTW89_DECL_RFK_WS(0x7e00, 0x00000001), 998 }; 999 1000 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_afe_init_defs); 1001 1002 static const struct rtw89_reg5_def rtw8852a_rfk_dack_reload_defs_a[] = { 1003 RTW89_DECL_RFK_WS(0x5e00, 0x00000008), 1004 RTW89_DECL_RFK_WS(0x5e50, 0x00000008), 1005 RTW89_DECL_RFK_WS(0x5e10, 0x80000000), 1006 RTW89_DECL_RFK_WS(0x5e60, 0x80000000), 1007 RTW89_DECL_RFK_WC(0x5e00, 0x00000008), 1008 RTW89_DECL_RFK_WC(0x5e50, 0x00000008), 1009 }; 1010 1011 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dack_reload_defs_a); 1012 1013 static const struct rtw89_reg5_def rtw8852a_rfk_dack_reload_defs_b[] = { 1014 RTW89_DECL_RFK_WS(0x7e00, 0x00000008), 1015 RTW89_DECL_RFK_WS(0x7e50, 0x00000008), 1016 RTW89_DECL_RFK_WS(0x7e10, 0x80000000), 1017 RTW89_DECL_RFK_WS(0x7e60, 0x80000000), 1018 RTW89_DECL_RFK_WC(0x7e00, 0x00000008), 1019 RTW89_DECL_RFK_WC(0x7e50, 0x00000008), 1020 }; 1021 1022 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dack_reload_defs_b); 1023 1024 static const struct rtw89_reg5_def rtw8852a_rfk_check_addc_defs_a[] = { 1025 RTW89_DECL_RFK_WC(0x20f4, 0x01000000), 1026 RTW89_DECL_RFK_WS(0x20f8, 0x80000000), 1027 RTW89_DECL_RFK_WM(0x20f0, 0x00ff0000, 0x00000001), 1028 RTW89_DECL_RFK_WM(0x20f0, 0x00000f00, 0x00000002), 1029 RTW89_DECL_RFK_WC(0x20f0, 0x0000000f), 1030 RTW89_DECL_RFK_WM(0x20f0, 0x000000c0, 0x00000002), 1031 }; 1032 1033 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_check_addc_defs_a); 1034 1035 static const struct rtw89_reg5_def rtw8852a_rfk_check_addc_defs_b[] = { 1036 RTW89_DECL_RFK_WC(0x20f4, 0x01000000), 1037 RTW89_DECL_RFK_WS(0x20f8, 0x80000000), 1038 RTW89_DECL_RFK_WM(0x20f0, 0x00ff0000, 0x00000001), 1039 RTW89_DECL_RFK_WM(0x20f0, 0x00000f00, 0x00000002), 1040 RTW89_DECL_RFK_WC(0x20f0, 0x0000000f), 1041 RTW89_DECL_RFK_WM(0x20f0, 0x000000c0, 0x00000003), 1042 }; 1043 1044 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_check_addc_defs_b); 1045 1046 static const struct rtw89_reg5_def rtw8852a_rfk_addck_reset_defs_a[] = { 1047 RTW89_DECL_RFK_WC(0x12d8, 0x00000030), 1048 RTW89_DECL_RFK_WC(0x32d8, 0x00000030), 1049 RTW89_DECL_RFK_WS(0x12b8, 0x40000000), 1050 RTW89_DECL_RFK_WC(0x032c, 0x40000000), 1051 RTW89_DECL_RFK_WC(0x032c, 0x00400000), 1052 RTW89_DECL_RFK_WS(0x032c, 0x00400000), 1053 RTW89_DECL_RFK_WS(0x030c, 0x0f000000), 1054 RTW89_DECL_RFK_WC(0x032c, 0x00010000), 1055 RTW89_DECL_RFK_WS(0x12dc, 0x00000002), 1056 RTW89_DECL_RFK_WM(0x030c, 0x0f000000, 0x00000003), 1057 }; 1058 1059 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_addck_reset_defs_a); 1060 1061 static const struct rtw89_reg5_def rtw8852a_rfk_addck_trigger_defs_a[] = { 1062 RTW89_DECL_RFK_WS(0x12d8, 0x000000c0), 1063 RTW89_DECL_RFK_WS(0x12d8, 0x00000800), 1064 RTW89_DECL_RFK_WC(0x12d8, 0x00000800), 1065 RTW89_DECL_RFK_DELAY(1), 1066 RTW89_DECL_RFK_WM(0x12d8, 0x00000300, 0x00000001), 1067 }; 1068 1069 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_addck_trigger_defs_a); 1070 1071 static const struct rtw89_reg5_def rtw8852a_rfk_addck_restore_defs_a[] = { 1072 RTW89_DECL_RFK_WC(0x12dc, 0x00000002), 1073 RTW89_DECL_RFK_WS(0x032c, 0x00010000), 1074 RTW89_DECL_RFK_WM(0x030c, 0x0f000000, 0x0000000c), 1075 RTW89_DECL_RFK_WS(0x032c, 0x40000000), 1076 RTW89_DECL_RFK_WC(0x12b8, 0x40000000), 1077 }; 1078 1079 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_addck_restore_defs_a); 1080 1081 static const struct rtw89_reg5_def rtw8852a_rfk_addck_reset_defs_b[] = { 1082 RTW89_DECL_RFK_WS(0x32b8, 0x40000000), 1083 RTW89_DECL_RFK_WC(0x032c, 0x40000000), 1084 RTW89_DECL_RFK_WC(0x032c, 0x00400000), 1085 RTW89_DECL_RFK_WS(0x032c, 0x00400000), 1086 RTW89_DECL_RFK_WS(0x030c, 0x0f000000), 1087 RTW89_DECL_RFK_WC(0x032c, 0x00010000), 1088 RTW89_DECL_RFK_WS(0x32dc, 0x00000002), 1089 RTW89_DECL_RFK_WM(0x030c, 0x0f000000, 0x00000003), 1090 }; 1091 1092 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_addck_reset_defs_b); 1093 1094 static const struct rtw89_reg5_def rtw8852a_rfk_addck_trigger_defs_b[] = { 1095 RTW89_DECL_RFK_WS(0x32d8, 0x000000c0), 1096 RTW89_DECL_RFK_WS(0x32d8, 0x00000800), 1097 RTW89_DECL_RFK_WC(0x32d8, 0x00000800), 1098 RTW89_DECL_RFK_DELAY(1), 1099 RTW89_DECL_RFK_WM(0x32d8, 0x00000300, 0x00000001), 1100 }; 1101 1102 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_addck_trigger_defs_b); 1103 1104 static const struct rtw89_reg5_def rtw8852a_rfk_addck_restore_defs_b[] = { 1105 RTW89_DECL_RFK_WC(0x32dc, 0x00000002), 1106 RTW89_DECL_RFK_WS(0x032c, 0x00010000), 1107 RTW89_DECL_RFK_WM(0x030c, 0x0f000000, 0x0000000c), 1108 RTW89_DECL_RFK_WS(0x032c, 0x40000000), 1109 RTW89_DECL_RFK_WC(0x32b8, 0x40000000), 1110 }; 1111 1112 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_addck_restore_defs_b); 1113 1114 static const struct rtw89_reg5_def rtw8852a_rfk_check_dadc_defs_f_a[] = { 1115 RTW89_DECL_RFK_WC(0x032c, 0x40000000), 1116 RTW89_DECL_RFK_WS(0x030c, 0x0f000000), 1117 RTW89_DECL_RFK_WM(0x030c, 0x0f000000, 0x00000003), 1118 RTW89_DECL_RFK_WC(0x032c, 0x00010000), 1119 RTW89_DECL_RFK_WS(0x12dc, 0x00000001), 1120 RTW89_DECL_RFK_WS(0x12e8, 0x00000004), 1121 RTW89_DECL_RFK_WRF(0x0, 0x8f, 0x02000, 0x00001), 1122 }; 1123 1124 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_check_dadc_defs_f_a); 1125 1126 static const struct rtw89_reg5_def rtw8852a_rfk_check_dadc_defs_f_b[] = { 1127 RTW89_DECL_RFK_WC(0x032c, 0x40000000), 1128 RTW89_DECL_RFK_WS(0x030c, 0x0f000000), 1129 RTW89_DECL_RFK_WM(0x030c, 0x0f000000, 0x00000003), 1130 RTW89_DECL_RFK_WC(0x032c, 0x00010000), 1131 RTW89_DECL_RFK_WS(0x32dc, 0x00000001), 1132 RTW89_DECL_RFK_WS(0x32e8, 0x00000004), 1133 RTW89_DECL_RFK_WRF(0x1, 0x8f, 0x02000, 0x00001), 1134 }; 1135 1136 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_check_dadc_defs_f_b); 1137 1138 static const struct rtw89_reg5_def rtw8852a_rfk_check_dadc_defs_r_a[] = { 1139 RTW89_DECL_RFK_WC(0x12dc, 0x00000001), 1140 RTW89_DECL_RFK_WC(0x12e8, 0x00000004), 1141 RTW89_DECL_RFK_WRF(0x0, 0x8f, 0x02000, 0x00000), 1142 RTW89_DECL_RFK_WM(0x032c, 0x00010000, 0x00000001), 1143 }; 1144 1145 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_check_dadc_defs_r_a); 1146 1147 static const struct rtw89_reg5_def rtw8852a_rfk_check_dadc_defs_r_b[] = { 1148 RTW89_DECL_RFK_WC(0x32dc, 0x00000001), 1149 RTW89_DECL_RFK_WC(0x32e8, 0x00000004), 1150 RTW89_DECL_RFK_WRF(0x1, 0x8f, 0x02000, 0x00000), 1151 RTW89_DECL_RFK_WM(0x032c, 0x00010000, 0x00000001), 1152 }; 1153 1154 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_check_dadc_defs_r_b); 1155 1156 static const struct rtw89_reg5_def rtw8852a_rfk_dack_defs_f_a[] = { 1157 RTW89_DECL_RFK_WS(0x5e00, 0x00000008), 1158 RTW89_DECL_RFK_WC(0x5e10, 0x80000000), 1159 RTW89_DECL_RFK_WS(0x5e50, 0x00000008), 1160 RTW89_DECL_RFK_WC(0x5e60, 0x80000000), 1161 RTW89_DECL_RFK_WS(0x12a0, 0x00008000), 1162 RTW89_DECL_RFK_WM(0x12a0, 0x00007000, 0x00000003), 1163 RTW89_DECL_RFK_WS(0x12b8, 0x40000000), 1164 RTW89_DECL_RFK_WS(0x030c, 0x10000000), 1165 RTW89_DECL_RFK_WC(0x032c, 0x80000000), 1166 RTW89_DECL_RFK_WS(0x12e0, 0x00010000), 1167 RTW89_DECL_RFK_WS(0x12e4, 0x0c000000), 1168 RTW89_DECL_RFK_WM(0x5e00, 0x03ff0000, 0x00000030), 1169 RTW89_DECL_RFK_WM(0x5e50, 0x03ff0000, 0x00000030), 1170 RTW89_DECL_RFK_WC(0x5e00, 0x0c000000), 1171 RTW89_DECL_RFK_WC(0x5e50, 0x0c000000), 1172 RTW89_DECL_RFK_WC(0x5e0c, 0x00000008), 1173 RTW89_DECL_RFK_WC(0x5e5c, 0x00000008), 1174 RTW89_DECL_RFK_WS(0x5e0c, 0x00000001), 1175 RTW89_DECL_RFK_WS(0x5e5c, 0x00000001), 1176 RTW89_DECL_RFK_DELAY(1), 1177 }; 1178 1179 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dack_defs_f_a); 1180 1181 static const struct rtw89_reg5_def rtw8852a_rfk_dack_defs_m_a[] = { 1182 RTW89_DECL_RFK_WC(0x12e4, 0x0c000000), 1183 RTW89_DECL_RFK_WS(0x5e0c, 0x00000008), 1184 RTW89_DECL_RFK_WS(0x5e5c, 0x00000008), 1185 RTW89_DECL_RFK_DELAY(1), 1186 }; 1187 1188 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dack_defs_m_a); 1189 1190 static const struct rtw89_reg5_def rtw8852a_rfk_dack_defs_r_a[] = { 1191 RTW89_DECL_RFK_WC(0x5e0c, 0x00000001), 1192 RTW89_DECL_RFK_WC(0x5e5c, 0x00000001), 1193 RTW89_DECL_RFK_WC(0x12e0, 0x00010000), 1194 RTW89_DECL_RFK_WC(0x12a0, 0x00008000), 1195 RTW89_DECL_RFK_WS(0x12a0, 0x00007000), 1196 }; 1197 1198 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dack_defs_r_a); 1199 1200 static const struct rtw89_reg5_def rtw8852a_rfk_dack_defs_f_b[] = { 1201 RTW89_DECL_RFK_WS(0x7e00, 0x00000008), 1202 RTW89_DECL_RFK_WC(0x7e10, 0x80000000), 1203 RTW89_DECL_RFK_WS(0x7e50, 0x00000008), 1204 RTW89_DECL_RFK_WC(0x7e60, 0x80000000), 1205 RTW89_DECL_RFK_WS(0x32a0, 0x00008000), 1206 RTW89_DECL_RFK_WM(0x32a0, 0x00007000, 0x00000003), 1207 RTW89_DECL_RFK_WS(0x32b8, 0x40000000), 1208 RTW89_DECL_RFK_WS(0x030c, 0x10000000), 1209 RTW89_DECL_RFK_WC(0x032c, 0x80000000), 1210 RTW89_DECL_RFK_WS(0x32e0, 0x00010000), 1211 RTW89_DECL_RFK_WS(0x32e4, 0x0c000000), 1212 RTW89_DECL_RFK_WM(0x7e00, 0x03ff0000, 0x00000030), 1213 RTW89_DECL_RFK_WM(0x7e50, 0x03ff0000, 0x00000030), 1214 RTW89_DECL_RFK_WC(0x7e00, 0x0c000000), 1215 RTW89_DECL_RFK_WC(0x7e50, 0x0c000000), 1216 RTW89_DECL_RFK_WC(0x7e0c, 0x00000008), 1217 RTW89_DECL_RFK_WC(0x7e5c, 0x00000008), 1218 RTW89_DECL_RFK_WS(0x7e0c, 0x00000001), 1219 RTW89_DECL_RFK_WS(0x7e5c, 0x00000001), 1220 RTW89_DECL_RFK_DELAY(1), 1221 }; 1222 1223 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dack_defs_f_b); 1224 1225 static const struct rtw89_reg5_def rtw8852a_rfk_dack_defs_m_b[] = { 1226 RTW89_DECL_RFK_WC(0x32e4, 0x0c000000), 1227 RTW89_DECL_RFK_WM(0x7e0c, 0x00000008, 0x00000001), 1228 RTW89_DECL_RFK_WM(0x7e5c, 0x00000008, 0x00000001), 1229 RTW89_DECL_RFK_DELAY(1), 1230 }; 1231 1232 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dack_defs_m_b); 1233 1234 static const struct rtw89_reg5_def rtw8852a_rfk_dack_defs_r_b[] = { 1235 RTW89_DECL_RFK_WC(0x7e0c, 0x00000001), 1236 RTW89_DECL_RFK_WC(0x7e5c, 0x00000001), 1237 RTW89_DECL_RFK_WC(0x32e0, 0x00010000), 1238 RTW89_DECL_RFK_WC(0x32a0, 0x00008000), 1239 RTW89_DECL_RFK_WS(0x32a0, 0x00007000), 1240 }; 1241 1242 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dack_defs_r_b); 1243 1244 static const struct rtw89_reg5_def rtw8852a_rfk_dpk_bb_afe_sf_defs_a[] = { 1245 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00000101), 1246 RTW89_DECL_RFK_WS(0x12b8, 0x40000000), 1247 RTW89_DECL_RFK_WM(0x030c, 0xff000000, 0x00000013), 1248 RTW89_DECL_RFK_WM(0x032c, 0xffff0000, 0x00000041), 1249 RTW89_DECL_RFK_WS(0x12b8, 0x10000000), 1250 RTW89_DECL_RFK_WS(0x58c8, 0x01000000), 1251 RTW89_DECL_RFK_WS(0x5864, 0xc0000000), 1252 RTW89_DECL_RFK_WS(0x2008, 0x01ffffff), 1253 RTW89_DECL_RFK_WS(0x0c1c, 0x00000004), 1254 RTW89_DECL_RFK_WS(0x0700, 0x08000000), 1255 RTW89_DECL_RFK_WS(0x0c70, 0x000003ff), 1256 RTW89_DECL_RFK_WS(0x0c60, 0x00000003), 1257 RTW89_DECL_RFK_WS(0x0c6c, 0x00000001), 1258 RTW89_DECL_RFK_WS(0x58ac, 0x08000000), 1259 RTW89_DECL_RFK_WS(0x0c3c, 0x00000200), 1260 }; 1261 1262 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dpk_bb_afe_sf_defs_a); 1263 1264 static const struct rtw89_reg5_def rtw8852a_rfk_dpk_bb_afe_sr_defs_a[] = { 1265 RTW89_DECL_RFK_WS(0x4490, 0x80000000), 1266 RTW89_DECL_RFK_WS(0x12a0, 0x00007000), 1267 RTW89_DECL_RFK_WS(0x12a0, 0x00008000), 1268 RTW89_DECL_RFK_WM(0x12a0, 0x00070000, 0x00000003), 1269 RTW89_DECL_RFK_WS(0x12a0, 0x00080000), 1270 RTW89_DECL_RFK_WS(0x0700, 0x01000000), 1271 RTW89_DECL_RFK_WM(0x0700, 0x06000000, 0x00000002), 1272 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00001111), 1273 RTW89_DECL_RFK_WM(0x58f0, 0x00080000, 0x00000000), 1274 }; 1275 1276 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dpk_bb_afe_sr_defs_a); 1277 1278 static const struct rtw89_reg5_def rtw8852a_rfk_dpk_bb_afe_sf_defs_b[] = { 1279 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00000202), 1280 RTW89_DECL_RFK_WS(0x32b8, 0x40000000), 1281 RTW89_DECL_RFK_WM(0x030c, 0xff000000, 0x00000013), 1282 RTW89_DECL_RFK_WM(0x032c, 0xffff0000, 0x00000041), 1283 RTW89_DECL_RFK_WS(0x32b8, 0x10000000), 1284 RTW89_DECL_RFK_WS(0x78c8, 0x01000000), 1285 RTW89_DECL_RFK_WS(0x7864, 0xc0000000), 1286 RTW89_DECL_RFK_WS(0x2008, 0x01ffffff), 1287 RTW89_DECL_RFK_WS(0x2c1c, 0x00000004), 1288 RTW89_DECL_RFK_WS(0x2700, 0x08000000), 1289 RTW89_DECL_RFK_WS(0x0c70, 0x000003ff), 1290 RTW89_DECL_RFK_WS(0x0c60, 0x00000003), 1291 RTW89_DECL_RFK_WS(0x0c6c, 0x00000001), 1292 RTW89_DECL_RFK_WS(0x78ac, 0x08000000), 1293 RTW89_DECL_RFK_WS(0x2c3c, 0x00000200), 1294 }; 1295 1296 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dpk_bb_afe_sf_defs_b); 1297 1298 static const struct rtw89_reg5_def rtw8852a_rfk_dpk_bb_afe_sr_defs_b[] = { 1299 RTW89_DECL_RFK_WS(0x6490, 0x80000000), 1300 RTW89_DECL_RFK_WS(0x32a0, 0x00007000), 1301 RTW89_DECL_RFK_WS(0x32a0, 0x00008000), 1302 RTW89_DECL_RFK_WM(0x32a0, 0x00070000, 0x00000003), 1303 RTW89_DECL_RFK_WS(0x32a0, 0x00080000), 1304 RTW89_DECL_RFK_WS(0x2700, 0x01000000), 1305 RTW89_DECL_RFK_WM(0x2700, 0x06000000, 0x00000002), 1306 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00002222), 1307 RTW89_DECL_RFK_WM(0x78f0, 0x00080000, 0x00000000), 1308 }; 1309 1310 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dpk_bb_afe_sr_defs_b); 1311 1312 static const struct rtw89_reg5_def rtw8852a_rfk_dpk_bb_afe_s_defs_ab[] = { 1313 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00000303), 1314 RTW89_DECL_RFK_WS(0x12b8, 0x40000000), 1315 RTW89_DECL_RFK_WS(0x32b8, 0x40000000), 1316 RTW89_DECL_RFK_WM(0x030c, 0xff000000, 0x00000013), 1317 RTW89_DECL_RFK_WM(0x032c, 0xffff0000, 0x00000041), 1318 RTW89_DECL_RFK_WS(0x12b8, 0x10000000), 1319 RTW89_DECL_RFK_WS(0x58c8, 0x01000000), 1320 RTW89_DECL_RFK_WS(0x78c8, 0x01000000), 1321 RTW89_DECL_RFK_WS(0x5864, 0xc0000000), 1322 RTW89_DECL_RFK_WS(0x7864, 0xc0000000), 1323 RTW89_DECL_RFK_WS(0x2008, 0x01ffffff), 1324 RTW89_DECL_RFK_WS(0x0c1c, 0x00000004), 1325 RTW89_DECL_RFK_WS(0x0700, 0x08000000), 1326 RTW89_DECL_RFK_WS(0x0c70, 0x000003ff), 1327 RTW89_DECL_RFK_WS(0x0c60, 0x00000003), 1328 RTW89_DECL_RFK_WS(0x0c6c, 0x00000001), 1329 RTW89_DECL_RFK_WS(0x58ac, 0x08000000), 1330 RTW89_DECL_RFK_WS(0x78ac, 0x08000000), 1331 RTW89_DECL_RFK_WS(0x0c3c, 0x00000200), 1332 RTW89_DECL_RFK_WS(0x2344, 0x80000000), 1333 RTW89_DECL_RFK_WS(0x4490, 0x80000000), 1334 RTW89_DECL_RFK_WS(0x12a0, 0x00007000), 1335 RTW89_DECL_RFK_WS(0x12a0, 0x00008000), 1336 RTW89_DECL_RFK_WM(0x12a0, 0x00070000, 0x00000003), 1337 RTW89_DECL_RFK_WS(0x12a0, 0x00080000), 1338 RTW89_DECL_RFK_WM(0x32a0, 0x00070000, 0x00000003), 1339 RTW89_DECL_RFK_WS(0x32a0, 0x00080000), 1340 RTW89_DECL_RFK_WS(0x0700, 0x01000000), 1341 RTW89_DECL_RFK_WM(0x0700, 0x06000000, 0x00000002), 1342 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00003333), 1343 RTW89_DECL_RFK_WM(0x58f0, 0x00080000, 0x00000000), 1344 RTW89_DECL_RFK_WM(0x78f0, 0x00080000, 0x00000000), 1345 }; 1346 1347 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dpk_bb_afe_s_defs_ab); 1348 1349 static const struct rtw89_reg5_def rtw8852a_rfk_dpk_bb_afe_r_defs_a[] = { 1350 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00000101), 1351 RTW89_DECL_RFK_WC(0x12b8, 0x40000000), 1352 RTW89_DECL_RFK_WC(0x5864, 0xc0000000), 1353 RTW89_DECL_RFK_WC(0x2008, 0x01ffffff), 1354 RTW89_DECL_RFK_WC(0x0c1c, 0x00000004), 1355 RTW89_DECL_RFK_WC(0x0700, 0x08000000), 1356 RTW89_DECL_RFK_WM(0x0c70, 0x0000001f, 0x00000003), 1357 RTW89_DECL_RFK_WM(0x0c70, 0x000003e0, 0x00000003), 1358 RTW89_DECL_RFK_WC(0x12a0, 0x000ff000), 1359 RTW89_DECL_RFK_WC(0x0700, 0x07000000), 1360 RTW89_DECL_RFK_WC(0x5864, 0x20000000), 1361 RTW89_DECL_RFK_WC(0x0c3c, 0x00000200), 1362 RTW89_DECL_RFK_WC(0x20fc, 0xffff0000), 1363 RTW89_DECL_RFK_WC(0x58c8, 0x01000000), 1364 }; 1365 1366 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dpk_bb_afe_r_defs_a); 1367 1368 static const struct rtw89_reg5_def rtw8852a_rfk_dpk_bb_afe_r_defs_b[] = { 1369 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00000202), 1370 RTW89_DECL_RFK_WC(0x32b8, 0x40000000), 1371 RTW89_DECL_RFK_WC(0x7864, 0xc0000000), 1372 RTW89_DECL_RFK_WC(0x2008, 0x01ffffff), 1373 RTW89_DECL_RFK_WC(0x2c1c, 0x00000004), 1374 RTW89_DECL_RFK_WC(0x2700, 0x08000000), 1375 RTW89_DECL_RFK_WM(0x0c70, 0x0000001f, 0x00000003), 1376 RTW89_DECL_RFK_WM(0x0c70, 0x000003e0, 0x00000003), 1377 RTW89_DECL_RFK_WC(0x32a0, 0x000ff000), 1378 RTW89_DECL_RFK_WC(0x2700, 0x07000000), 1379 RTW89_DECL_RFK_WC(0x7864, 0x20000000), 1380 RTW89_DECL_RFK_WC(0x2c3c, 0x00000200), 1381 RTW89_DECL_RFK_WC(0x20fc, 0xffff0000), 1382 RTW89_DECL_RFK_WC(0x78c8, 0x01000000), 1383 }; 1384 1385 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dpk_bb_afe_r_defs_b); 1386 1387 static const struct rtw89_reg5_def rtw8852a_rfk_dpk_bb_afe_r_defs_ab[] = { 1388 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00000303), 1389 RTW89_DECL_RFK_WC(0x12b8, 0x40000000), 1390 RTW89_DECL_RFK_WC(0x32b8, 0x40000000), 1391 RTW89_DECL_RFK_WC(0x5864, 0xc0000000), 1392 RTW89_DECL_RFK_WC(0x7864, 0xc0000000), 1393 RTW89_DECL_RFK_WC(0x2008, 0x01ffffff), 1394 RTW89_DECL_RFK_WC(0x0c1c, 0x00000004), 1395 RTW89_DECL_RFK_WC(0x0700, 0x08000000), 1396 RTW89_DECL_RFK_WM(0x0c70, 0x0000001f, 0x00000003), 1397 RTW89_DECL_RFK_WM(0x0c70, 0x000003e0, 0x00000003), 1398 RTW89_DECL_RFK_WC(0x12a0, 0x000ff000), 1399 RTW89_DECL_RFK_WC(0x32a0, 0x000ff000), 1400 RTW89_DECL_RFK_WC(0x0700, 0x07000000), 1401 RTW89_DECL_RFK_WC(0x5864, 0x20000000), 1402 RTW89_DECL_RFK_WC(0x7864, 0x20000000), 1403 RTW89_DECL_RFK_WC(0x0c3c, 0x00000200), 1404 RTW89_DECL_RFK_WC(0x20fc, 0xffff0000), 1405 RTW89_DECL_RFK_WC(0x58c8, 0x01000000), 1406 RTW89_DECL_RFK_WC(0x78c8, 0x01000000), 1407 }; 1408 1409 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dpk_bb_afe_r_defs_ab); 1410 1411 static const struct rtw89_reg5_def rtw8852a_rfk_dpk_lbk_rxiqk_defs_f[] = { 1412 RTW89_DECL_RFK_WM(0x030c, 0xff000000, 0x0000000f), 1413 RTW89_DECL_RFK_DELAY(1), 1414 RTW89_DECL_RFK_WM(0x030c, 0xff000000, 0x00000003), 1415 RTW89_DECL_RFK_WM(0x032c, 0xffff0000, 0x0000a001), 1416 RTW89_DECL_RFK_DELAY(1), 1417 RTW89_DECL_RFK_WM(0x032c, 0xffff0000, 0x0000a041), 1418 RTW89_DECL_RFK_WS(0x8074, 0x80000000), 1419 }; 1420 1421 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dpk_lbk_rxiqk_defs_f); 1422 1423 static const struct rtw89_reg5_def rtw8852a_rfk_dpk_lbk_rxiqk_defs_r[] = { 1424 RTW89_DECL_RFK_WC(0x8074, 0x80000000), 1425 RTW89_DECL_RFK_WM(0x030c, 0xff000000, 0x0000001f), 1426 RTW89_DECL_RFK_DELAY(1), 1427 RTW89_DECL_RFK_WM(0x030c, 0xff000000, 0x00000013), 1428 RTW89_DECL_RFK_WM(0x032c, 0xffff0000, 0x00000001), 1429 RTW89_DECL_RFK_DELAY(1), 1430 RTW89_DECL_RFK_WM(0x032c, 0xffff0000, 0x00000041), 1431 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00000303), 1432 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00003333), 1433 }; 1434 1435 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dpk_lbk_rxiqk_defs_r); 1436 1437 static const struct rtw89_reg5_def rtw8852a_rfk_dpk_pas_read_defs[] = { 1438 RTW89_DECL_RFK_WM(0x80d4, 0x00ff0000, 0x00000006), 1439 RTW89_DECL_RFK_WC(0x80bc, 0x00004000), 1440 RTW89_DECL_RFK_WM(0x80c0, 0x00ff0000, 0x00000008), 1441 }; 1442 1443 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_dpk_pas_read_defs); 1444 1445 static const struct rtw89_reg5_def rtw8852a_rfk_iqk_set_defs_nondbcc_path01[] = { 1446 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00000303), 1447 RTW89_DECL_RFK_WM(0x5864, 0x18000000, 0x00000003), 1448 RTW89_DECL_RFK_WM(0x7864, 0x18000000, 0x00000003), 1449 RTW89_DECL_RFK_WM(0x12b8, 0x40000000, 0x00000001), 1450 RTW89_DECL_RFK_WM(0x32b8, 0x40000000, 0x00000001), 1451 RTW89_DECL_RFK_WM(0x030c, 0xff000000, 0x00000013), 1452 RTW89_DECL_RFK_WM(0x032c, 0xffff0000, 0x00000001), 1453 RTW89_DECL_RFK_WM(0x12b8, 0x10000000, 0x00000001), 1454 RTW89_DECL_RFK_WM(0x58c8, 0x01000000, 0x00000001), 1455 RTW89_DECL_RFK_WM(0x78c8, 0x01000000, 0x00000001), 1456 RTW89_DECL_RFK_WM(0x5864, 0xc0000000, 0x00000003), 1457 RTW89_DECL_RFK_WM(0x7864, 0xc0000000, 0x00000003), 1458 RTW89_DECL_RFK_WM(0x2008, 0x01ffffff, 0x01ffffff), 1459 RTW89_DECL_RFK_WM(0x0c1c, 0x00000004, 0x00000001), 1460 RTW89_DECL_RFK_WM(0x0700, 0x08000000, 0x00000001), 1461 RTW89_DECL_RFK_WM(0x0c70, 0x000003ff, 0x000003ff), 1462 RTW89_DECL_RFK_WM(0x0c60, 0x00000003, 0x00000003), 1463 RTW89_DECL_RFK_WM(0x0c6c, 0x00000001, 0x00000001), 1464 RTW89_DECL_RFK_WM(0x58ac, 0x08000000, 0x00000001), 1465 RTW89_DECL_RFK_WM(0x78ac, 0x08000000, 0x00000001), 1466 RTW89_DECL_RFK_WM(0x0c3c, 0x00000200, 0x00000001), 1467 RTW89_DECL_RFK_WM(0x2344, 0x80000000, 0x00000001), 1468 RTW89_DECL_RFK_WM(0x4490, 0x80000000, 0x00000001), 1469 RTW89_DECL_RFK_WM(0x12a0, 0x00007000, 0x00000007), 1470 RTW89_DECL_RFK_WM(0x12a0, 0x00008000, 0x00000001), 1471 RTW89_DECL_RFK_WM(0x12a0, 0x00070000, 0x00000003), 1472 RTW89_DECL_RFK_WM(0x12a0, 0x00080000, 0x00000001), 1473 RTW89_DECL_RFK_WM(0x32a0, 0x00070000, 0x00000003), 1474 RTW89_DECL_RFK_WM(0x32a0, 0x00080000, 0x00000001), 1475 RTW89_DECL_RFK_WM(0x0700, 0x01000000, 0x00000001), 1476 RTW89_DECL_RFK_WM(0x0700, 0x06000000, 0x00000002), 1477 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00003333), 1478 RTW89_DECL_RFK_WM(0x58f0, 0x00080000, 0x00000000), 1479 RTW89_DECL_RFK_WM(0x78f0, 0x00080000, 0x00000000), 1480 }; 1481 1482 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_iqk_set_defs_nondbcc_path01); 1483 1484 static const struct rtw89_reg5_def rtw8852a_rfk_iqk_set_defs_dbcc_path0[] = { 1485 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00000101), 1486 RTW89_DECL_RFK_WM(0x5864, 0x18000000, 0x00000003), 1487 RTW89_DECL_RFK_WM(0x7864, 0x18000000, 0x00000003), 1488 RTW89_DECL_RFK_WM(0x12b8, 0x40000000, 0x00000001), 1489 RTW89_DECL_RFK_WM(0x030c, 0xff000000, 0x00000013), 1490 RTW89_DECL_RFK_WM(0x032c, 0xffff0000, 0x00000001), 1491 RTW89_DECL_RFK_WM(0x12b8, 0x10000000, 0x00000001), 1492 RTW89_DECL_RFK_WM(0x58c8, 0x01000000, 0x00000001), 1493 RTW89_DECL_RFK_WM(0x5864, 0xc0000000, 0x00000003), 1494 RTW89_DECL_RFK_WM(0x2008, 0x01ffffff, 0x01ffffff), 1495 RTW89_DECL_RFK_WM(0x0c1c, 0x00000004, 0x00000001), 1496 RTW89_DECL_RFK_WM(0x0700, 0x08000000, 0x00000001), 1497 RTW89_DECL_RFK_WM(0x0c70, 0x000003ff, 0x000003ff), 1498 RTW89_DECL_RFK_WM(0x0c60, 0x00000003, 0x00000003), 1499 RTW89_DECL_RFK_WM(0x0c6c, 0x00000001, 0x00000001), 1500 RTW89_DECL_RFK_WM(0x58ac, 0x08000000, 0x00000001), 1501 RTW89_DECL_RFK_WM(0x0c3c, 0x00000200, 0x00000001), 1502 RTW89_DECL_RFK_WM(0x2320, 0x00000001, 0x00000001), 1503 RTW89_DECL_RFK_WM(0x4490, 0x80000000, 0x00000001), 1504 RTW89_DECL_RFK_WM(0x12a0, 0x00007000, 0x00000007), 1505 RTW89_DECL_RFK_WM(0x12a0, 0x00008000, 0x00000001), 1506 RTW89_DECL_RFK_WM(0x12a0, 0x00070000, 0x00000003), 1507 RTW89_DECL_RFK_WM(0x12a0, 0x00080000, 0x00000001), 1508 RTW89_DECL_RFK_WM(0x0700, 0x01000000, 0x00000001), 1509 RTW89_DECL_RFK_WM(0x0700, 0x06000000, 0x00000002), 1510 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00001111), 1511 RTW89_DECL_RFK_WM(0x58f0, 0x00080000, 0x00000000), 1512 }; 1513 1514 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_iqk_set_defs_dbcc_path0); 1515 1516 static const struct rtw89_reg5_def rtw8852a_rfk_iqk_set_defs_dbcc_path1[] = { 1517 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00000202), 1518 RTW89_DECL_RFK_WM(0x7864, 0x18000000, 0x00000003), 1519 RTW89_DECL_RFK_WM(0x32b8, 0x40000000, 0x00000001), 1520 RTW89_DECL_RFK_WM(0x030c, 0xff000000, 0x00000013), 1521 RTW89_DECL_RFK_WM(0x032c, 0xffff0000, 0x00000001), 1522 RTW89_DECL_RFK_WM(0x32b8, 0x10000000, 0x00000001), 1523 RTW89_DECL_RFK_WM(0x78c8, 0x01000000, 0x00000001), 1524 RTW89_DECL_RFK_WM(0x7864, 0xc0000000, 0x00000003), 1525 RTW89_DECL_RFK_WM(0x2008, 0x01ffffff, 0x01ffffff), 1526 RTW89_DECL_RFK_WM(0x2c1c, 0x00000004, 0x00000001), 1527 RTW89_DECL_RFK_WM(0x2700, 0x08000000, 0x00000001), 1528 RTW89_DECL_RFK_WM(0x0c70, 0x000003ff, 0x000003ff), 1529 RTW89_DECL_RFK_WM(0x0c60, 0x00000003, 0x00000003), 1530 RTW89_DECL_RFK_WM(0x0c6c, 0x00000001, 0x00000001), 1531 RTW89_DECL_RFK_WM(0x78ac, 0x08000000, 0x00000001), 1532 RTW89_DECL_RFK_WM(0x2c3c, 0x00000200, 0x00000001), 1533 RTW89_DECL_RFK_WM(0x6490, 0x80000000, 0x00000001), 1534 RTW89_DECL_RFK_WM(0x32a0, 0x00007000, 0x00000007), 1535 RTW89_DECL_RFK_WM(0x32a0, 0x00008000, 0x00000001), 1536 RTW89_DECL_RFK_WM(0x32a0, 0x00070000, 0x00000003), 1537 RTW89_DECL_RFK_WM(0x32a0, 0x00080000, 0x00000001), 1538 RTW89_DECL_RFK_WM(0x2700, 0x01000000, 0x00000001), 1539 RTW89_DECL_RFK_WM(0x2700, 0x06000000, 0x00000002), 1540 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00002222), 1541 RTW89_DECL_RFK_WM(0x78f0, 0x00080000, 0x00000000), 1542 }; 1543 1544 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_iqk_set_defs_dbcc_path1); 1545 1546 static const struct rtw89_reg5_def rtw8852a_rfk_iqk_restore_defs_nondbcc_path01[] = { 1547 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00000303), 1548 RTW89_DECL_RFK_WM(0x12b8, 0x40000000, 0x00000000), 1549 RTW89_DECL_RFK_WM(0x32b8, 0x40000000, 0x00000000), 1550 RTW89_DECL_RFK_WM(0x5864, 0xc0000000, 0x00000000), 1551 RTW89_DECL_RFK_WM(0x7864, 0xc0000000, 0x00000000), 1552 RTW89_DECL_RFK_WM(0x2008, 0x01ffffff, 0x00000000), 1553 RTW89_DECL_RFK_WM(0x0c1c, 0x00000004, 0x00000000), 1554 RTW89_DECL_RFK_WM(0x0700, 0x08000000, 0x00000000), 1555 RTW89_DECL_RFK_WM(0x0c70, 0x0000001f, 0x00000003), 1556 RTW89_DECL_RFK_WM(0x0c70, 0x000003e0, 0x00000003), 1557 RTW89_DECL_RFK_WM(0x12a0, 0x000ff000, 0x00000000), 1558 RTW89_DECL_RFK_WM(0x32a0, 0x000ff000, 0x00000000), 1559 RTW89_DECL_RFK_WM(0x0700, 0x07000000, 0x00000000), 1560 RTW89_DECL_RFK_WM(0x5864, 0x20000000, 0x00000000), 1561 RTW89_DECL_RFK_WM(0x7864, 0x20000000, 0x00000000), 1562 RTW89_DECL_RFK_WM(0x0c3c, 0x00000200, 0x00000000), 1563 RTW89_DECL_RFK_WM(0x2320, 0x00000001, 0x00000000), 1564 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00000000), 1565 RTW89_DECL_RFK_WM(0x58c8, 0x01000000, 0x00000000), 1566 RTW89_DECL_RFK_WM(0x78c8, 0x01000000, 0x00000000), 1567 }; 1568 1569 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_iqk_restore_defs_nondbcc_path01); 1570 1571 static const struct rtw89_reg5_def rtw8852a_rfk_iqk_restore_defs_dbcc_path0[] = { 1572 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00000101), 1573 RTW89_DECL_RFK_WM(0x12b8, 0x40000000, 0x00000000), 1574 RTW89_DECL_RFK_WM(0x5864, 0xc0000000, 0x00000000), 1575 RTW89_DECL_RFK_WM(0x2008, 0x01ffffff, 0x00000000), 1576 RTW89_DECL_RFK_WM(0x0c1c, 0x00000004, 0x00000000), 1577 RTW89_DECL_RFK_WM(0x0700, 0x08000000, 0x00000000), 1578 RTW89_DECL_RFK_WM(0x0c70, 0x0000001f, 0x00000003), 1579 RTW89_DECL_RFK_WM(0x0c70, 0x000003e0, 0x00000003), 1580 RTW89_DECL_RFK_WM(0x12a0, 0x000ff000, 0x00000000), 1581 RTW89_DECL_RFK_WM(0x0700, 0x07000000, 0x00000000), 1582 RTW89_DECL_RFK_WM(0x5864, 0x20000000, 0x00000000), 1583 RTW89_DECL_RFK_WM(0x0c3c, 0x00000200, 0x00000000), 1584 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00000000), 1585 RTW89_DECL_RFK_WM(0x58c8, 0x01000000, 0x00000000), 1586 }; 1587 1588 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_iqk_restore_defs_dbcc_path0); 1589 1590 static const struct rtw89_reg5_def rtw8852a_rfk_iqk_restore_defs_dbcc_path1[] = { 1591 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00000202), 1592 RTW89_DECL_RFK_WM(0x32b8, 0x40000000, 0x00000000), 1593 RTW89_DECL_RFK_WM(0x7864, 0xc0000000, 0x00000000), 1594 RTW89_DECL_RFK_WM(0x2008, 0x01ffffff, 0x00000000), 1595 RTW89_DECL_RFK_WM(0x2c1c, 0x00000004, 0x00000000), 1596 RTW89_DECL_RFK_WM(0x2700, 0x08000000, 0x00000000), 1597 RTW89_DECL_RFK_WM(0x0c70, 0x0000001f, 0x00000003), 1598 RTW89_DECL_RFK_WM(0x0c70, 0x000003e0, 0x00000003), 1599 RTW89_DECL_RFK_WM(0x32a0, 0x000ff000, 0x00000000), 1600 RTW89_DECL_RFK_WM(0x2700, 0x07000000, 0x00000000), 1601 RTW89_DECL_RFK_WM(0x7864, 0x20000000, 0x00000000), 1602 RTW89_DECL_RFK_WM(0x2c3c, 0x00000200, 0x00000000), 1603 RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x00000000), 1604 RTW89_DECL_RFK_WM(0x78c8, 0x01000000, 0x00000000), 1605 }; 1606 1607 RTW89_DECLARE_RFK_TBL(rtw8852a_rfk_iqk_restore_defs_dbcc_path1); 1608