2 * Support for LGDT3306A - 8VSB/QAM-B
4 * Copyright (C) 2013,2014 Fred Richter <frichter@hauppauge.com>
5 * based on lgdt3305.[ch] by Michael Krufky
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
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 #include <linux/i2c.h>
27 #include "dvb_frontend.h"
30 enum lgdt3306a_mpeg_mode {
31 LGDT3306A_MPEG_PARALLEL = 0,
32 LGDT3306A_MPEG_SERIAL = 1,
35 enum lgdt3306a_tp_clock_edge {
36 LGDT3306A_TPCLK_RISING_EDGE = 0,
37 LGDT3306A_TPCLK_FALLING_EDGE = 1,
40 enum lgdt3306a_tp_valid_polarity {
41 LGDT3306A_TP_VALID_LOW = 0,
42 LGDT3306A_TP_VALID_HIGH = 1,
45 struct lgdt3306a_config {
48 /* user defined IF frequency in KHz */
52 /* disable i2c repeater - 0:repeater enabled 1:repeater disabled */
55 /* spectral inversion - 0:disabled 1:enabled */
56 int spectral_inversion:1;
58 enum lgdt3306a_mpeg_mode mpeg_mode;
59 enum lgdt3306a_tp_clock_edge tpclk_edge;
60 enum lgdt3306a_tp_valid_polarity tpvalid_polarity;
62 int xtalMHz;//demod clock freq in MHz; 24 or 25 supported
65 #if defined(CONFIG_DVB_LGDT3306A) || (defined(CONFIG_DVB_LGDT3306A_MODULE) && \
68 struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config,
69 struct i2c_adapter *i2c_adap);
72 struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config,
73 struct i2c_adapter *i2c_adap)
75 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
78 #endif /* CONFIG_DVB_LGDT3306A */
80 #endif /* _LGDT3306A_H_ */