aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-cards.c
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2008-06-22 00:27:00 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-06-26 14:58:54 -0400
commit1f09e8a25c9aaa4066b4593c1bf99a4cbcc38120 (patch)
tree4b204cb090b2b1be58d0aebc53291afd62e12321 /drivers/media/video/cx18/cx18-cards.c
parent08cf7b2ed172cc83f3d2f44b712b3d54e6cc4ae6 (diff)
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-cards.c')
-rw-r--r--drivers/media/video/cx18/cx18-cards.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/video/cx18/cx18-cards.c b/drivers/media/video/cx18/cx18-cards.c
index c18865b0d6cc..bbf23fa459d6 100644
--- a/drivers/media/video/cx18/cx18-cards.c
+++ b/drivers/media/video/cx18/cx18-cards.c
@@ -82,6 +82,11 @@ static const struct cx18_card cx18_card_hvr1600_esmt = {
82 }, 82 },
83 .gpio_init.initial_value = 0x3001, 83 .gpio_init.initial_value = 0x3001,
84 .gpio_init.direction = 0x3001, 84 .gpio_init.direction = 0x3001,
85 .gpio_i2c_slave_reset = {
86 .active_lo_mask = 0x3001,
87 .msecs_asserted = 10,
88 .msecs_recovery = 40,
89 },
85 .i2c = &cx18_i2c_std, 90 .i2c = &cx18_i2c_std,
86}; 91};
87 92
@@ -122,6 +127,11 @@ static const struct cx18_card cx18_card_hvr1600_samsung = {
122 }, 127 },
123 .gpio_init.initial_value = 0x3001, 128 .gpio_init.initial_value = 0x3001,
124 .gpio_init.direction = 0x3001, 129 .gpio_init.direction = 0x3001,
130 .gpio_i2c_slave_reset = {
131 .active_lo_mask = 0x3001,
132 .msecs_asserted = 10,
133 .msecs_recovery = 40,
134 },
125 .i2c = &cx18_i2c_std, 135 .i2c = &cx18_i2c_std,
126}; 136};
127 137