2 Driver for ST STV0299 demodulator
4 Copyright (C) 2001-2002 Convergence Integrated Media GmbH
5 <ralph@convergence.de>,
6 <holger@convergence.de>,
12 Copyright (C) 2002 by Peter Schildmann <peter.schildmann@web.de>
17 Copyright (C) 2002 Felix Domke <tmbinc@elitedvb.net>
18 & Andreas Oberritter <obi@linuxtv.org>
21 Support for Samsung TBMU24112IMB used on Technisat SkyStar2 rev. 2.6B
23 Copyright (C) 2003 Vadim Catana <skystar@moldova.cc>:
25 Support for Philips SU1278 on Technotrend hardware
27 Copyright (C) 2004 Andrew de Quincey <adq_dvb@lidskialf.net>
29 This program is free software; you can redistribute it and/or modify
30 it under the terms of the GNU General Public License as published by
31 the Free Software Foundation; either version 2 of the License, or
32 (at your option) any later version.
34 This program is distributed in the hope that it will be useful,
35 but WITHOUT ANY WARRANTY; without even the implied warranty of
36 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 GNU General Public License for more details.
39 You should have received a copy of the GNU General Public License
40 along with this program; if not, write to the Free Software
41 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
48 #include <linux/dvb/frontend.h>
49 #include "dvb_frontend.h"
51 #define STV0229_LOCKOUTPUT_0 0
52 #define STV0229_LOCKOUTPUT_1 1
53 #define STV0229_LOCKOUTPUT_CF 2
54 #define STV0229_LOCKOUTPUT_LK 3
56 #define STV0299_VOLT13_OP0 0
57 #define STV0299_VOLT13_OP1 1
61 /* the demodulator's i2c address */
64 /* inittab - array of pairs of values.
65 * First of each pair is the register, second is the value.
66 * List should be terminated with an 0xff, 0xff pair.
70 /* master clock to use */
73 /* does the inversion require inversion? */
76 /* Should the enhanced tuning code be used? */
79 /* Skip reinitialisation? */
82 /* LOCK OUTPUT setting */
85 /* Is 13v controlled by OP0 or OP1? */
88 /* minimum delay before retuning */
91 /* Set the symbol rate */
92 int (*set_symbol_rate)(struct dvb_frontend* fe, u32 srate, u32 ratio);
95 int (*pll_init)(struct dvb_frontend* fe);
96 int (*pll_set)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params);
99 extern int stv0299_writereg (struct dvb_frontend* fe, u8 reg, u8 data);
101 extern struct dvb_frontend* stv0299_attach(const struct stv0299_config* config,
102 struct i2c_adapter* i2c);