2 * Afatech AF9033 demodulator driver
4 * Copyright (C) 2009 Antti Palosaari <crope@iki.fi>
5 * Copyright (C) 2012 Antti Palosaari <crope@iki.fi>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 #include "dvb_frontend.h"
55 /* Xtal clock vs. ADC clock lookup table */
56 static const struct clock_adc clock_adc_lut
[] = {
57 { 16384000, 20480000 },
58 { 20480000, 20480000 },
59 { 36000000, 20250000 },
60 { 30000000, 20156250 },
61 { 26000000, 20583333 },
62 { 28000000, 20416667 },
63 { 32000000, 20500000 },
64 { 34000000, 20187500 },
65 { 24000000, 20500000 },
66 { 22000000, 20625000 },
67 { 12000000, 20250000 },
70 /* pre-calculated coeff lookup table */
71 static const struct coeff coeff_lut
[] = {
73 { 12000000, 8000000, {
74 0x01, 0xce, 0x55, 0xc9, 0x00, 0xe7, 0x2a, 0xe4, 0x00, 0x73,
75 0x99, 0x0f, 0x00, 0x73, 0x95, 0x72, 0x00, 0x73, 0x91, 0xd5,
76 0x00, 0x39, 0xca, 0xb9, 0x00, 0xe7, 0x2a, 0xe4, 0x00, 0x73,
77 0x95, 0x72, 0x37, 0x02, 0xce, 0x01 }
79 { 12000000, 7000000, {
80 0x01, 0x94, 0x8b, 0x10, 0x00, 0xca, 0x45, 0x88, 0x00, 0x65,
81 0x25, 0xed, 0x00, 0x65, 0x22, 0xc4, 0x00, 0x65, 0x1f, 0x9b,
82 0x00, 0x32, 0x91, 0x62, 0x00, 0xca, 0x45, 0x88, 0x00, 0x65,
83 0x22, 0xc4, 0x88, 0x02, 0x95, 0x01 }
85 { 12000000, 6000000, {
86 0x01, 0x5a, 0xc0, 0x56, 0x00, 0xad, 0x60, 0x2b, 0x00, 0x56,
87 0xb2, 0xcb, 0x00, 0x56, 0xb0, 0x15, 0x00, 0x56, 0xad, 0x60,
88 0x00, 0x2b, 0x58, 0x0b, 0x00, 0xad, 0x60, 0x2b, 0x00, 0x56,
89 0xb0, 0x15, 0xf4, 0x02, 0x5b, 0x01 }
93 /* QPSK SNR lookup table */
94 static const struct val_snr qpsk_snr_lut
[] = {
121 /* QAM16 SNR lookup table */
122 static const struct val_snr qam16_snr_lut
[] = {
152 /* QAM64 SNR lookup table */
153 static const struct val_snr qam64_snr_lut
[] = {
186 static const struct reg_val ofsm_init
[] = {
297 /* Infineon TUA 9001 tuner init
298 AF9033_TUNER_TUA9001 = 0x27 */
299 static const struct reg_val tuner_init_tua9001
[] = {
339 /* Fitipower fc0011 tuner init
340 AF9033_TUNER_FC0011 = 0x28 */
341 static const struct reg_val tuner_init_fc0011
[] = {
400 /* Fitipower FC0012 tuner init
401 AF9033_TUNER_FC0012 = 0x2e */
402 static const struct reg_val tuner_init_fc0012
[] = {
443 /* MaxLinear MxL5007T tuner init
444 AF9033_TUNER_MXL5007T = 0xa0 */
445 static const struct reg_val tuner_init_mxl5007t
[] = {
478 /* NXP TDA 18218HN tuner init
479 AF9033_TUNER_TDA18218 = 0xa1 */
480 static const struct reg_val tuner_init_tda18218
[] = {
512 /* FCI FC2580 tuner init */
513 static const struct reg_val tuner_init_fc2580
[] = {
550 static const struct reg_val ofsm_init_it9135_v1
[] = {
661 /* ITE Tech IT9135 Omega tuner init
662 AF9033_TUNER_IT9135_38 = 0x38 */
663 static const struct reg_val tuner_init_it9135_38
[] = {
878 /* ITE Tech IT9135 Omega LNA config 1 tuner init
879 AF9033_TUNER_IT9135_51 = 0x51 */
880 static const struct reg_val tuner_init_it9135_51
[] = {
1095 /* ITE Tech IT9135 Omega LNA config 2 tuner init
1096 AF9033_TUNER_IT9135_52 = 0x52 */
1097 static const struct reg_val tuner_init_it9135_52
[] = {
1312 static const struct reg_val ofsm_init_it9135_v2
[] = {
1410 /* ITE Tech IT9135 Omega v2 tuner init
1411 AF9033_TUNER_IT9135_60 = 0x60 */
1412 static const struct reg_val tuner_init_it9135_60
[] = {
1625 /* ITE Tech IT9135 Omega v2 LNA config 1 tuner init
1626 AF9033_TUNER_IT9135_61 = 0x61 */
1627 static const struct reg_val tuner_init_it9135_61
[] = {
1840 /* ITE Tech IT9135 Omega v2 LNA config 2 tuner init
1841 AF9033_TUNER_IT9135_62 = 0x62 */
1842 static const struct reg_val tuner_init_it9135_62
[] = {
2055 #endif /* AF9033_PRIV_H */