diff options
author | Andy Walls | 2008-06-22 06:27:00 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2008-06-26 20:58:54 +0200 |
commit | 1f09e8a25c9aaa4066b4593c1bf99a4cbcc38120 (patch) | |
tree | 4b204cb090b2b1be58d0aebc53291afd62e12321 /drivers/media/video/cx18/cx18-i2c.c | |
parent | V4L/DVB (8067): cx18: Fix firmware load for case when digital capture happens... (diff) | |
download | kernel-qcow2-linux-1f09e8a25c9aaa4066b4593c1bf99a4cbcc38120.tar.gz kernel-qcow2-linux-1f09e8a25c9aaa4066b4593c1bf99a4cbcc38120.tar.xz kernel-qcow2-linux-1f09e8a25c9aaa4066b4593c1bf99a4cbcc38120.zip |
V4L/DVB (8068): cx18: Add I2C slave reset via GPIO upon initialization
cx18: Add I2C slave reset via GPIO upon initialization. One user,
Michael <msd4824@yahoo.com>, has reported this allows his HVR-1600 EEPROM to
be consistently recognized when using (long,) 100 msec delays. The delays in
this commit are nominal (10 & 40 msec) and need testing/tuning on boards with
I2C problems to find the right values.
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx18/cx18-i2c.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-i2c.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/cx18/cx18-i2c.c b/drivers/media/video/cx18/cx18-i2c.c index 1d6c51a75313..680bc4e35b79 100644 --- a/drivers/media/video/cx18/cx18-i2c.c +++ b/drivers/media/video/cx18/cx18-i2c.c @@ -405,6 +405,8 @@ int init_cx18_i2c(struct cx18 *cx) cx18_setscl(&cx->i2c_algo_cb_data[1], 1); cx18_setsda(&cx->i2c_algo_cb_data[1], 1); + cx18_reset_i2c_slaves_gpio(cx); + return i2c_bit_add_bus(&cx->i2c_adap[0]) || i2c_bit_add_bus(&cx->i2c_adap[1]); } |