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>
26 #define M88DS3103_FIRMWARE "dvb-demod-m88ds3103.fw"
27 #define M88DS3103_MCLK_KHZ 96000
29 struct m88ds3103_priv
{
30 struct i2c_adapter
*i2c
;
31 /* mutex needed due to own tuner I2C adapter */
32 struct mutex i2c_mutex
;
33 const struct m88ds3103_config
*cfg
;
34 struct dvb_frontend fe
;
35 fe_delivery_system_t delivery_system
;
36 fe_status_t fe_status
;
37 bool warm
; /* FW running */
38 struct i2c_adapter
*i2c_adapter
;
41 struct m88ds3103_reg_val
{
46 static const struct m88ds3103_reg_val m88ds3103_dvbs_init_reg_vals
[] = {
129 static const struct m88ds3103_reg_val m88ds3103_dvbs2_init_reg_vals
[] = {