V4L/DVB (4609): Improved i2c performance on software bitbang algoritm
authorMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 6 Sep 2006 22:04:28 +0000 (19:04 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 26 Sep 2006 15:30:35 +0000 (12:30 -0300)
commit141276b57e1f83a86b8e77554b36511be0a7049c
treefe0e93f7eeaca9ba6b06bd74bf6758b8a1986b94
parent48c06d5e2d63c1d6282c0f7fe67741a39d6c1852
V4L/DVB (4609): Improved i2c performance on software bitbang algoritm

Software I2C were using a very conservative value of udelay=16, meaning about
20Kbps. According with Philips I2C datasheet, the i2c should answer well for
times at the order of 4.7 us. So, using udelay=5 should work for all devices.
After this patch, the speed should be close to 66,67 Kbps, with the current
kernel software bitbang, with 30/60 duty cycle.
Anyway, added a new parameter (i2c_udelay) that would allow using conservative
values, if eventually a hardware doesn't support the datasheet values.
Thanks to Jean Delvare <khali@linux-fr.org> for pointing this improvement.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Documentation/video4linux/bttv/Insmod-options
drivers/media/video/bt8xx/bttv-i2c.c
drivers/media/video/cx88/cx88-i2c.c