af9013_priv.h 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909
  1. /*
  2. * Afatech AF9013 demodulator driver
  3. *
  4. * Copyright (C) 2007 Antti Palosaari <crope@iki.fi>
  5. * Copyright (C) 2011 Antti Palosaari <crope@iki.fi>
  6. *
  7. * Thanks to Afatech who kindly provided information.
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22. *
  23. */
  24. #ifndef AF9013_PRIV_H
  25. #define AF9013_PRIV_H
  26. #include "dvb_frontend.h"
  27. #include "af9013.h"
  28. #include <linux/firmware.h>
  29. #define AF9013_FIRMWARE "dvb-fe-af9013.fw"
  30. struct af9013_reg_bit {
  31. u16 addr;
  32. u8 pos:4;
  33. u8 len:4;
  34. u8 val;
  35. };
  36. struct af9013_snr {
  37. u32 val;
  38. u8 snr;
  39. };
  40. struct af9013_coeff {
  41. u32 clock;
  42. u32 bandwidth_hz;
  43. u8 val[24];
  44. };
  45. /* pre-calculated coeff lookup table */
  46. static const struct af9013_coeff coeff_lut[] = {
  47. /* 28.800 MHz */
  48. { 28800000, 8000000, { 0x02, 0x8a, 0x28, 0xa3, 0x05, 0x14,
  49. 0x51, 0x11, 0x00, 0xa2, 0x8f, 0x3d, 0x00, 0xa2, 0x8a,
  50. 0x29, 0x00, 0xa2, 0x85, 0x14, 0x01, 0x45, 0x14, 0x14 } },
  51. { 28800000, 7000000, { 0x02, 0x38, 0xe3, 0x8e, 0x04, 0x71,
  52. 0xc7, 0x07, 0x00, 0x8e, 0x3d, 0x55, 0x00, 0x8e, 0x38,
  53. 0xe4, 0x00, 0x8e, 0x34, 0x72, 0x01, 0x1c, 0x71, 0x32 } },
  54. { 28800000, 6000000, { 0x01, 0xe7, 0x9e, 0x7a, 0x03, 0xcf,
  55. 0x3c, 0x3d, 0x00, 0x79, 0xeb, 0x6e, 0x00, 0x79, 0xe7,
  56. 0x9e, 0x00, 0x79, 0xe3, 0xcf, 0x00, 0xf3, 0xcf, 0x0f } },
  57. /* 20.480 MHz */
  58. { 20480000, 8000000, { 0x03, 0x92, 0x49, 0x26, 0x07, 0x24,
  59. 0x92, 0x13, 0x00, 0xe4, 0x99, 0x6e, 0x00, 0xe4, 0x92,
  60. 0x49, 0x00, 0xe4, 0x8b, 0x25, 0x01, 0xc9, 0x24, 0x25 } },
  61. { 20480000, 7000000, { 0x03, 0x20, 0x00, 0x01, 0x06, 0x40,
  62. 0x00, 0x00, 0x00, 0xc8, 0x06, 0x40, 0x00, 0xc8, 0x00,
  63. 0x00, 0x00, 0xc7, 0xf9, 0xc0, 0x01, 0x90, 0x00, 0x00 } },
  64. { 20480000, 6000000, { 0x02, 0xad, 0xb6, 0xdc, 0x05, 0x5b,
  65. 0x6d, 0x2e, 0x00, 0xab, 0x73, 0x13, 0x00, 0xab, 0x6d,
  66. 0xb7, 0x00, 0xab, 0x68, 0x5c, 0x01, 0x56, 0xdb, 0x1c } },
  67. /* 28.000 MHz */
  68. { 28000000, 8000000, { 0x02, 0x9c, 0xbc, 0x15, 0x05, 0x39,
  69. 0x78, 0x0a, 0x00, 0xa7, 0x34, 0x3f, 0x00, 0xa7, 0x2f,
  70. 0x05, 0x00, 0xa7, 0x29, 0xcc, 0x01, 0x4e, 0x5e, 0x03 } },
  71. { 28000000, 7000000, { 0x02, 0x49, 0x24, 0x92, 0x04, 0x92,
  72. 0x49, 0x09, 0x00, 0x92, 0x4d, 0xb7, 0x00, 0x92, 0x49,
  73. 0x25, 0x00, 0x92, 0x44, 0x92, 0x01, 0x24, 0x92, 0x12 } },
  74. { 28000000, 6000000, { 0x01, 0xf5, 0x8d, 0x10, 0x03, 0xeb,
  75. 0x1a, 0x08, 0x00, 0x7d, 0x67, 0x2f, 0x00, 0x7d, 0x63,
  76. 0x44, 0x00, 0x7d, 0x5f, 0x59, 0x00, 0xfa, 0xc6, 0x22 } },
  77. /* 25.000 MHz */
  78. { 25000000, 8000000, { 0x02, 0xec, 0xfb, 0x9d, 0x05, 0xd9,
  79. 0xf7, 0x0e, 0x00, 0xbb, 0x44, 0xc1, 0x00, 0xbb, 0x3e,
  80. 0xe7, 0x00, 0xbb, 0x39, 0x0d, 0x01, 0x76, 0x7d, 0x34 } },
  81. { 25000000, 7000000, { 0x02, 0x8f, 0x5c, 0x29, 0x05, 0x1e,
  82. 0xb8, 0x14, 0x00, 0xa3, 0xdc, 0x29, 0x00, 0xa3, 0xd7,
  83. 0x0a, 0x00, 0xa3, 0xd1, 0xec, 0x01, 0x47, 0xae, 0x05 } },
  84. { 25000000, 6000000, { 0x02, 0x31, 0xbc, 0xb5, 0x04, 0x63,
  85. 0x79, 0x1b, 0x00, 0x8c, 0x73, 0x91, 0x00, 0x8c, 0x6f,
  86. 0x2d, 0x00, 0x8c, 0x6a, 0xca, 0x01, 0x18, 0xde, 0x17 } },
  87. };
  88. /* QPSK SNR lookup table */
  89. static const struct af9013_snr qpsk_snr_lut[] = {
  90. { 0x000000, 0 },
  91. { 0x0b4771, 0 },
  92. { 0x0c1aed, 1 },
  93. { 0x0d0d27, 2 },
  94. { 0x0e4d19, 3 },
  95. { 0x0e5da8, 4 },
  96. { 0x107097, 5 },
  97. { 0x116975, 6 },
  98. { 0x1252d9, 7 },
  99. { 0x131fa4, 8 },
  100. { 0x13d5e1, 9 },
  101. { 0x148e53, 10 },
  102. { 0x15358b, 11 },
  103. { 0x15dd29, 12 },
  104. { 0x168112, 13 },
  105. { 0x170b61, 14 },
  106. { 0xffffff, 15 },
  107. };
  108. /* QAM16 SNR lookup table */
  109. static const struct af9013_snr qam16_snr_lut[] = {
  110. { 0x000000, 0 },
  111. { 0x05eb62, 5 },
  112. { 0x05fecf, 6 },
  113. { 0x060b80, 7 },
  114. { 0x062501, 8 },
  115. { 0x064865, 9 },
  116. { 0x069604, 10 },
  117. { 0x06f356, 11 },
  118. { 0x07706a, 12 },
  119. { 0x0804d3, 13 },
  120. { 0x089d1a, 14 },
  121. { 0x093e3d, 15 },
  122. { 0x09e35d, 16 },
  123. { 0x0a7c3c, 17 },
  124. { 0x0afaf8, 18 },
  125. { 0x0b719d, 19 },
  126. { 0xffffff, 20 },
  127. };
  128. /* QAM64 SNR lookup table */
  129. static const struct af9013_snr qam64_snr_lut[] = {
  130. { 0x000000, 0 },
  131. { 0x03109b, 12 },
  132. { 0x0310d4, 13 },
  133. { 0x031920, 14 },
  134. { 0x0322d0, 15 },
  135. { 0x0339fc, 16 },
  136. { 0x0364a1, 17 },
  137. { 0x038bcc, 18 },
  138. { 0x03c7d3, 19 },
  139. { 0x0408cc, 20 },
  140. { 0x043bed, 21 },
  141. { 0x048061, 22 },
  142. { 0x04be95, 23 },
  143. { 0x04fa7d, 24 },
  144. { 0x052405, 25 },
  145. { 0x05570d, 26 },
  146. { 0xffffff, 27 },
  147. };
  148. static const struct af9013_reg_bit ofsm_init[] = {
  149. { 0xd73a, 0, 8, 0xa1 },
  150. { 0xd73b, 0, 8, 0x1f },
  151. { 0xd73c, 4, 4, 0x0a },
  152. { 0xd732, 3, 1, 0x00 },
  153. { 0xd731, 4, 2, 0x03 },
  154. { 0xd73d, 7, 1, 0x01 },
  155. { 0xd740, 0, 1, 0x00 },
  156. { 0xd740, 1, 1, 0x00 },
  157. { 0xd740, 2, 1, 0x00 },
  158. { 0xd740, 3, 1, 0x01 },
  159. { 0xd3c1, 4, 1, 0x01 },
  160. { 0x9124, 0, 8, 0x58 },
  161. { 0x9125, 0, 2, 0x02 },
  162. { 0xd3a2, 0, 8, 0x00 },
  163. { 0xd3a3, 0, 8, 0x04 },
  164. { 0xd305, 0, 8, 0x32 },
  165. { 0xd306, 0, 8, 0x10 },
  166. { 0xd304, 0, 8, 0x04 },
  167. { 0x9112, 0, 1, 0x01 },
  168. { 0x911d, 0, 1, 0x01 },
  169. { 0x911a, 0, 1, 0x01 },
  170. { 0x911b, 0, 1, 0x01 },
  171. { 0x9bce, 0, 4, 0x02 },
  172. { 0x9116, 0, 1, 0x01 },
  173. { 0x9122, 0, 8, 0xd0 },
  174. { 0xd2e0, 0, 8, 0xd0 },
  175. { 0xd2e9, 0, 4, 0x0d },
  176. { 0xd38c, 0, 8, 0xfc },
  177. { 0xd38d, 0, 8, 0x00 },
  178. { 0xd38e, 0, 8, 0x7e },
  179. { 0xd38f, 0, 8, 0x00 },
  180. { 0xd390, 0, 8, 0x2f },
  181. { 0xd145, 4, 1, 0x01 },
  182. { 0xd1a9, 4, 1, 0x01 },
  183. { 0xd158, 5, 3, 0x01 },
  184. { 0xd159, 0, 6, 0x06 },
  185. { 0xd167, 0, 8, 0x00 },
  186. { 0xd168, 0, 4, 0x07 },
  187. { 0xd1c3, 5, 3, 0x00 },
  188. { 0xd1c4, 0, 6, 0x00 },
  189. { 0xd1c5, 0, 7, 0x10 },
  190. { 0xd1c6, 0, 3, 0x02 },
  191. { 0xd080, 2, 5, 0x03 },
  192. { 0xd081, 4, 4, 0x09 },
  193. { 0xd098, 4, 4, 0x0f },
  194. { 0xd098, 0, 4, 0x03 },
  195. { 0xdbc0, 4, 1, 0x01 },
  196. { 0xdbc7, 0, 8, 0x08 },
  197. { 0xdbc8, 4, 4, 0x00 },
  198. { 0xdbc9, 0, 5, 0x01 },
  199. { 0xd280, 0, 8, 0xe0 },
  200. { 0xd281, 0, 8, 0xff },
  201. { 0xd282, 0, 8, 0xff },
  202. { 0xd283, 0, 8, 0xc3 },
  203. { 0xd284, 0, 8, 0xff },
  204. { 0xd285, 0, 4, 0x01 },
  205. { 0xd0f0, 0, 7, 0x1a },
  206. { 0xd0f1, 4, 1, 0x01 },
  207. { 0xd0f2, 0, 8, 0x0c },
  208. { 0xd101, 5, 3, 0x06 },
  209. { 0xd103, 0, 4, 0x08 },
  210. { 0xd0f8, 0, 7, 0x20 },
  211. { 0xd111, 5, 1, 0x00 },
  212. { 0xd111, 6, 1, 0x00 },
  213. { 0x910b, 0, 8, 0x0a },
  214. { 0x9115, 0, 8, 0x02 },
  215. { 0x910c, 0, 8, 0x02 },
  216. { 0x910d, 0, 8, 0x08 },
  217. { 0x910e, 0, 8, 0x0a },
  218. { 0x9bf6, 0, 8, 0x06 },
  219. { 0x9bf8, 0, 8, 0x02 },
  220. { 0x9bf7, 0, 8, 0x05 },
  221. { 0x9bf9, 0, 8, 0x0f },
  222. { 0x9bfc, 0, 8, 0x13 },
  223. { 0x9bd3, 0, 8, 0xff },
  224. { 0x9bbe, 0, 1, 0x01 },
  225. { 0x9bcc, 0, 1, 0x01 },
  226. };
  227. /* Panasonic ENV77H11D5 tuner init
  228. AF9013_TUNER_ENV77H11D5 = 129 */
  229. static const struct af9013_reg_bit tuner_init_env77h11d5[] = {
  230. { 0x9bd5, 0, 8, 0x01 },
  231. { 0x9bd6, 0, 8, 0x03 },
  232. { 0x9bbe, 0, 8, 0x01 },
  233. { 0xd1a0, 1, 1, 0x01 },
  234. { 0xd000, 0, 1, 0x01 },
  235. { 0xd000, 1, 1, 0x00 },
  236. { 0xd001, 1, 1, 0x01 },
  237. { 0xd001, 0, 1, 0x00 },
  238. { 0xd001, 5, 1, 0x00 },
  239. { 0xd002, 0, 5, 0x19 },
  240. { 0xd003, 0, 5, 0x1a },
  241. { 0xd004, 0, 5, 0x19 },
  242. { 0xd005, 0, 5, 0x1a },
  243. { 0xd00e, 0, 5, 0x10 },
  244. { 0xd00f, 0, 3, 0x04 },
  245. { 0xd00f, 3, 3, 0x05 },
  246. { 0xd010, 0, 3, 0x04 },
  247. { 0xd010, 3, 3, 0x05 },
  248. { 0xd016, 4, 4, 0x03 },
  249. { 0xd01f, 0, 6, 0x0a },
  250. { 0xd020, 0, 6, 0x0a },
  251. { 0x9bda, 0, 8, 0x00 },
  252. { 0x9be3, 0, 8, 0x00 },
  253. { 0xd015, 0, 8, 0x50 },
  254. { 0xd016, 0, 1, 0x00 },
  255. { 0xd044, 0, 8, 0x46 },
  256. { 0xd045, 0, 1, 0x00 },
  257. { 0xd008, 0, 8, 0xdf },
  258. { 0xd009, 0, 2, 0x02 },
  259. { 0xd006, 0, 8, 0x44 },
  260. { 0xd007, 0, 2, 0x01 },
  261. { 0xd00c, 0, 8, 0xeb },
  262. { 0xd00d, 0, 2, 0x02 },
  263. { 0xd00a, 0, 8, 0xf4 },
  264. { 0xd00b, 0, 2, 0x01 },
  265. { 0x9bba, 0, 8, 0xf9 },
  266. { 0x9bc3, 0, 8, 0xdf },
  267. { 0x9bc4, 0, 8, 0x02 },
  268. { 0x9bc5, 0, 8, 0xeb },
  269. { 0x9bc6, 0, 8, 0x02 },
  270. { 0x9bc9, 0, 8, 0x52 },
  271. { 0xd011, 0, 8, 0x3c },
  272. { 0xd012, 0, 2, 0x01 },
  273. { 0xd013, 0, 8, 0xf7 },
  274. { 0xd014, 0, 2, 0x02 },
  275. { 0xd040, 0, 8, 0x0b },
  276. { 0xd041, 0, 2, 0x02 },
  277. { 0xd042, 0, 8, 0x4d },
  278. { 0xd043, 0, 2, 0x00 },
  279. { 0xd045, 1, 1, 0x00 },
  280. { 0x9bcf, 0, 1, 0x01 },
  281. { 0xd045, 2, 1, 0x01 },
  282. { 0xd04f, 0, 8, 0x9a },
  283. { 0xd050, 0, 1, 0x01 },
  284. { 0xd051, 0, 8, 0x5a },
  285. { 0xd052, 0, 1, 0x01 },
  286. { 0xd053, 0, 8, 0x50 },
  287. { 0xd054, 0, 8, 0x46 },
  288. { 0x9bd7, 0, 8, 0x0a },
  289. { 0x9bd8, 0, 8, 0x14 },
  290. { 0x9bd9, 0, 8, 0x08 },
  291. };
  292. /* Microtune MT2060 tuner init
  293. AF9013_TUNER_MT2060 = 130 */
  294. static const struct af9013_reg_bit tuner_init_mt2060[] = {
  295. { 0x9bd5, 0, 8, 0x01 },
  296. { 0x9bd6, 0, 8, 0x07 },
  297. { 0xd1a0, 1, 1, 0x01 },
  298. { 0xd000, 0, 1, 0x01 },
  299. { 0xd000, 1, 1, 0x00 },
  300. { 0xd001, 1, 1, 0x01 },
  301. { 0xd001, 0, 1, 0x00 },
  302. { 0xd001, 5, 1, 0x00 },
  303. { 0xd002, 0, 5, 0x19 },
  304. { 0xd003, 0, 5, 0x1a },
  305. { 0xd004, 0, 5, 0x19 },
  306. { 0xd005, 0, 5, 0x1a },
  307. { 0xd00e, 0, 5, 0x10 },
  308. { 0xd00f, 0, 3, 0x04 },
  309. { 0xd00f, 3, 3, 0x05 },
  310. { 0xd010, 0, 3, 0x04 },
  311. { 0xd010, 3, 3, 0x05 },
  312. { 0xd016, 4, 4, 0x03 },
  313. { 0xd01f, 0, 6, 0x0a },
  314. { 0xd020, 0, 6, 0x0a },
  315. { 0x9bda, 0, 8, 0x00 },
  316. { 0x9be3, 0, 8, 0x00 },
  317. { 0x9bbe, 0, 1, 0x00 },
  318. { 0x9bcc, 0, 1, 0x00 },
  319. { 0x9bb9, 0, 8, 0x75 },
  320. { 0x9bcd, 0, 8, 0x24 },
  321. { 0x9bff, 0, 8, 0x30 },
  322. { 0xd015, 0, 8, 0x46 },
  323. { 0xd016, 0, 1, 0x00 },
  324. { 0xd044, 0, 8, 0x46 },
  325. { 0xd045, 0, 1, 0x00 },
  326. { 0xd008, 0, 8, 0x0f },
  327. { 0xd009, 0, 2, 0x02 },
  328. { 0xd006, 0, 8, 0x32 },
  329. { 0xd007, 0, 2, 0x01 },
  330. { 0xd00c, 0, 8, 0x36 },
  331. { 0xd00d, 0, 2, 0x03 },
  332. { 0xd00a, 0, 8, 0x35 },
  333. { 0xd00b, 0, 2, 0x01 },
  334. { 0x9bc7, 0, 8, 0x07 },
  335. { 0x9bc8, 0, 8, 0x90 },
  336. { 0x9bc3, 0, 8, 0x0f },
  337. { 0x9bc4, 0, 8, 0x02 },
  338. { 0x9bc5, 0, 8, 0x36 },
  339. { 0x9bc6, 0, 8, 0x03 },
  340. { 0x9bba, 0, 8, 0xc9 },
  341. { 0x9bc9, 0, 8, 0x79 },
  342. { 0xd011, 0, 8, 0x10 },
  343. { 0xd012, 0, 2, 0x01 },
  344. { 0xd013, 0, 8, 0x45 },
  345. { 0xd014, 0, 2, 0x03 },
  346. { 0xd040, 0, 8, 0x98 },
  347. { 0xd041, 0, 2, 0x00 },
  348. { 0xd042, 0, 8, 0xcf },
  349. { 0xd043, 0, 2, 0x03 },
  350. { 0xd045, 1, 1, 0x00 },
  351. { 0x9bcf, 0, 1, 0x01 },
  352. { 0xd045, 2, 1, 0x01 },
  353. { 0xd04f, 0, 8, 0x9a },
  354. { 0xd050, 0, 1, 0x01 },
  355. { 0xd051, 0, 8, 0x5a },
  356. { 0xd052, 0, 1, 0x01 },
  357. { 0xd053, 0, 8, 0x50 },
  358. { 0xd054, 0, 8, 0x46 },
  359. { 0x9bd7, 0, 8, 0x0a },
  360. { 0x9bd8, 0, 8, 0x14 },
  361. { 0x9bd9, 0, 8, 0x08 },
  362. { 0x9bd0, 0, 8, 0xcc },
  363. { 0x9be4, 0, 8, 0xa0 },
  364. { 0x9bbd, 0, 8, 0x8e },
  365. { 0x9be2, 0, 8, 0x4d },
  366. { 0x9bee, 0, 1, 0x01 },
  367. };
  368. /* Microtune MT2060 tuner init
  369. AF9013_TUNER_MT2060_2 = 147 */
  370. static const struct af9013_reg_bit tuner_init_mt2060_2[] = {
  371. { 0x9bd5, 0, 8, 0x01 },
  372. { 0x9bd6, 0, 8, 0x06 },
  373. { 0x9bbe, 0, 8, 0x01 },
  374. { 0xd1a0, 1, 1, 0x01 },
  375. { 0xd000, 0, 1, 0x01 },
  376. { 0xd000, 1, 1, 0x00 },
  377. { 0xd001, 1, 1, 0x01 },
  378. { 0xd001, 0, 1, 0x00 },
  379. { 0xd001, 5, 1, 0x00 },
  380. { 0xd002, 0, 5, 0x19 },
  381. { 0xd003, 0, 5, 0x1a },
  382. { 0xd004, 0, 5, 0x19 },
  383. { 0xd005, 0, 5, 0x1a },
  384. { 0xd00e, 0, 5, 0x10 },
  385. { 0xd00f, 0, 3, 0x04 },
  386. { 0xd00f, 3, 3, 0x05 },
  387. { 0xd010, 0, 3, 0x04 },
  388. { 0xd010, 3, 3, 0x05 },
  389. { 0xd016, 4, 4, 0x03 },
  390. { 0xd01f, 0, 6, 0x0a },
  391. { 0xd020, 0, 6, 0x0a },
  392. { 0xd015, 0, 8, 0x46 },
  393. { 0xd016, 0, 1, 0x00 },
  394. { 0xd044, 0, 8, 0x46 },
  395. { 0xd045, 0, 1, 0x00 },
  396. { 0xd008, 0, 8, 0x0f },
  397. { 0xd009, 0, 2, 0x02 },
  398. { 0xd006, 0, 8, 0x32 },
  399. { 0xd007, 0, 2, 0x01 },
  400. { 0xd00c, 0, 8, 0x36 },
  401. { 0xd00d, 0, 2, 0x03 },
  402. { 0xd00a, 0, 8, 0x35 },
  403. { 0xd00b, 0, 2, 0x01 },
  404. { 0x9bc7, 0, 8, 0x07 },
  405. { 0x9bc8, 0, 8, 0x90 },
  406. { 0x9bc3, 0, 8, 0x0f },
  407. { 0x9bc4, 0, 8, 0x02 },
  408. { 0x9bc5, 0, 8, 0x36 },
  409. { 0x9bc6, 0, 8, 0x03 },
  410. { 0x9bba, 0, 8, 0xc9 },
  411. { 0x9bc9, 0, 8, 0x79 },
  412. { 0xd011, 0, 8, 0x10 },
  413. { 0xd012, 0, 2, 0x01 },
  414. { 0xd013, 0, 8, 0x45 },
  415. { 0xd014, 0, 2, 0x03 },
  416. { 0xd040, 0, 8, 0x98 },
  417. { 0xd041, 0, 2, 0x00 },
  418. { 0xd042, 0, 8, 0xcf },
  419. { 0xd043, 0, 2, 0x03 },
  420. { 0xd045, 1, 1, 0x00 },
  421. { 0x9bcf, 0, 8, 0x01 },
  422. { 0xd045, 2, 1, 0x01 },
  423. { 0xd04f, 0, 8, 0x9a },
  424. { 0xd050, 0, 1, 0x01 },
  425. { 0xd051, 0, 8, 0x5a },
  426. { 0xd052, 0, 1, 0x01 },
  427. { 0xd053, 0, 8, 0x96 },
  428. { 0xd054, 0, 8, 0x46 },
  429. { 0xd045, 7, 1, 0x00 },
  430. { 0x9bd7, 0, 8, 0x0a },
  431. { 0x9bd8, 0, 8, 0x14 },
  432. { 0x9bd9, 0, 8, 0x08 },
  433. };
  434. /* MaxLinear MXL5003 tuner init
  435. AF9013_TUNER_MXL5003D = 3 */
  436. static const struct af9013_reg_bit tuner_init_mxl5003d[] = {
  437. { 0x9bd5, 0, 8, 0x01 },
  438. { 0x9bd6, 0, 8, 0x09 },
  439. { 0xd1a0, 1, 1, 0x01 },
  440. { 0xd000, 0, 1, 0x01 },
  441. { 0xd000, 1, 1, 0x00 },
  442. { 0xd001, 1, 1, 0x01 },
  443. { 0xd001, 0, 1, 0x00 },
  444. { 0xd001, 5, 1, 0x00 },
  445. { 0xd002, 0, 5, 0x19 },
  446. { 0xd003, 0, 5, 0x1a },
  447. { 0xd004, 0, 5, 0x19 },
  448. { 0xd005, 0, 5, 0x1a },
  449. { 0xd00e, 0, 5, 0x10 },
  450. { 0xd00f, 0, 3, 0x04 },
  451. { 0xd00f, 3, 3, 0x05 },
  452. { 0xd010, 0, 3, 0x04 },
  453. { 0xd010, 3, 3, 0x05 },
  454. { 0xd016, 4, 4, 0x03 },
  455. { 0xd01f, 0, 6, 0x0a },
  456. { 0xd020, 0, 6, 0x0a },
  457. { 0x9bda, 0, 8, 0x00 },
  458. { 0x9be3, 0, 8, 0x00 },
  459. { 0x9bfc, 0, 8, 0x0f },
  460. { 0x9bf6, 0, 8, 0x01 },
  461. { 0x9bbe, 0, 1, 0x01 },
  462. { 0xd015, 0, 8, 0x33 },
  463. { 0xd016, 0, 1, 0x00 },
  464. { 0xd044, 0, 8, 0x40 },
  465. { 0xd045, 0, 1, 0x00 },
  466. { 0xd008, 0, 8, 0x0f },
  467. { 0xd009, 0, 2, 0x02 },
  468. { 0xd006, 0, 8, 0x6c },
  469. { 0xd007, 0, 2, 0x00 },
  470. { 0xd00c, 0, 8, 0x3d },
  471. { 0xd00d, 0, 2, 0x00 },
  472. { 0xd00a, 0, 8, 0x45 },
  473. { 0xd00b, 0, 2, 0x01 },
  474. { 0x9bc7, 0, 8, 0x07 },
  475. { 0x9bc8, 0, 8, 0x52 },
  476. { 0x9bc3, 0, 8, 0x0f },
  477. { 0x9bc4, 0, 8, 0x02 },
  478. { 0x9bc5, 0, 8, 0x3d },
  479. { 0x9bc6, 0, 8, 0x00 },
  480. { 0x9bba, 0, 8, 0xa2 },
  481. { 0x9bc9, 0, 8, 0xa0 },
  482. { 0xd011, 0, 8, 0x56 },
  483. { 0xd012, 0, 2, 0x00 },
  484. { 0xd013, 0, 8, 0x50 },
  485. { 0xd014, 0, 2, 0x00 },
  486. { 0xd040, 0, 8, 0x56 },
  487. { 0xd041, 0, 2, 0x00 },
  488. { 0xd042, 0, 8, 0x50 },
  489. { 0xd043, 0, 2, 0x00 },
  490. { 0xd045, 1, 1, 0x00 },
  491. { 0x9bcf, 0, 8, 0x01 },
  492. { 0xd045, 2, 1, 0x01 },
  493. { 0xd04f, 0, 8, 0x9a },
  494. { 0xd050, 0, 1, 0x01 },
  495. { 0xd051, 0, 8, 0x5a },
  496. { 0xd052, 0, 1, 0x01 },
  497. { 0xd053, 0, 8, 0x50 },
  498. { 0xd054, 0, 8, 0x46 },
  499. { 0x9bd7, 0, 8, 0x0a },
  500. { 0x9bd8, 0, 8, 0x14 },
  501. { 0x9bd9, 0, 8, 0x08 },
  502. };
  503. /* MaxLinear MXL5005S & MXL5007T tuner init
  504. AF9013_TUNER_MXL5005D = 13
  505. AF9013_TUNER_MXL5005R = 30
  506. AF9013_TUNER_MXL5007T = 177 */
  507. static const struct af9013_reg_bit tuner_init_mxl5005[] = {
  508. { 0x9bd5, 0, 8, 0x01 },
  509. { 0x9bd6, 0, 8, 0x07 },
  510. { 0xd1a0, 1, 1, 0x01 },
  511. { 0xd000, 0, 1, 0x01 },
  512. { 0xd000, 1, 1, 0x00 },
  513. { 0xd001, 1, 1, 0x01 },
  514. { 0xd001, 0, 1, 0x00 },
  515. { 0xd001, 5, 1, 0x00 },
  516. { 0xd002, 0, 5, 0x19 },
  517. { 0xd003, 0, 5, 0x1a },
  518. { 0xd004, 0, 5, 0x19 },
  519. { 0xd005, 0, 5, 0x1a },
  520. { 0xd00e, 0, 5, 0x10 },
  521. { 0xd00f, 0, 3, 0x04 },
  522. { 0xd00f, 3, 3, 0x05 },
  523. { 0xd010, 0, 3, 0x04 },
  524. { 0xd010, 3, 3, 0x05 },
  525. { 0xd016, 4, 4, 0x03 },
  526. { 0xd01f, 0, 6, 0x0a },
  527. { 0xd020, 0, 6, 0x0a },
  528. { 0x9bda, 0, 8, 0x01 },
  529. { 0x9be3, 0, 8, 0x01 },
  530. { 0x9bbe, 0, 1, 0x01 },
  531. { 0x9bcc, 0, 1, 0x01 },
  532. { 0x9bb9, 0, 8, 0x00 },
  533. { 0x9bcd, 0, 8, 0x28 },
  534. { 0x9bff, 0, 8, 0x24 },
  535. { 0xd015, 0, 8, 0x40 },
  536. { 0xd016, 0, 1, 0x00 },
  537. { 0xd044, 0, 8, 0x40 },
  538. { 0xd045, 0, 1, 0x00 },
  539. { 0xd008, 0, 8, 0x0f },
  540. { 0xd009, 0, 2, 0x02 },
  541. { 0xd006, 0, 8, 0x73 },
  542. { 0xd007, 0, 2, 0x01 },
  543. { 0xd00c, 0, 8, 0xfa },
  544. { 0xd00d, 0, 2, 0x01 },
  545. { 0xd00a, 0, 8, 0xff },
  546. { 0xd00b, 0, 2, 0x01 },
  547. { 0x9bc7, 0, 8, 0x23 },
  548. { 0x9bc8, 0, 8, 0x55 },
  549. { 0x9bc3, 0, 8, 0x01 },
  550. { 0x9bc4, 0, 8, 0x02 },
  551. { 0x9bc5, 0, 8, 0xfa },
  552. { 0x9bc6, 0, 8, 0x01 },
  553. { 0x9bba, 0, 8, 0xff },
  554. { 0x9bc9, 0, 8, 0xff },
  555. { 0x9bd3, 0, 8, 0x95 },
  556. { 0xd011, 0, 8, 0x70 },
  557. { 0xd012, 0, 2, 0x01 },
  558. { 0xd013, 0, 8, 0xfb },
  559. { 0xd014, 0, 2, 0x01 },
  560. { 0xd040, 0, 8, 0x70 },
  561. { 0xd041, 0, 2, 0x01 },
  562. { 0xd042, 0, 8, 0xfb },
  563. { 0xd043, 0, 2, 0x01 },
  564. { 0xd045, 1, 1, 0x00 },
  565. { 0x9bcf, 0, 1, 0x01 },
  566. { 0xd045, 2, 1, 0x01 },
  567. { 0xd04f, 0, 8, 0x9a },
  568. { 0xd050, 0, 1, 0x01 },
  569. { 0xd051, 0, 8, 0x5a },
  570. { 0xd052, 0, 1, 0x01 },
  571. { 0xd053, 0, 8, 0x50 },
  572. { 0xd054, 0, 8, 0x46 },
  573. { 0x9bd7, 0, 8, 0x0a },
  574. { 0x9bd8, 0, 8, 0x14 },
  575. { 0x9bd9, 0, 8, 0x08 },
  576. { 0x9bd0, 0, 8, 0x93 },
  577. { 0x9be4, 0, 8, 0xfe },
  578. { 0x9bbd, 0, 8, 0x63 },
  579. { 0x9be2, 0, 8, 0xfe },
  580. { 0x9bee, 0, 1, 0x01 },
  581. };
  582. /* Quantek QT1010 tuner init
  583. AF9013_TUNER_QT1010 = 134
  584. AF9013_TUNER_QT1010A = 162 */
  585. static const struct af9013_reg_bit tuner_init_qt1010[] = {
  586. { 0x9bd5, 0, 8, 0x01 },
  587. { 0x9bd6, 0, 8, 0x09 },
  588. { 0xd1a0, 1, 1, 0x01 },
  589. { 0xd000, 0, 1, 0x01 },
  590. { 0xd000, 1, 1, 0x00 },
  591. { 0xd001, 1, 1, 0x01 },
  592. { 0xd001, 0, 1, 0x00 },
  593. { 0xd001, 5, 1, 0x00 },
  594. { 0xd002, 0, 5, 0x19 },
  595. { 0xd003, 0, 5, 0x1a },
  596. { 0xd004, 0, 5, 0x19 },
  597. { 0xd005, 0, 5, 0x1a },
  598. { 0xd00e, 0, 5, 0x10 },
  599. { 0xd00f, 0, 3, 0x04 },
  600. { 0xd00f, 3, 3, 0x05 },
  601. { 0xd010, 0, 3, 0x04 },
  602. { 0xd010, 3, 3, 0x05 },
  603. { 0xd016, 4, 4, 0x03 },
  604. { 0xd01f, 0, 6, 0x0a },
  605. { 0xd020, 0, 6, 0x0a },
  606. { 0x9bda, 0, 8, 0x01 },
  607. { 0x9be3, 0, 8, 0x01 },
  608. { 0xd015, 0, 8, 0x46 },
  609. { 0xd016, 0, 1, 0x00 },
  610. { 0xd044, 0, 8, 0x46 },
  611. { 0xd045, 0, 1, 0x00 },
  612. { 0x9bbe, 0, 1, 0x01 },
  613. { 0x9bcc, 0, 1, 0x01 },
  614. { 0x9bb9, 0, 8, 0x00 },
  615. { 0x9bcd, 0, 8, 0x28 },
  616. { 0x9bff, 0, 8, 0x20 },
  617. { 0xd008, 0, 8, 0x0f },
  618. { 0xd009, 0, 2, 0x02 },
  619. { 0xd006, 0, 8, 0x99 },
  620. { 0xd007, 0, 2, 0x01 },
  621. { 0xd00c, 0, 8, 0x0f },
  622. { 0xd00d, 0, 2, 0x02 },
  623. { 0xd00a, 0, 8, 0x50 },
  624. { 0xd00b, 0, 2, 0x01 },
  625. { 0x9bc7, 0, 8, 0x00 },
  626. { 0x9bc8, 0, 8, 0x00 },
  627. { 0x9bc3, 0, 8, 0x0f },
  628. { 0x9bc4, 0, 8, 0x02 },
  629. { 0x9bc5, 0, 8, 0x0f },
  630. { 0x9bc6, 0, 8, 0x02 },
  631. { 0x9bba, 0, 8, 0xc5 },
  632. { 0x9bc9, 0, 8, 0xff },
  633. { 0xd011, 0, 8, 0x58 },
  634. { 0xd012, 0, 2, 0x02 },
  635. { 0xd013, 0, 8, 0x89 },
  636. { 0xd014, 0, 2, 0x01 },
  637. { 0xd040, 0, 8, 0x58 },
  638. { 0xd041, 0, 2, 0x02 },
  639. { 0xd042, 0, 8, 0x89 },
  640. { 0xd043, 0, 2, 0x01 },
  641. { 0xd045, 1, 1, 0x00 },
  642. { 0x9bcf, 0, 1, 0x01 },
  643. { 0xd045, 2, 1, 0x01 },
  644. { 0xd04f, 0, 8, 0x9a },
  645. { 0xd050, 0, 1, 0x01 },
  646. { 0xd051, 0, 8, 0x5a },
  647. { 0xd052, 0, 1, 0x01 },
  648. { 0xd053, 0, 8, 0x50 },
  649. { 0xd054, 0, 8, 0x46 },
  650. { 0x9bd7, 0, 8, 0x0a },
  651. { 0x9bd8, 0, 8, 0x14 },
  652. { 0x9bd9, 0, 8, 0x08 },
  653. { 0x9bd0, 0, 8, 0xcd },
  654. { 0x9be4, 0, 8, 0xbb },
  655. { 0x9bbd, 0, 8, 0x93 },
  656. { 0x9be2, 0, 8, 0x80 },
  657. { 0x9bee, 0, 1, 0x01 },
  658. };
  659. /* Freescale MC44S803 tuner init
  660. AF9013_TUNER_MC44S803 = 133 */
  661. static const struct af9013_reg_bit tuner_init_mc44s803[] = {
  662. { 0x9bd5, 0, 8, 0x01 },
  663. { 0x9bd6, 0, 8, 0x06 },
  664. { 0xd1a0, 1, 1, 0x01 },
  665. { 0xd000, 0, 1, 0x01 },
  666. { 0xd000, 1, 1, 0x00 },
  667. { 0xd001, 1, 1, 0x01 },
  668. { 0xd001, 0, 1, 0x00 },
  669. { 0xd001, 5, 1, 0x00 },
  670. { 0xd002, 0, 5, 0x19 },
  671. { 0xd003, 0, 5, 0x1a },
  672. { 0xd004, 0, 5, 0x19 },
  673. { 0xd005, 0, 5, 0x1a },
  674. { 0xd00e, 0, 5, 0x10 },
  675. { 0xd00f, 0, 3, 0x04 },
  676. { 0xd00f, 3, 3, 0x05 },
  677. { 0xd010, 0, 3, 0x04 },
  678. { 0xd010, 3, 3, 0x05 },
  679. { 0xd016, 4, 4, 0x03 },
  680. { 0xd01f, 0, 6, 0x0a },
  681. { 0xd020, 0, 6, 0x0a },
  682. { 0x9bda, 0, 8, 0x00 },
  683. { 0x9be3, 0, 8, 0x00 },
  684. { 0x9bf6, 0, 8, 0x01 },
  685. { 0x9bf8, 0, 8, 0x02 },
  686. { 0x9bf9, 0, 8, 0x02 },
  687. { 0x9bfc, 0, 8, 0x1f },
  688. { 0x9bbe, 0, 1, 0x01 },
  689. { 0x9bcc, 0, 1, 0x01 },
  690. { 0x9bb9, 0, 8, 0x00 },
  691. { 0x9bcd, 0, 8, 0x24 },
  692. { 0x9bff, 0, 8, 0x24 },
  693. { 0xd015, 0, 8, 0x46 },
  694. { 0xd016, 0, 1, 0x00 },
  695. { 0xd044, 0, 8, 0x46 },
  696. { 0xd045, 0, 1, 0x00 },
  697. { 0xd008, 0, 8, 0x01 },
  698. { 0xd009, 0, 2, 0x02 },
  699. { 0xd006, 0, 8, 0x7b },
  700. { 0xd007, 0, 2, 0x00 },
  701. { 0xd00c, 0, 8, 0x7c },
  702. { 0xd00d, 0, 2, 0x02 },
  703. { 0xd00a, 0, 8, 0xfe },
  704. { 0xd00b, 0, 2, 0x01 },
  705. { 0x9bc7, 0, 8, 0x08 },
  706. { 0x9bc8, 0, 8, 0x9a },
  707. { 0x9bc3, 0, 8, 0x01 },
  708. { 0x9bc4, 0, 8, 0x02 },
  709. { 0x9bc5, 0, 8, 0x7c },
  710. { 0x9bc6, 0, 8, 0x02 },
  711. { 0x9bba, 0, 8, 0xfc },
  712. { 0x9bc9, 0, 8, 0xaa },
  713. { 0xd011, 0, 8, 0x6b },
  714. { 0xd012, 0, 2, 0x00 },
  715. { 0xd013, 0, 8, 0x88 },
  716. { 0xd014, 0, 2, 0x02 },
  717. { 0xd040, 0, 8, 0x6b },
  718. { 0xd041, 0, 2, 0x00 },
  719. { 0xd042, 0, 8, 0x7c },
  720. { 0xd043, 0, 2, 0x02 },
  721. { 0xd045, 1, 1, 0x00 },
  722. { 0x9bcf, 0, 1, 0x01 },
  723. { 0xd045, 2, 1, 0x01 },
  724. { 0xd04f, 0, 8, 0x9a },
  725. { 0xd050, 0, 1, 0x01 },
  726. { 0xd051, 0, 8, 0x5a },
  727. { 0xd052, 0, 1, 0x01 },
  728. { 0xd053, 0, 8, 0x50 },
  729. { 0xd054, 0, 8, 0x46 },
  730. { 0x9bd7, 0, 8, 0x0a },
  731. { 0x9bd8, 0, 8, 0x14 },
  732. { 0x9bd9, 0, 8, 0x08 },
  733. { 0x9bd0, 0, 8, 0x9e },
  734. { 0x9be4, 0, 8, 0xff },
  735. { 0x9bbd, 0, 8, 0x9e },
  736. { 0x9be2, 0, 8, 0x25 },
  737. { 0x9bee, 0, 1, 0x01 },
  738. { 0xd73b, 3, 1, 0x00 },
  739. };
  740. /* unknown, probably for tin can tuner, tuner init
  741. AF9013_TUNER_UNKNOWN = 140 */
  742. static const struct af9013_reg_bit tuner_init_unknown[] = {
  743. { 0x9bd5, 0, 8, 0x01 },
  744. { 0x9bd6, 0, 8, 0x02 },
  745. { 0xd1a0, 1, 1, 0x01 },
  746. { 0xd000, 0, 1, 0x01 },
  747. { 0xd000, 1, 1, 0x00 },
  748. { 0xd001, 1, 1, 0x01 },
  749. { 0xd001, 0, 1, 0x00 },
  750. { 0xd001, 5, 1, 0x00 },
  751. { 0xd002, 0, 5, 0x19 },
  752. { 0xd003, 0, 5, 0x1a },
  753. { 0xd004, 0, 5, 0x19 },
  754. { 0xd005, 0, 5, 0x1a },
  755. { 0xd00e, 0, 5, 0x10 },
  756. { 0xd00f, 0, 3, 0x04 },
  757. { 0xd00f, 3, 3, 0x05 },
  758. { 0xd010, 0, 3, 0x04 },
  759. { 0xd010, 3, 3, 0x05 },
  760. { 0xd016, 4, 4, 0x03 },
  761. { 0xd01f, 0, 6, 0x0a },
  762. { 0xd020, 0, 6, 0x0a },
  763. { 0x9bda, 0, 8, 0x01 },
  764. { 0x9be3, 0, 8, 0x01 },
  765. { 0xd1a0, 1, 1, 0x00 },
  766. { 0x9bbe, 0, 1, 0x01 },
  767. { 0x9bcc, 0, 1, 0x01 },
  768. { 0x9bb9, 0, 8, 0x00 },
  769. { 0x9bcd, 0, 8, 0x18 },
  770. { 0x9bff, 0, 8, 0x2c },
  771. { 0xd015, 0, 8, 0x46 },
  772. { 0xd016, 0, 1, 0x00 },
  773. { 0xd044, 0, 8, 0x46 },
  774. { 0xd045, 0, 1, 0x00 },
  775. { 0xd008, 0, 8, 0xdf },
  776. { 0xd009, 0, 2, 0x02 },
  777. { 0xd006, 0, 8, 0x44 },
  778. { 0xd007, 0, 2, 0x01 },
  779. { 0xd00c, 0, 8, 0x00 },
  780. { 0xd00d, 0, 2, 0x02 },
  781. { 0xd00a, 0, 8, 0xf6 },
  782. { 0xd00b, 0, 2, 0x01 },
  783. { 0x9bba, 0, 8, 0xf9 },
  784. { 0x9bc8, 0, 8, 0xaa },
  785. { 0x9bc3, 0, 8, 0xdf },
  786. { 0x9bc4, 0, 8, 0x02 },
  787. { 0x9bc5, 0, 8, 0x00 },
  788. { 0x9bc6, 0, 8, 0x02 },
  789. { 0x9bc9, 0, 8, 0xf0 },
  790. { 0xd011, 0, 8, 0x3c },
  791. { 0xd012, 0, 2, 0x01 },
  792. { 0xd013, 0, 8, 0xf7 },
  793. { 0xd014, 0, 2, 0x02 },
  794. { 0xd040, 0, 8, 0x0b },
  795. { 0xd041, 0, 2, 0x02 },
  796. { 0xd042, 0, 8, 0x4d },
  797. { 0xd043, 0, 2, 0x00 },
  798. { 0xd045, 1, 1, 0x00 },
  799. { 0x9bcf, 0, 1, 0x01 },
  800. { 0xd045, 2, 1, 0x01 },
  801. { 0xd04f, 0, 8, 0x9a },
  802. { 0xd050, 0, 1, 0x01 },
  803. { 0xd051, 0, 8, 0x5a },
  804. { 0xd052, 0, 1, 0x01 },
  805. { 0xd053, 0, 8, 0x50 },
  806. { 0xd054, 0, 8, 0x46 },
  807. { 0x9bd7, 0, 8, 0x0a },
  808. { 0x9bd8, 0, 8, 0x14 },
  809. { 0x9bd9, 0, 8, 0x08 },
  810. };
  811. /* NXP TDA18271 & TDA18218 tuner init
  812. AF9013_TUNER_TDA18271 = 156
  813. AF9013_TUNER_TDA18218 = 179 */
  814. static const struct af9013_reg_bit tuner_init_tda18271[] = {
  815. { 0x9bd5, 0, 8, 0x01 },
  816. { 0x9bd6, 0, 8, 0x04 },
  817. { 0xd1a0, 1, 1, 0x01 },
  818. { 0xd000, 0, 1, 0x01 },
  819. { 0xd000, 1, 1, 0x00 },
  820. { 0xd001, 1, 1, 0x01 },
  821. { 0xd001, 0, 1, 0x00 },
  822. { 0xd001, 5, 1, 0x00 },
  823. { 0xd002, 0, 5, 0x19 },
  824. { 0xd003, 0, 5, 0x1a },
  825. { 0xd004, 0, 5, 0x19 },
  826. { 0xd005, 0, 5, 0x1a },
  827. { 0xd00e, 0, 5, 0x10 },
  828. { 0xd00f, 0, 3, 0x04 },
  829. { 0xd00f, 3, 3, 0x05 },
  830. { 0xd010, 0, 3, 0x04 },
  831. { 0xd010, 3, 3, 0x05 },
  832. { 0xd016, 4, 4, 0x03 },
  833. { 0xd01f, 0, 6, 0x0a },
  834. { 0xd020, 0, 6, 0x0a },
  835. { 0x9bda, 0, 8, 0x01 },
  836. { 0x9be3, 0, 8, 0x01 },
  837. { 0xd1a0, 1, 1, 0x00 },
  838. { 0x9bbe, 0, 1, 0x01 },
  839. { 0x9bcc, 0, 1, 0x01 },
  840. { 0x9bb9, 0, 8, 0x00 },
  841. { 0x9bcd, 0, 8, 0x18 },
  842. { 0x9bff, 0, 8, 0x2c },
  843. { 0xd015, 0, 8, 0x46 },
  844. { 0xd016, 0, 1, 0x00 },
  845. { 0xd044, 0, 8, 0x46 },
  846. { 0xd045, 0, 1, 0x00 },
  847. { 0xd008, 0, 8, 0xdf },
  848. { 0xd009, 0, 2, 0x02 },
  849. { 0xd006, 0, 8, 0x44 },
  850. { 0xd007, 0, 2, 0x01 },
  851. { 0xd00c, 0, 8, 0x00 },
  852. { 0xd00d, 0, 2, 0x02 },
  853. { 0xd00a, 0, 8, 0xf6 },
  854. { 0xd00b, 0, 2, 0x01 },
  855. { 0x9bba, 0, 8, 0xf9 },
  856. { 0x9bc8, 0, 8, 0xaa },
  857. { 0x9bc3, 0, 8, 0xdf },
  858. { 0x9bc4, 0, 8, 0x02 },
  859. { 0x9bc5, 0, 8, 0x00 },
  860. { 0x9bc6, 0, 8, 0x02 },
  861. { 0x9bc9, 0, 8, 0xf0 },
  862. { 0xd011, 0, 8, 0x3c },
  863. { 0xd012, 0, 2, 0x01 },
  864. { 0xd013, 0, 8, 0xf7 },
  865. { 0xd014, 0, 2, 0x02 },
  866. { 0xd040, 0, 8, 0x0b },
  867. { 0xd041, 0, 2, 0x02 },
  868. { 0xd042, 0, 8, 0x4d },
  869. { 0xd043, 0, 2, 0x00 },
  870. { 0xd045, 1, 1, 0x00 },
  871. { 0x9bcf, 0, 1, 0x01 },
  872. { 0xd045, 2, 1, 0x01 },
  873. { 0xd04f, 0, 8, 0x9a },
  874. { 0xd050, 0, 1, 0x01 },
  875. { 0xd051, 0, 8, 0x5a },
  876. { 0xd052, 0, 1, 0x01 },
  877. { 0xd053, 0, 8, 0x50 },
  878. { 0xd054, 0, 8, 0x46 },
  879. { 0x9bd7, 0, 8, 0x0a },
  880. { 0x9bd8, 0, 8, 0x14 },
  881. { 0x9bd9, 0, 8, 0x08 },
  882. { 0x9bd0, 0, 8, 0xa8 },
  883. { 0x9be4, 0, 8, 0x7f },
  884. { 0x9bbd, 0, 8, 0xa8 },
  885. { 0x9be2, 0, 8, 0x20 },
  886. { 0x9bee, 0, 1, 0x01 },
  887. };
  888. #endif /* AF9013_PRIV_H */