2 * Montage M88DS3103 demodulator driver
4 * Copyright (C) 2013 Antti Palosaari <crope@iki.fi>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #ifndef M88DS3103_PRIV_H
22 #define M88DS3103_PRIV_H
24 #include "dvb_frontend.h"
25 #include "m88ds3103.h"
27 #include <linux/firmware.h>
28 #include <linux/i2c-mux.h>
30 #define M88DS3103_FIRMWARE "dvb-demod-m88ds3103.fw"
31 #define M88DS3103_MCLK_KHZ 96000
33 struct m88ds3103_priv {
34 struct i2c_adapter *i2c;
35 /* mutex needed due to own tuner I2C adapter */
36 struct mutex i2c_mutex;
37 const struct m88ds3103_config *cfg;
38 struct dvb_frontend fe;
39 fe_delivery_system_t delivery_system;
40 fe_status_t fe_status;
41 bool warm; /* FW running */
42 struct i2c_adapter *i2c_adapter;
45 struct m88ds3103_reg_val {
50 static const struct m88ds3103_reg_val m88ds3103_dvbs_init_reg_vals[] = {
133 static const struct m88ds3103_reg_val m88ds3103_dvbs2_init_reg_vals[] = {