Commit 7e5ce651 authored by Patrick Boettcher's avatar Patrick Boettcher Committed by Mauro Carvalho Chehab

V4L/DVB (12898): DiB0070: Update to latest internal release

General update of the dib0070-driver based on DiBcom's latest release.

New driver features can enable better performance in some reception situations.
Signed-off-by: default avatarPatrick Boettcher <Patrick.Boettcher@dibcom.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e7b7949a
...@@ -1098,11 +1098,13 @@ static struct dibx000_agc_config dib7070_agc_config = { ...@@ -1098,11 +1098,13 @@ static struct dibx000_agc_config dib7070_agc_config = {
static int dib7070_tuner_reset(struct dvb_frontend *fe, int onoff) static int dib7070_tuner_reset(struct dvb_frontend *fe, int onoff)
{ {
deb_info("reset: %d", onoff);
return dib7000p_set_gpio(fe, 8, 0, !onoff); return dib7000p_set_gpio(fe, 8, 0, !onoff);
} }
static int dib7070_tuner_sleep(struct dvb_frontend *fe, int onoff) static int dib7070_tuner_sleep(struct dvb_frontend *fe, int onoff)
{ {
deb_info("sleep: %d", onoff);
return dib7000p_set_gpio(fe, 9, 0, onoff); return dib7000p_set_gpio(fe, 9, 0, onoff);
} }
...@@ -1112,13 +1114,14 @@ static struct dib0070_config dib7070p_dib0070_config[2] = { ...@@ -1112,13 +1114,14 @@ static struct dib0070_config dib7070p_dib0070_config[2] = {
.reset = dib7070_tuner_reset, .reset = dib7070_tuner_reset,
.sleep = dib7070_tuner_sleep, .sleep = dib7070_tuner_sleep,
.clock_khz = 12000, .clock_khz = 12000,
.clock_pad_drive = 4 .clock_pad_drive = 4,
.charge_pump = 2,
}, { }, {
.i2c_address = DEFAULT_DIB0070_I2C_ADDRESS, .i2c_address = DEFAULT_DIB0070_I2C_ADDRESS,
.reset = dib7070_tuner_reset, .reset = dib7070_tuner_reset,
.sleep = dib7070_tuner_sleep, .sleep = dib7070_tuner_sleep,
.clock_khz = 12000, .clock_khz = 12000,
.charge_pump = 2,
} }
}; };
......
This diff is collapsed.
...@@ -15,6 +15,11 @@ struct i2c_adapter; ...@@ -15,6 +15,11 @@ struct i2c_adapter;
#define DEFAULT_DIB0070_I2C_ADDRESS 0x60 #define DEFAULT_DIB0070_I2C_ADDRESS 0x60
struct dib0070_wbd_gain_cfg {
u16 freq;
u16 wbd_gain_val;
};
struct dib0070_config { struct dib0070_config {
u8 i2c_address; u8 i2c_address;
...@@ -35,6 +40,12 @@ struct dib0070_config { ...@@ -35,6 +40,12 @@ struct dib0070_config {
u8 force_crystal_mode; /* if == 0 -> decision is made in the driver default: <24 -> 2, >=24 -> 1 */ u8 force_crystal_mode; /* if == 0 -> decision is made in the driver default: <24 -> 2, >=24 -> 1 */
u8 flip_chip; u8 flip_chip;
u8 enable_third_order_filter;
u8 charge_pump;
const struct dib0070_wbd_gain_cfg * wbd_gain;
u8 vga_filter;
}; };
#if defined(CONFIG_DVB_TUNER_DIB0070) || (defined(CONFIG_DVB_TUNER_DIB0070_MODULE) && defined(MODULE)) #if defined(CONFIG_DVB_TUNER_DIB0070) || (defined(CONFIG_DVB_TUNER_DIB0070_MODULE) && defined(MODULE))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment