aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ivtv/ivtv-driver.h
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2009-11-20 23:47:45 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 15:41:55 -0500
commitf412d36a8c9f8e40e057b71e80d534ac388e903e (patch)
tree36f5a0005efce82787a3dc99af8417dee79f0055 /drivers/media/video/ivtv/ivtv-driver.h
parente45e8f5cee75b0559ce1ca7007b4963b91910fa8 (diff)
V4L/DVB (13442): ivtv: Add module parameter to adjust I2C SCL clock period per board
Add a module parameter to adjust I2C SCL clock period per board. This allows some experimental fine tuning by end users to overcome quirky I2C device problems. Reported-by: "Aleksandr V. Piskunov" <aleksandr.v.piskunov@gmail.com> Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-driver.h')
-rw-r--r--drivers/media/video/ivtv/ivtv-driver.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/ivtv/ivtv-driver.h b/drivers/media/video/ivtv/ivtv-driver.h
index 440f7328a7ed..2b3db90afb74 100644
--- a/drivers/media/video/ivtv/ivtv-driver.h
+++ b/drivers/media/video/ivtv/ivtv-driver.h
@@ -176,12 +176,16 @@ extern int ivtv_debug;
176 176
177#define IVTV_MAX_PGM_INDEX (400) 177#define IVTV_MAX_PGM_INDEX (400)
178 178
179/* Default I2C SCL period in microseconds */
180#define IVTV_DEFAULT_I2C_CLOCK_PERIOD 20
181
179struct ivtv_options { 182struct ivtv_options {
180 int kilobytes[IVTV_MAX_STREAMS]; /* size in kilobytes of each stream */ 183 int kilobytes[IVTV_MAX_STREAMS]; /* size in kilobytes of each stream */
181 int cardtype; /* force card type on load */ 184 int cardtype; /* force card type on load */
182 int tuner; /* set tuner on load */ 185 int tuner; /* set tuner on load */
183 int radio; /* enable/disable radio */ 186 int radio; /* enable/disable radio */
184 int newi2c; /* new I2C algorithm */ 187 int newi2c; /* new I2C algorithm */
188 int i2c_clock_period; /* period of SCL for I2C bus */
185}; 189};
186 190
187/* ivtv-specific mailbox template */ 191/* ivtv-specific mailbox template */