radio_2057.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506
  1. #ifndef B43_RADIO_2057_H_
  2. #define B43_RADIO_2057_H_
  3. #include <linux/types.h>
  4. #include "tables_nphy.h"
  5. #define R2057_DACBUF_VINCM_CORE0 0x000
  6. #define R2057_IDCODE 0x001
  7. #define R2057_RCCAL_MASTER 0x002
  8. #define R2057_RCCAL_CAP_SIZE 0x003
  9. #define R2057_RCAL_CONFIG 0x004
  10. #define R2057_GPAIO_CONFIG 0x005
  11. #define R2057_GPAIO_SEL1 0x006
  12. #define R2057_GPAIO_SEL0 0x007
  13. #define R2057_CLPO_CONFIG 0x008
  14. #define R2057_BANDGAP_CONFIG 0x009
  15. #define R2057_BANDGAP_RCAL_TRIM 0x00a
  16. #define R2057_AFEREG_CONFIG 0x00b
  17. #define R2057_TEMPSENSE_CONFIG 0x00c
  18. #define R2057_XTAL_CONFIG1 0x00d
  19. #define R2057_XTAL_ICORE_SIZE 0x00e
  20. #define R2057_XTAL_BUF_SIZE 0x00f
  21. #define R2057_XTAL_PULLCAP_SIZE 0x010
  22. #define R2057_RFPLL_MASTER 0x011
  23. #define R2057_VCOMONITOR_VTH_L 0x012
  24. #define R2057_VCOMONITOR_VTH_H 0x013
  25. #define R2057_VCOCAL_BIASRESET_RFPLLREG_VOUT 0x014
  26. #define R2057_VCO_VARCSIZE_IDAC 0x015
  27. #define R2057_VCOCAL_COUNTVAL0 0x016
  28. #define R2057_VCOCAL_COUNTVAL1 0x017
  29. #define R2057_VCOCAL_INTCLK_COUNT 0x018
  30. #define R2057_VCOCAL_MASTER 0x019
  31. #define R2057_VCOCAL_NUMCAPCHANGE 0x01a
  32. #define R2057_VCOCAL_WINSIZE 0x01b
  33. #define R2057_VCOCAL_DELAY_AFTER_REFRESH 0x01c
  34. #define R2057_VCOCAL_DELAY_AFTER_CLOSELOOP 0x01d
  35. #define R2057_VCOCAL_DELAY_AFTER_OPENLOOP 0x01e
  36. #define R2057_VCOCAL_DELAY_BEFORE_OPENLOOP 0x01f
  37. #define R2057_VCO_FORCECAPEN_FORCECAP1 0x020
  38. #define R2057_VCO_FORCECAP0 0x021
  39. #define R2057_RFPLL_REFMASTER_SPAREXTALSIZE 0x022
  40. #define R2057_RFPLL_PFD_RESET_PW 0x023
  41. #define R2057_RFPLL_LOOPFILTER_R2 0x024
  42. #define R2057_RFPLL_LOOPFILTER_R1 0x025
  43. #define R2057_RFPLL_LOOPFILTER_C3 0x026
  44. #define R2057_RFPLL_LOOPFILTER_C2 0x027
  45. #define R2057_RFPLL_LOOPFILTER_C1 0x028
  46. #define R2057_CP_KPD_IDAC 0x029
  47. #define R2057_RFPLL_IDACS 0x02a
  48. #define R2057_RFPLL_MISC_EN 0x02b
  49. #define R2057_RFPLL_MMD0 0x02c
  50. #define R2057_RFPLL_MMD1 0x02d
  51. #define R2057_RFPLL_MISC_CAL_RESETN 0x02e
  52. #define R2057_JTAGXTAL_SIZE_CPBIAS_FILTRES 0x02f
  53. #define R2057_VCO_ALCREF_BBPLLXTAL_SIZE 0x030
  54. #define R2057_VCOCAL_READCAP0 0x031
  55. #define R2057_VCOCAL_READCAP1 0x032
  56. #define R2057_VCOCAL_STATUS 0x033
  57. #define R2057_LOGEN_PUS 0x034
  58. #define R2057_LOGEN_PTAT_RESETS 0x035
  59. #define R2057_VCOBUF_IDACS 0x036
  60. #define R2057_VCOBUF_TUNE 0x037
  61. #define R2057_CMOSBUF_TX2GQ_IDACS 0x038
  62. #define R2057_CMOSBUF_TX2GI_IDACS 0x039
  63. #define R2057_CMOSBUF_TX5GQ_IDACS 0x03a
  64. #define R2057_CMOSBUF_TX5GI_IDACS 0x03b
  65. #define R2057_CMOSBUF_RX2GQ_IDACS 0x03c
  66. #define R2057_CMOSBUF_RX2GI_IDACS 0x03d
  67. #define R2057_CMOSBUF_RX5GQ_IDACS 0x03e
  68. #define R2057_CMOSBUF_RX5GI_IDACS 0x03f
  69. #define R2057_LOGEN_MX2G_IDACS 0x040
  70. #define R2057_LOGEN_MX2G_TUNE 0x041
  71. #define R2057_LOGEN_MX5G_IDACS 0x042
  72. #define R2057_LOGEN_MX5G_TUNE 0x043
  73. #define R2057_LOGEN_MX5G_RCCR 0x044
  74. #define R2057_LOGEN_INDBUF2G_IDAC 0x045
  75. #define R2057_LOGEN_INDBUF2G_IBOOST 0x046
  76. #define R2057_LOGEN_INDBUF2G_TUNE 0x047
  77. #define R2057_LOGEN_INDBUF5G_IDAC 0x048
  78. #define R2057_LOGEN_INDBUF5G_IBOOST 0x049
  79. #define R2057_LOGEN_INDBUF5G_TUNE 0x04a
  80. #define R2057_CMOSBUF_TX_RCCR 0x04b
  81. #define R2057_CMOSBUF_RX_RCCR 0x04c
  82. #define R2057_LOGEN_SEL_PKDET 0x04d
  83. #define R2057_CMOSBUF_SHAREIQ_PTAT 0x04e
  84. /* MISC core 0 */
  85. #define R2057_RXTXBIAS_CONFIG_CORE0 0x04f
  86. #define R2057_TXGM_TXRF_PUS_CORE0 0x050
  87. #define R2057_TXGM_IDAC_BLEED_CORE0 0x051
  88. #define R2057_TXGM_GAIN_CORE0 0x056
  89. #define R2057_TXGM2G_PKDET_PUS_CORE0 0x057
  90. #define R2057_PAD2G_PTATS_CORE0 0x058
  91. #define R2057_PAD2G_IDACS_CORE0 0x059
  92. #define R2057_PAD2G_BOOST_PU_CORE0 0x05a
  93. #define R2057_PAD2G_CASCV_GAIN_CORE0 0x05b
  94. #define R2057_TXMIX2G_TUNE_BOOST_PU_CORE0 0x05c
  95. #define R2057_TXMIX2G_LODC_CORE0 0x05d
  96. #define R2057_PAD2G_TUNE_PUS_CORE0 0x05e
  97. #define R2057_IPA2G_GAIN_CORE0 0x05f
  98. #define R2057_TSSI2G_SPARE1_CORE0 0x060
  99. #define R2057_TSSI2G_SPARE2_CORE0 0x061
  100. #define R2057_IPA2G_TUNEV_CASCV_PTAT_CORE0 0x062
  101. #define R2057_IPA2G_IMAIN_CORE0 0x063
  102. #define R2057_IPA2G_CASCONV_CORE0 0x064
  103. #define R2057_IPA2G_CASCOFFV_CORE0 0x065
  104. #define R2057_IPA2G_BIAS_FILTER_CORE0 0x066
  105. #define R2057_TX5G_PKDET_CORE0 0x069
  106. #define R2057_PGA_PTAT_TXGM5G_PU_CORE0 0x06a
  107. #define R2057_PAD5G_PTATS1_CORE0 0x06b
  108. #define R2057_PAD5G_CLASS_PTATS2_CORE0 0x06c
  109. #define R2057_PGA_BOOSTPTAT_IMAIN_CORE0 0x06d
  110. #define R2057_PAD5G_CASCV_IMAIN_CORE0 0x06e
  111. #define R2057_TXMIX5G_IBOOST_PAD_IAUX_CORE0 0x06f
  112. #define R2057_PGA_BOOST_TUNE_CORE0 0x070
  113. #define R2057_PGA_GAIN_CORE0 0x071
  114. #define R2057_PAD5G_CASCOFFV_GAIN_PUS_CORE0 0x072
  115. #define R2057_TXMIX5G_BOOST_TUNE_CORE0 0x073
  116. #define R2057_PAD5G_TUNE_MISC_PUS_CORE0 0x074
  117. #define R2057_IPA5G_IAUX_CORE0 0x075
  118. #define R2057_IPA5G_GAIN_CORE0 0x076
  119. #define R2057_TSSI5G_SPARE1_CORE0 0x077
  120. #define R2057_TSSI5G_SPARE2_CORE0 0x078
  121. #define R2057_IPA5G_CASCOFFV_PU_CORE0 0x079
  122. #define R2057_IPA5G_PTAT_CORE0 0x07a
  123. #define R2057_IPA5G_IMAIN_CORE0 0x07b
  124. #define R2057_IPA5G_CASCONV_CORE0 0x07c
  125. #define R2057_IPA5G_BIAS_FILTER_CORE0 0x07d
  126. #define R2057_PAD_BIAS_FILTER_BWS_CORE0 0x080
  127. #define R2057_TR2G_CONFIG1_CORE0_NU 0x081
  128. #define R2057_TR2G_CONFIG2_CORE0_NU 0x082
  129. #define R2057_LNA5G_RFEN_CORE0 0x083
  130. #define R2057_TR5G_CONFIG2_CORE0_NU 0x084
  131. #define R2057_RXRFBIAS_IBOOST_PU_CORE0 0x085
  132. #define R2057_RXRF_IABAND_RXGM_IMAIN_PTAT_CORE0 0x086
  133. #define R2057_RXGM_CMFBITAIL_AUXPTAT_CORE0 0x087
  134. #define R2057_RXMIX_ICORE_RXGM_IAUX_CORE0 0x088
  135. #define R2057_RXMIX_CMFBITAIL_PU_CORE0 0x089
  136. #define R2057_LNA2_IMAIN_PTAT_PU_CORE0 0x08a
  137. #define R2057_LNA2_IAUX_PTAT_CORE0 0x08b
  138. #define R2057_LNA1_IMAIN_PTAT_PU_CORE0 0x08c
  139. #define R2057_LNA15G_INPUT_MATCH_TUNE_CORE0 0x08d
  140. #define R2057_RXRFBIAS_BANDSEL_CORE0 0x08e
  141. #define R2057_TIA_CONFIG_CORE0 0x08f
  142. #define R2057_TIA_IQGAIN_CORE0 0x090
  143. #define R2057_TIA_IBIAS2_CORE0 0x091
  144. #define R2057_TIA_IBIAS1_CORE0 0x092
  145. #define R2057_TIA_SPARE_Q_CORE0 0x093
  146. #define R2057_TIA_SPARE_I_CORE0 0x094
  147. #define R2057_RXMIX2G_PUS_CORE0 0x095
  148. #define R2057_RXMIX2G_VCMREFS_CORE0 0x096
  149. #define R2057_RXMIX2G_LODC_QI_CORE0 0x097
  150. #define R2057_W12G_BW_LNA2G_PUS_CORE0 0x098
  151. #define R2057_LNA2G_GAIN_CORE0 0x099
  152. #define R2057_LNA2G_TUNE_CORE0 0x09a
  153. #define R2057_RXMIX5G_PUS_CORE0 0x09b
  154. #define R2057_RXMIX5G_VCMREFS_CORE0 0x09c
  155. #define R2057_RXMIX5G_LODC_QI_CORE0 0x09d
  156. #define R2057_W15G_BW_LNA5G_PUS_CORE0 0x09e
  157. #define R2057_LNA5G_GAIN_CORE0 0x09f
  158. #define R2057_LNA5G_TUNE_CORE0 0x0a0
  159. #define R2057_LPFSEL_TXRX_RXBB_PUS_CORE0 0x0a1
  160. #define R2057_RXBB_BIAS_MASTER_CORE0 0x0a2
  161. #define R2057_RXBB_VGABUF_IDACS_CORE0 0x0a3
  162. #define R2057_LPF_VCMREF_TXBUF_VCMREF_CORE0 0x0a4
  163. #define R2057_TXBUF_VINCM_CORE0 0x0a5
  164. #define R2057_TXBUF_IDACS_CORE0 0x0a6
  165. #define R2057_LPF_RESP_RXBUF_BW_CORE0 0x0a7
  166. #define R2057_RXBB_CC_CORE0 0x0a8
  167. #define R2057_RXBB_SPARE3_CORE0 0x0a9
  168. #define R2057_RXBB_RCCAL_HPC_CORE0 0x0aa
  169. #define R2057_LPF_IDACS_CORE0 0x0ab
  170. #define R2057_LPFBYP_DCLOOP_BYP_IDAC_CORE0 0x0ac
  171. #define R2057_TXBUF_GAIN_CORE0 0x0ad
  172. #define R2057_AFELOOPBACK_AACI_RESP_CORE0 0x0ae
  173. #define R2057_RXBUF_DEGEN_CORE0 0x0af
  174. #define R2057_RXBB_SPARE2_CORE0 0x0b0
  175. #define R2057_RXBB_SPARE1_CORE0 0x0b1
  176. #define R2057_RSSI_MASTER_CORE0 0x0b2
  177. #define R2057_W2_MASTER_CORE0 0x0b3
  178. #define R2057_NB_MASTER_CORE0 0x0b4
  179. #define R2057_W2_IDACS0_Q_CORE0 0x0b5
  180. #define R2057_W2_IDACS1_Q_CORE0 0x0b6
  181. #define R2057_W2_IDACS0_I_CORE0 0x0b7
  182. #define R2057_W2_IDACS1_I_CORE0 0x0b8
  183. #define R2057_RSSI_GPAIOSEL_W1_IDACS_CORE0 0x0b9
  184. #define R2057_NB_IDACS_Q_CORE0 0x0ba
  185. #define R2057_NB_IDACS_I_CORE0 0x0bb
  186. #define R2057_BACKUP4_CORE0 0x0c1
  187. #define R2057_BACKUP3_CORE0 0x0c2
  188. #define R2057_BACKUP2_CORE0 0x0c3
  189. #define R2057_BACKUP1_CORE0 0x0c4
  190. #define R2057_SPARE16_CORE0 0x0c5
  191. #define R2057_SPARE15_CORE0 0x0c6
  192. #define R2057_SPARE14_CORE0 0x0c7
  193. #define R2057_SPARE13_CORE0 0x0c8
  194. #define R2057_SPARE12_CORE0 0x0c9
  195. #define R2057_SPARE11_CORE0 0x0ca
  196. #define R2057_TX2G_BIAS_RESETS_CORE0 0x0cb
  197. #define R2057_TX5G_BIAS_RESETS_CORE0 0x0cc
  198. #define R2057_IQTEST_SEL_PU 0x0cd
  199. #define R2057_XTAL_CONFIG2 0x0ce
  200. #define R2057_BUFS_MISC_LPFBW_CORE0 0x0cf
  201. #define R2057_TXLPF_RCCAL_CORE0 0x0d0
  202. #define R2057_RXBB_GPAIOSEL_RXLPF_RCCAL_CORE0 0x0d1
  203. #define R2057_LPF_GAIN_CORE0 0x0d2
  204. #define R2057_DACBUF_IDACS_BW_CORE0 0x0d3
  205. /* MISC core 1 */
  206. #define R2057_RXTXBIAS_CONFIG_CORE1 0x0d4
  207. #define R2057_TXGM_TXRF_PUS_CORE1 0x0d5
  208. #define R2057_TXGM_IDAC_BLEED_CORE1 0x0d6
  209. #define R2057_TXGM_GAIN_CORE1 0x0db
  210. #define R2057_TXGM2G_PKDET_PUS_CORE1 0x0dc
  211. #define R2057_PAD2G_PTATS_CORE1 0x0dd
  212. #define R2057_PAD2G_IDACS_CORE1 0x0de
  213. #define R2057_PAD2G_BOOST_PU_CORE1 0x0df
  214. #define R2057_PAD2G_CASCV_GAIN_CORE1 0x0e0
  215. #define R2057_TXMIX2G_TUNE_BOOST_PU_CORE1 0x0e1
  216. #define R2057_TXMIX2G_LODC_CORE1 0x0e2
  217. #define R2057_PAD2G_TUNE_PUS_CORE1 0x0e3
  218. #define R2057_IPA2G_GAIN_CORE1 0x0e4
  219. #define R2057_TSSI2G_SPARE1_CORE1 0x0e5
  220. #define R2057_TSSI2G_SPARE2_CORE1 0x0e6
  221. #define R2057_IPA2G_TUNEV_CASCV_PTAT_CORE1 0x0e7
  222. #define R2057_IPA2G_IMAIN_CORE1 0x0e8
  223. #define R2057_IPA2G_CASCONV_CORE1 0x0e9
  224. #define R2057_IPA2G_CASCOFFV_CORE1 0x0ea
  225. #define R2057_IPA2G_BIAS_FILTER_CORE1 0x0eb
  226. #define R2057_TX5G_PKDET_CORE1 0x0ee
  227. #define R2057_PGA_PTAT_TXGM5G_PU_CORE1 0x0ef
  228. #define R2057_PAD5G_PTATS1_CORE1 0x0f0
  229. #define R2057_PAD5G_CLASS_PTATS2_CORE1 0x0f1
  230. #define R2057_PGA_BOOSTPTAT_IMAIN_CORE1 0x0f2
  231. #define R2057_PAD5G_CASCV_IMAIN_CORE1 0x0f3
  232. #define R2057_TXMIX5G_IBOOST_PAD_IAUX_CORE1 0x0f4
  233. #define R2057_PGA_BOOST_TUNE_CORE1 0x0f5
  234. #define R2057_PGA_GAIN_CORE1 0x0f6
  235. #define R2057_PAD5G_CASCOFFV_GAIN_PUS_CORE1 0x0f7
  236. #define R2057_TXMIX5G_BOOST_TUNE_CORE1 0x0f8
  237. #define R2057_PAD5G_TUNE_MISC_PUS_CORE1 0x0f9
  238. #define R2057_IPA5G_IAUX_CORE1 0x0fa
  239. #define R2057_IPA5G_GAIN_CORE1 0x0fb
  240. #define R2057_TSSI5G_SPARE1_CORE1 0x0fc
  241. #define R2057_TSSI5G_SPARE2_CORE1 0x0fd
  242. #define R2057_IPA5G_CASCOFFV_PU_CORE1 0x0fe
  243. #define R2057_IPA5G_PTAT_CORE1 0x0ff
  244. #define R2057_IPA5G_IMAIN_CORE1 0x100
  245. #define R2057_IPA5G_CASCONV_CORE1 0x101
  246. #define R2057_IPA5G_BIAS_FILTER_CORE1 0x102
  247. #define R2057_PAD_BIAS_FILTER_BWS_CORE1 0x105
  248. #define R2057_TR2G_CONFIG1_CORE1_NU 0x106
  249. #define R2057_TR2G_CONFIG2_CORE1_NU 0x107
  250. #define R2057_LNA5G_RFEN_CORE1 0x108
  251. #define R2057_TR5G_CONFIG2_CORE1_NU 0x109
  252. #define R2057_RXRFBIAS_IBOOST_PU_CORE1 0x10a
  253. #define R2057_RXRF_IABAND_RXGM_IMAIN_PTAT_CORE1 0x10b
  254. #define R2057_RXGM_CMFBITAIL_AUXPTAT_CORE1 0x10c
  255. #define R2057_RXMIX_ICORE_RXGM_IAUX_CORE1 0x10d
  256. #define R2057_RXMIX_CMFBITAIL_PU_CORE1 0x10e
  257. #define R2057_LNA2_IMAIN_PTAT_PU_CORE1 0x10f
  258. #define R2057_LNA2_IAUX_PTAT_CORE1 0x110
  259. #define R2057_LNA1_IMAIN_PTAT_PU_CORE1 0x111
  260. #define R2057_LNA15G_INPUT_MATCH_TUNE_CORE1 0x112
  261. #define R2057_RXRFBIAS_BANDSEL_CORE1 0x113
  262. #define R2057_TIA_CONFIG_CORE1 0x114
  263. #define R2057_TIA_IQGAIN_CORE1 0x115
  264. #define R2057_TIA_IBIAS2_CORE1 0x116
  265. #define R2057_TIA_IBIAS1_CORE1 0x117
  266. #define R2057_TIA_SPARE_Q_CORE1 0x118
  267. #define R2057_TIA_SPARE_I_CORE1 0x119
  268. #define R2057_RXMIX2G_PUS_CORE1 0x11a
  269. #define R2057_RXMIX2G_VCMREFS_CORE1 0x11b
  270. #define R2057_RXMIX2G_LODC_QI_CORE1 0x11c
  271. #define R2057_W12G_BW_LNA2G_PUS_CORE1 0x11d
  272. #define R2057_LNA2G_GAIN_CORE1 0x11e
  273. #define R2057_LNA2G_TUNE_CORE1 0x11f
  274. #define R2057_RXMIX5G_PUS_CORE1 0x120
  275. #define R2057_RXMIX5G_VCMREFS_CORE1 0x121
  276. #define R2057_RXMIX5G_LODC_QI_CORE1 0x122
  277. #define R2057_W15G_BW_LNA5G_PUS_CORE1 0x123
  278. #define R2057_LNA5G_GAIN_CORE1 0x124
  279. #define R2057_LNA5G_TUNE_CORE1 0x125
  280. #define R2057_LPFSEL_TXRX_RXBB_PUS_CORE1 0x126
  281. #define R2057_RXBB_BIAS_MASTER_CORE1 0x127
  282. #define R2057_RXBB_VGABUF_IDACS_CORE1 0x128
  283. #define R2057_LPF_VCMREF_TXBUF_VCMREF_CORE1 0x129
  284. #define R2057_TXBUF_VINCM_CORE1 0x12a
  285. #define R2057_TXBUF_IDACS_CORE1 0x12b
  286. #define R2057_LPF_RESP_RXBUF_BW_CORE1 0x12c
  287. #define R2057_RXBB_CC_CORE1 0x12d
  288. #define R2057_RXBB_SPARE3_CORE1 0x12e
  289. #define R2057_RXBB_RCCAL_HPC_CORE1 0x12f
  290. #define R2057_LPF_IDACS_CORE1 0x130
  291. #define R2057_LPFBYP_DCLOOP_BYP_IDAC_CORE1 0x131
  292. #define R2057_TXBUF_GAIN_CORE1 0x132
  293. #define R2057_AFELOOPBACK_AACI_RESP_CORE1 0x133
  294. #define R2057_RXBUF_DEGEN_CORE1 0x134
  295. #define R2057_RXBB_SPARE2_CORE1 0x135
  296. #define R2057_RXBB_SPARE1_CORE1 0x136
  297. #define R2057_RSSI_MASTER_CORE1 0x137
  298. #define R2057_W2_MASTER_CORE1 0x138
  299. #define R2057_NB_MASTER_CORE1 0x139
  300. #define R2057_W2_IDACS0_Q_CORE1 0x13a
  301. #define R2057_W2_IDACS1_Q_CORE1 0x13b
  302. #define R2057_W2_IDACS0_I_CORE1 0x13c
  303. #define R2057_W2_IDACS1_I_CORE1 0x13d
  304. #define R2057_RSSI_GPAIOSEL_W1_IDACS_CORE1 0x13e
  305. #define R2057_NB_IDACS_Q_CORE1 0x13f
  306. #define R2057_NB_IDACS_I_CORE1 0x140
  307. #define R2057_BACKUP4_CORE1 0x146
  308. #define R2057_BACKUP3_CORE1 0x147
  309. #define R2057_BACKUP2_CORE1 0x148
  310. #define R2057_BACKUP1_CORE1 0x149
  311. #define R2057_SPARE16_CORE1 0x14a
  312. #define R2057_SPARE15_CORE1 0x14b
  313. #define R2057_SPARE14_CORE1 0x14c
  314. #define R2057_SPARE13_CORE1 0x14d
  315. #define R2057_SPARE12_CORE1 0x14e
  316. #define R2057_SPARE11_CORE1 0x14f
  317. #define R2057_TX2G_BIAS_RESETS_CORE1 0x150
  318. #define R2057_TX5G_BIAS_RESETS_CORE1 0x151
  319. #define R2057_SPARE8_CORE1 0x152
  320. #define R2057_SPARE7_CORE1 0x153
  321. #define R2057_BUFS_MISC_LPFBW_CORE1 0x154
  322. #define R2057_TXLPF_RCCAL_CORE1 0x155
  323. #define R2057_RXBB_GPAIOSEL_RXLPF_RCCAL_CORE1 0x156
  324. #define R2057_LPF_GAIN_CORE1 0x157
  325. #define R2057_DACBUF_IDACS_BW_CORE1 0x158
  326. #define R2057_DACBUF_VINCM_CORE1 0x159
  327. #define R2057_RCCAL_START_R1_Q1_P1 0x15a
  328. #define R2057_RCCAL_X1 0x15b
  329. #define R2057_RCCAL_TRC0 0x15c
  330. #define R2057_RCCAL_TRC1 0x15d
  331. #define R2057_RCCAL_DONE_OSCCAP 0x15e
  332. #define R2057_RCCAL_N0_0 0x15f
  333. #define R2057_RCCAL_N0_1 0x160
  334. #define R2057_RCCAL_N1_0 0x161
  335. #define R2057_RCCAL_N1_1 0x162
  336. #define R2057_RCAL_STATUS 0x163
  337. #define R2057_XTALPUOVR_PINCTRL 0x164
  338. #define R2057_OVR_REG0 0x165
  339. #define R2057_OVR_REG1 0x166
  340. #define R2057_OVR_REG2 0x167
  341. #define R2057_OVR_REG3 0x168
  342. #define R2057_OVR_REG4 0x169
  343. #define R2057_RCCAL_SCAP_VAL 0x16a
  344. #define R2057_RCCAL_BCAP_VAL 0x16b
  345. #define R2057_RCCAL_HPC_VAL 0x16c
  346. #define R2057_RCCAL_OVERRIDES 0x16d
  347. /* TX core 0 */
  348. #define R2057_TX0_IQCAL_GAIN_BW 0x170
  349. #define R2057_TX0_LOFT_FINE_I 0x171
  350. #define R2057_TX0_LOFT_FINE_Q 0x172
  351. #define R2057_TX0_LOFT_COARSE_I 0x173
  352. #define R2057_TX0_LOFT_COARSE_Q 0x174
  353. #define R2057_TX0_TX_SSI_MASTER 0x175
  354. #define R2057_TX0_IQCAL_VCM_HG 0x176
  355. #define R2057_TX0_IQCAL_IDAC 0x177
  356. #define R2057_TX0_TSSI_VCM 0x178
  357. #define R2057_TX0_TX_SSI_MUX 0x179
  358. #define R2057_TX0_TSSIA 0x17a
  359. #define R2057_TX0_TSSIG 0x17b
  360. #define R2057_TX0_TSSI_MISC1 0x17c
  361. #define R2057_TX0_TXRXCOUPLE_2G_ATTEN 0x17d
  362. #define R2057_TX0_TXRXCOUPLE_2G_PWRUP 0x17e
  363. #define R2057_TX0_TXRXCOUPLE_5G_ATTEN 0x17f
  364. #define R2057_TX0_TXRXCOUPLE_5G_PWRUP 0x180
  365. /* TX core 1 */
  366. #define R2057_TX1_IQCAL_GAIN_BW 0x190
  367. #define R2057_TX1_LOFT_FINE_I 0x191
  368. #define R2057_TX1_LOFT_FINE_Q 0x192
  369. #define R2057_TX1_LOFT_COARSE_I 0x193
  370. #define R2057_TX1_LOFT_COARSE_Q 0x194
  371. #define R2057_TX1_TX_SSI_MASTER 0x195
  372. #define R2057_TX1_IQCAL_VCM_HG 0x196
  373. #define R2057_TX1_IQCAL_IDAC 0x197
  374. #define R2057_TX1_TSSI_VCM 0x198
  375. #define R2057_TX1_TX_SSI_MUX 0x199
  376. #define R2057_TX1_TSSIA 0x19a
  377. #define R2057_TX1_TSSIG 0x19b
  378. #define R2057_TX1_TSSI_MISC1 0x19c
  379. #define R2057_TX1_TXRXCOUPLE_2G_ATTEN 0x19d
  380. #define R2057_TX1_TXRXCOUPLE_2G_PWRUP 0x19e
  381. #define R2057_TX1_TXRXCOUPLE_5G_ATTEN 0x19f
  382. #define R2057_TX1_TXRXCOUPLE_5G_PWRUP 0x1a0
  383. #define R2057_AFE_VCM_CAL_MASTER_CORE0 0x1a1
  384. #define R2057_AFE_SET_VCM_I_CORE0 0x1a2
  385. #define R2057_AFE_SET_VCM_Q_CORE0 0x1a3
  386. #define R2057_AFE_STATUS_VCM_IQADC_CORE0 0x1a4
  387. #define R2057_AFE_STATUS_VCM_I_CORE0 0x1a5
  388. #define R2057_AFE_STATUS_VCM_Q_CORE0 0x1a6
  389. #define R2057_AFE_VCM_CAL_MASTER_CORE1 0x1a7
  390. #define R2057_AFE_SET_VCM_I_CORE1 0x1a8
  391. #define R2057_AFE_SET_VCM_Q_CORE1 0x1a9
  392. #define R2057_AFE_STATUS_VCM_IQADC_CORE1 0x1aa
  393. #define R2057_AFE_STATUS_VCM_I_CORE1 0x1ab
  394. #define R2057_AFE_STATUS_VCM_Q_CORE1 0x1ac
  395. #define R2057v7_DACBUF_VINCM_CORE0 0x1ad
  396. #define R2057v7_RCCAL_MASTER 0x1ae
  397. #define R2057v7_TR2G_CONFIG3_CORE0_NU 0x1af
  398. #define R2057v7_TR2G_CONFIG3_CORE1_NU 0x1b0
  399. #define R2057v7_LOGEN_PUS1 0x1b1
  400. #define R2057v7_OVR_REG5 0x1b2
  401. #define R2057v7_OVR_REG6 0x1b3
  402. #define R2057v7_OVR_REG7 0x1b4
  403. #define R2057v7_OVR_REG8 0x1b5
  404. #define R2057v7_OVR_REG9 0x1b6
  405. #define R2057v7_OVR_REG10 0x1b7
  406. #define R2057v7_OVR_REG11 0x1b8
  407. #define R2057v7_OVR_REG12 0x1b9
  408. #define R2057v7_OVR_REG13 0x1ba
  409. #define R2057v7_OVR_REG14 0x1bb
  410. #define R2057v7_OVR_REG15 0x1bc
  411. #define R2057v7_OVR_REG16 0x1bd
  412. #define R2057v7_OVR_REG1 0x1be
  413. #define R2057v7_OVR_REG18 0x1bf
  414. #define R2057v7_OVR_REG19 0x1c0
  415. #define R2057v7_OVR_REG20 0x1c1
  416. #define R2057v7_OVR_REG21 0x1c2
  417. #define R2057v7_OVR_REG2 0x1c3
  418. #define R2057v7_OVR_REG23 0x1c4
  419. #define R2057v7_OVR_REG24 0x1c5
  420. #define R2057v7_OVR_REG25 0x1c6
  421. #define R2057v7_OVR_REG26 0x1c7
  422. #define R2057v7_OVR_REG27 0x1c8
  423. #define R2057v7_OVR_REG28 0x1c9
  424. #define R2057v7_IQTEST_SEL_PU2 0x1ca
  425. #define R2057_VCM_MASK 0x7
  426. struct b43_nphy_chantabent_rev7 {
  427. /* The channel frequency in MHz */
  428. u16 freq;
  429. /* Radio regs values on channelswitch */
  430. u8 radio_vcocal_countval0;
  431. u8 radio_vcocal_countval1;
  432. u8 radio_rfpll_refmaster_sparextalsize;
  433. u8 radio_rfpll_loopfilter_r1;
  434. u8 radio_rfpll_loopfilter_c2;
  435. u8 radio_rfpll_loopfilter_c1;
  436. u8 radio_cp_kpd_idac;
  437. u8 radio_rfpll_mmd0;
  438. u8 radio_rfpll_mmd1;
  439. u8 radio_vcobuf_tune;
  440. u8 radio_logen_mx2g_tune;
  441. u8 radio_logen_mx5g_tune;
  442. u8 radio_logen_indbuf2g_tune;
  443. u8 radio_logen_indbuf5g_tune;
  444. u8 radio_txmix2g_tune_boost_pu_core0;
  445. u8 radio_pad2g_tune_pus_core0;
  446. u8 radio_pga_boost_tune_core0;
  447. u8 radio_txmix5g_boost_tune_core0;
  448. u8 radio_pad5g_tune_misc_pus_core0;
  449. u8 radio_lna2g_tune_core0;
  450. u8 radio_lna5g_tune_core0;
  451. u8 radio_txmix2g_tune_boost_pu_core1;
  452. u8 radio_pad2g_tune_pus_core1;
  453. u8 radio_pga_boost_tune_core1;
  454. u8 radio_txmix5g_boost_tune_core1;
  455. u8 radio_pad5g_tune_misc_pus_core1;
  456. u8 radio_lna2g_tune_core1;
  457. u8 radio_lna5g_tune_core1;
  458. /* PHY res values on channelswitch */
  459. struct b43_phy_n_sfo_cfg phy_regs;
  460. };
  461. struct b43_nphy_chantabent_rev7_2g {
  462. /* The channel frequency in MHz */
  463. u16 freq;
  464. /* Radio regs values on channelswitch */
  465. u8 radio_vcocal_countval0;
  466. u8 radio_vcocal_countval1;
  467. u8 radio_rfpll_refmaster_sparextalsize;
  468. u8 radio_rfpll_loopfilter_r1;
  469. u8 radio_rfpll_loopfilter_c2;
  470. u8 radio_rfpll_loopfilter_c1;
  471. u8 radio_cp_kpd_idac;
  472. u8 radio_rfpll_mmd0;
  473. u8 radio_rfpll_mmd1;
  474. u8 radio_vcobuf_tune;
  475. u8 radio_logen_mx2g_tune;
  476. u8 radio_logen_indbuf2g_tune;
  477. u8 radio_txmix2g_tune_boost_pu_core0;
  478. u8 radio_pad2g_tune_pus_core0;
  479. u8 radio_lna2g_tune_core0;
  480. u8 radio_txmix2g_tune_boost_pu_core1;
  481. u8 radio_pad2g_tune_pus_core1;
  482. u8 radio_lna2g_tune_core1;
  483. /* PHY regs values on channelswitch */
  484. struct b43_phy_n_sfo_cfg phy_regs;
  485. };
  486. void r2057_upload_inittabs(struct b43_wldev *dev);
  487. void r2057_get_chantabent_rev7(struct b43_wldev *dev, u16 freq,
  488. const struct b43_nphy_chantabent_rev7 **tabent_r7,
  489. const struct b43_nphy_chantabent_rev7_2g **tabent_r7_2g);
  490. #endif /* B43_RADIO_2057_H_ */