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.
17 #ifndef M88DS3103_PRIV_H
18 #define M88DS3103_PRIV_H
20 #include "dvb_frontend.h"
21 #include "m88ds3103.h"
23 #include <linux/firmware.h>
24 #include <linux/i2c-mux.h>
25 #include <linux/math64.h>
27 #define M88DS3103_FIRMWARE "dvb-demod-m88ds3103.fw"
28 #define M88DS3103_MCLK_KHZ 96000
30 struct m88ds3103_priv {
31 struct i2c_adapter *i2c;
32 /* mutex needed due to own tuner I2C adapter */
33 struct mutex i2c_mutex;
34 const struct m88ds3103_config *cfg;
35 struct dvb_frontend fe;
36 fe_delivery_system_t delivery_system;
37 fe_status_t fe_status;
39 bool warm; /* FW running */
40 struct i2c_adapter *i2c_adapter;
43 struct m88ds3103_reg_val {
48 static const struct m88ds3103_reg_val m88ds3103_dvbs_init_reg_vals[] = {
131 static const struct m88ds3103_reg_val m88ds3103_dvbs2_init_reg_vals[] = {