ar9462_2p1_initvals.h 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. /*
  2. * Copyright (c) 2010-2011 Atheros Communications Inc.
  3. * Copyright (c) 2011-2012 Qualcomm Atheros Inc.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. #ifndef INITVALS_9462_2P1_H
  18. #define INITVALS_9462_2P1_H
  19. /* AR9462 2.1 */
  20. #define ar9462_2p1_mac_postamble ar9462_2p0_mac_postamble
  21. #define ar9462_2p1_baseband_core ar9462_2p0_baseband_core
  22. #define ar9462_2p1_radio_core ar9462_2p0_radio_core
  23. #define ar9462_2p1_radio_postamble ar9462_2p0_radio_postamble
  24. #define ar9462_2p1_soc_postamble ar9462_2p0_soc_postamble
  25. #define ar9462_2p1_radio_postamble_sys2ant ar9462_2p0_radio_postamble_sys2ant
  26. #define ar9462_2p1_common_rx_gain ar9462_2p0_common_rx_gain
  27. #define ar9462_2p1_common_mixed_rx_gain ar9462_2p0_common_mixed_rx_gain
  28. #define ar9462_2p1_common_5g_xlna_only_rxgain ar9462_2p0_common_5g_xlna_only_rxgain
  29. #define ar9462_2p1_baseband_core_mix_rxgain ar9462_2p0_baseband_core_mix_rxgain
  30. #define ar9462_2p1_baseband_postamble_mix_rxgain ar9462_2p0_baseband_postamble_mix_rxgain
  31. #define ar9462_2p1_baseband_postamble_5g_xlna ar9462_2p0_baseband_postamble_5g_xlna
  32. #define ar9462_2p1_common_wo_xlna_rx_gain ar9462_2p0_common_wo_xlna_rx_gain
  33. #define ar9462_2p1_modes_low_ob_db_tx_gain ar9462_2p0_modes_low_ob_db_tx_gain
  34. #define ar9462_2p1_modes_high_ob_db_tx_gain ar9462_2p0_modes_high_ob_db_tx_gain
  35. #define ar9462_2p1_modes_mix_ob_db_tx_gain ar9462_2p0_modes_mix_ob_db_tx_gain
  36. #define ar9462_2p1_modes_fast_clock ar9462_2p0_modes_fast_clock
  37. #define ar9462_2p1_baseband_core_txfir_coeff_japan_2484 ar9462_2p0_baseband_core_txfir_coeff_japan_2484
  38. #define ar9462_2p1_pciephy_clkreq_disable_L1 ar9462_2p0_pciephy_clkreq_disable_L1
  39. static const u32 ar9462_2p1_mac_core[][2] = {
  40. /* Addr allmodes */
  41. {0x00000008, 0x00000000},
  42. {0x00000030, 0x000e0085},
  43. {0x00000034, 0x00000005},
  44. {0x00000040, 0x00000000},
  45. {0x00000044, 0x00000000},
  46. {0x00000048, 0x00000008},
  47. {0x0000004c, 0x00000010},
  48. {0x00000050, 0x00000000},
  49. {0x00001040, 0x002ffc0f},
  50. {0x00001044, 0x002ffc0f},
  51. {0x00001048, 0x002ffc0f},
  52. {0x0000104c, 0x002ffc0f},
  53. {0x00001050, 0x002ffc0f},
  54. {0x00001054, 0x002ffc0f},
  55. {0x00001058, 0x002ffc0f},
  56. {0x0000105c, 0x002ffc0f},
  57. {0x00001060, 0x002ffc0f},
  58. {0x00001064, 0x002ffc0f},
  59. {0x000010f0, 0x00000100},
  60. {0x00001270, 0x00000000},
  61. {0x000012b0, 0x00000000},
  62. {0x000012f0, 0x00000000},
  63. {0x0000143c, 0x00000000},
  64. {0x0000147c, 0x00000000},
  65. {0x00001810, 0x0f000003},
  66. {0x00008000, 0x00000000},
  67. {0x00008004, 0x00000000},
  68. {0x00008008, 0x00000000},
  69. {0x0000800c, 0x00000000},
  70. {0x00008018, 0x00000000},
  71. {0x00008020, 0x00000000},
  72. {0x00008038, 0x00000000},
  73. {0x0000803c, 0x00080000},
  74. {0x00008040, 0x00000000},
  75. {0x00008044, 0x00000000},
  76. {0x00008048, 0x00000000},
  77. {0x0000804c, 0xffffffff},
  78. {0x00008054, 0x00000000},
  79. {0x00008058, 0x00000000},
  80. {0x0000805c, 0x000fc78f},
  81. {0x00008060, 0x0000000f},
  82. {0x00008064, 0x00000000},
  83. {0x00008070, 0x00000310},
  84. {0x00008074, 0x00000020},
  85. {0x00008078, 0x00000000},
  86. {0x0000809c, 0x0000000f},
  87. {0x000080a0, 0x00000000},
  88. {0x000080a4, 0x02ff0000},
  89. {0x000080a8, 0x0e070605},
  90. {0x000080ac, 0x0000000d},
  91. {0x000080b0, 0x00000000},
  92. {0x000080b4, 0x00000000},
  93. {0x000080b8, 0x00000000},
  94. {0x000080bc, 0x00000000},
  95. {0x000080c0, 0x2a800000},
  96. {0x000080c4, 0x06900168},
  97. {0x000080c8, 0x13881c20},
  98. {0x000080cc, 0x01f40000},
  99. {0x000080d0, 0x00252500},
  100. {0x000080d4, 0x00b00005},
  101. {0x000080d8, 0x00400002},
  102. {0x000080dc, 0x00000000},
  103. {0x000080e0, 0xffffffff},
  104. {0x000080e4, 0x0000ffff},
  105. {0x000080e8, 0x3f3f3f3f},
  106. {0x000080ec, 0x00000000},
  107. {0x000080f0, 0x00000000},
  108. {0x000080f4, 0x00000000},
  109. {0x000080fc, 0x00020000},
  110. {0x00008100, 0x00000000},
  111. {0x00008108, 0x00000052},
  112. {0x0000810c, 0x00000000},
  113. {0x00008110, 0x00000000},
  114. {0x00008114, 0x000007ff},
  115. {0x00008118, 0x000000aa},
  116. {0x0000811c, 0x00003210},
  117. {0x00008124, 0x00000000},
  118. {0x00008128, 0x00000000},
  119. {0x0000812c, 0x00000000},
  120. {0x00008130, 0x00000000},
  121. {0x00008134, 0x00000000},
  122. {0x00008138, 0x00000000},
  123. {0x0000813c, 0x0000ffff},
  124. {0x00008144, 0xffffffff},
  125. {0x00008168, 0x00000000},
  126. {0x0000816c, 0x00000000},
  127. {0x00008170, 0x18486e00},
  128. {0x00008174, 0x33332210},
  129. {0x00008178, 0x00000000},
  130. {0x0000817c, 0x00020000},
  131. {0x000081c4, 0x33332210},
  132. {0x000081c8, 0x00000000},
  133. {0x000081cc, 0x00000000},
  134. {0x000081d4, 0x00000000},
  135. {0x000081ec, 0x00000000},
  136. {0x000081f0, 0x00000000},
  137. {0x000081f4, 0x00000000},
  138. {0x000081f8, 0x00000000},
  139. {0x000081fc, 0x00000000},
  140. {0x00008240, 0x00100000},
  141. {0x00008244, 0x0010f400},
  142. {0x00008248, 0x00000800},
  143. {0x0000824c, 0x0001e800},
  144. {0x00008250, 0x00000000},
  145. {0x00008254, 0x00000000},
  146. {0x00008258, 0x00000000},
  147. {0x0000825c, 0x40000000},
  148. {0x00008260, 0x00080922},
  149. {0x00008264, 0x99c00010},
  150. {0x00008268, 0xffffffff},
  151. {0x0000826c, 0x0000ffff},
  152. {0x00008270, 0x00000000},
  153. {0x00008274, 0x40000000},
  154. {0x00008278, 0x003e4180},
  155. {0x0000827c, 0x00000004},
  156. {0x00008284, 0x0000002c},
  157. {0x00008288, 0x0000002c},
  158. {0x0000828c, 0x000000ff},
  159. {0x00008294, 0x00000000},
  160. {0x00008298, 0x00000000},
  161. {0x0000829c, 0x00000000},
  162. {0x00008300, 0x00000140},
  163. {0x00008314, 0x00000000},
  164. {0x0000831c, 0x0000010d},
  165. {0x00008328, 0x00000000},
  166. {0x0000832c, 0x0000001f},
  167. {0x00008330, 0x00000302},
  168. {0x00008334, 0x00000700},
  169. {0x00008338, 0xffff0000},
  170. {0x0000833c, 0x02400000},
  171. {0x00008340, 0x000107ff},
  172. {0x00008344, 0xaa48107b},
  173. {0x00008348, 0x008f0000},
  174. {0x0000835c, 0x00000000},
  175. {0x00008360, 0xffffffff},
  176. {0x00008364, 0xffffffff},
  177. {0x00008368, 0x00000000},
  178. {0x00008370, 0x00000000},
  179. {0x00008374, 0x000000ff},
  180. {0x00008378, 0x00000000},
  181. {0x0000837c, 0x00000000},
  182. {0x00008380, 0xffffffff},
  183. {0x00008384, 0xffffffff},
  184. {0x00008390, 0xffffffff},
  185. {0x00008394, 0xffffffff},
  186. {0x00008398, 0x00000000},
  187. {0x0000839c, 0x00000000},
  188. {0x000083a4, 0x0000fa14},
  189. {0x000083a8, 0x000f0c00},
  190. {0x000083ac, 0x33332210},
  191. {0x000083b0, 0x33332210},
  192. {0x000083b4, 0x33332210},
  193. {0x000083b8, 0x33332210},
  194. {0x000083bc, 0x00000000},
  195. {0x000083c0, 0x00000000},
  196. {0x000083c4, 0x00000000},
  197. {0x000083c8, 0x00000000},
  198. {0x000083cc, 0x00000200},
  199. {0x000083d0, 0x000301ff},
  200. };
  201. static const u32 ar9462_2p1_baseband_postamble[][5] = {
  202. /* Addr 5G_HT20 5G_HT40 2G_HT40 2G_HT20 */
  203. {0x00009810, 0xd00a8005, 0xd00a8005, 0xd00a8011, 0xd00a800d},
  204. {0x00009820, 0x206a022e, 0x206a022e, 0x206a012e, 0x206a01ae},
  205. {0x00009824, 0x63c640de, 0x5ac640d0, 0x5ac640d0, 0x63c640da},
  206. {0x00009828, 0x0796be89, 0x0696b081, 0x0696b881, 0x09143e81},
  207. {0x0000982c, 0x05eea6d4, 0x05eea6d4, 0x05eea6d4, 0x05eea6d4},
  208. {0x00009830, 0x0000059c, 0x0000059c, 0x0000119c, 0x0000119c},
  209. {0x00009c00, 0x000000c4, 0x000000c4, 0x000000c4, 0x000000c4},
  210. {0x00009e00, 0x0372111a, 0x0372111a, 0x037216a0, 0x037216a2},
  211. {0x00009e04, 0x001c2020, 0x001c2020, 0x001c2020, 0x001c2020},
  212. {0x00009e0c, 0x6c4000e2, 0x6d4000e2, 0x6d4000e2, 0x6c4000d8},
  213. {0x00009e10, 0x92c88d2e, 0x7ec88d2e, 0x7ec84d2e, 0x7ec86d2e},
  214. {0x00009e14, 0x37b95d5e, 0x37b9605e, 0x3236605e, 0x32365a5e},
  215. {0x00009e18, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
  216. {0x00009e1c, 0x0001cf9c, 0x0001cf9c, 0x00021f9c, 0x00021f9c},
  217. {0x00009e20, 0x000003a5, 0x000003a5, 0x000003a5, 0x000003a5},
  218. {0x00009e2c, 0x0000001c, 0x0000001c, 0x00000021, 0x00000021},
  219. {0x00009e3c, 0xcf946220, 0xcf946220, 0xcfd5c782, 0xcfd5c282},
  220. {0x00009e44, 0x62321e27, 0x62321e27, 0xfe291e27, 0xfe291e27},
  221. {0x00009e48, 0x5030201a, 0x5030201a, 0x50302012, 0x50302012},
  222. {0x00009fc8, 0x0003f000, 0x0003f000, 0x0001a000, 0x0001a000},
  223. {0x0000a204, 0x01318fc0, 0x01318fc4, 0x01318fc4, 0x01318fc0},
  224. {0x0000a208, 0x00000104, 0x00000104, 0x00000004, 0x00000004},
  225. {0x0000a22c, 0x01026a2f, 0x01026a27, 0x01026a2f, 0x01026a2f},
  226. {0x0000a230, 0x0000400a, 0x00004014, 0x00004016, 0x0000400b},
  227. {0x0000a234, 0x00000fff, 0x10000fff, 0x10000fff, 0x00000fff},
  228. {0x0000a238, 0xffb81018, 0xffb81018, 0xffb81018, 0xffb81018},
  229. {0x0000a250, 0x00000000, 0x00000000, 0x00000210, 0x00000108},
  230. {0x0000a254, 0x000007d0, 0x00000fa0, 0x00001130, 0x00000898},
  231. {0x0000a258, 0x02020002, 0x02020002, 0x02020002, 0x02020002},
  232. {0x0000a25c, 0x01000e0e, 0x01000e0e, 0x01000e0e, 0x01000e0e},
  233. {0x0000a260, 0x0a021501, 0x0a021501, 0x3a021501, 0x3a021501},
  234. {0x0000a264, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e},
  235. {0x0000a280, 0x00000007, 0x00000007, 0x0000000b, 0x0000000b},
  236. {0x0000a284, 0x00000000, 0x00000000, 0x00000150, 0x00000150},
  237. {0x0000a288, 0x00000110, 0x00000110, 0x00000110, 0x00000110},
  238. {0x0000a28c, 0x00022222, 0x00022222, 0x00022222, 0x00022222},
  239. {0x0000a2c4, 0x00158d18, 0x00158d18, 0x00158d18, 0x00158d18},
  240. {0x0000a2d0, 0x00041981, 0x00041981, 0x00041981, 0x00041982},
  241. {0x0000a2d8, 0x7999a83b, 0x7999a83b, 0x7999a83b, 0x7999a83b},
  242. {0x0000a358, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
  243. {0x0000a3a4, 0x00000050, 0x00000050, 0x00000000, 0x00000000},
  244. {0x0000a3a8, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa},
  245. {0x0000a3ac, 0xaaaaaa00, 0xaa30aa30, 0xaaaaaa00, 0xaaaaaa00},
  246. {0x0000a41c, 0x1ce739ce, 0x1ce739ce, 0x1ce739ce, 0x1ce739ce},
  247. {0x0000a420, 0x000001ce, 0x000001ce, 0x000001ce, 0x000001ce},
  248. {0x0000a424, 0x1ce739ce, 0x1ce739ce, 0x1ce739ce, 0x1ce739ce},
  249. {0x0000a428, 0x000001ce, 0x000001ce, 0x000001ce, 0x000001ce},
  250. {0x0000a42c, 0x1ce739ce, 0x1ce739ce, 0x1ce739ce, 0x1ce739ce},
  251. {0x0000a430, 0x1ce739ce, 0x1ce739ce, 0x1ce739ce, 0x1ce739ce},
  252. {0x0000a830, 0x0000019c, 0x0000019c, 0x0000019c, 0x0000019c},
  253. {0x0000ae04, 0x001c0000, 0x001c0000, 0x001c0000, 0x00100000},
  254. {0x0000ae18, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
  255. {0x0000ae1c, 0x0000019c, 0x0000019c, 0x0000019c, 0x0000019c},
  256. {0x0000ae20, 0x000001a6, 0x000001a6, 0x000001aa, 0x000001aa},
  257. {0x0000b284, 0x00000000, 0x00000000, 0x00000550, 0x00000550},
  258. };
  259. static const u32 ar9462_2p1_soc_preamble[][2] = {
  260. /* Addr allmodes */
  261. {0x000040a4, 0x00a0c9c9},
  262. {0x00007020, 0x00000000},
  263. {0x00007034, 0x00000002},
  264. {0x00007038, 0x000004c2},
  265. };
  266. #endif /* INITVALS_9462_2P1_H */