V4L/DVB (10512): tda1004x: Fix eeprom firmware load on boards with 16MHz Xtal
commit517efa89acef3ac440e6e1ca10252d407ba51abf
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 9 Feb 2009 16:12:41 +0000 (9 13:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:43 +0000 (30 12:42 -0300)
treeb1b669d7934e90c584ddd8376e61b7984fcaf0af
parentbefd6e645cc38eae0cfd4ef98b3daf0986240e2c
V4L/DVB (10512): tda1004x: Fix eeprom firmware load on boards with 16MHz Xtal

For i2c normal work, we need to slow down the bus speed. However, the
slow down breaks the eeprom firmware load. So, use normal speed for
eeprom booting and then restore the i2c speed after that.

It should also be noticed that no other I2C transfer should be in course
while booting from eeprom, otherwise, tda10046 goes into an instable
state. So, proper locking are needed at the i2c bus master.

Tested with saa7134 MSI TV @nyware A/D board, that comes with an eeprom
with firmware version 29.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/tda1004x.c