• Mauro Carvalho Chehab's avatar
    V4L/DVB (4609): Improved i2c performance on software bitbang algoritm · 141276b5
    Mauro Carvalho Chehab authored
    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: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
    141276b5
Insmod-options 6.49 KB