Commit 38051450 authored by Tyler Trafford's avatar Tyler Trafford Committed by Mauro Carvalho Chehab

V4L/DVB (6124): cx25840: add a few 10 microsecond delays

There were a couple of places in the cx25840 initialization where the
datasheet called for a 10 microsecond delay, which we ignored because
of the 10 usec I2C delay. Put them in anyway now that the I2C delay
was decreased to 5 usec.
Signed-off-by: default avatarTyler Trafford <ttrafford@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 51b39dfa
...@@ -133,7 +133,9 @@ static void init_dll1(struct i2c_client *client) ...@@ -133,7 +133,9 @@ static void init_dll1(struct i2c_client *client)
cx25840_write(client, 0x159, 0x23); cx25840_write(client, 0x159, 0x23);
cx25840_write(client, 0x15a, 0x87); cx25840_write(client, 0x15a, 0x87);
cx25840_write(client, 0x15b, 0x06); cx25840_write(client, 0x15b, 0x06);
udelay(10);
cx25840_write(client, 0x159, 0xe1); cx25840_write(client, 0x159, 0xe1);
udelay(10);
cx25840_write(client, 0x15a, 0x86); cx25840_write(client, 0x15a, 0x86);
cx25840_write(client, 0x159, 0xe0); cx25840_write(client, 0x159, 0xe0);
cx25840_write(client, 0x159, 0xe1); cx25840_write(client, 0x159, 0xe1);
...@@ -147,6 +149,7 @@ static void init_dll2(struct i2c_client *client) ...@@ -147,6 +149,7 @@ static void init_dll2(struct i2c_client *client)
cx25840_write(client, 0x15d, 0xe3); cx25840_write(client, 0x15d, 0xe3);
cx25840_write(client, 0x15e, 0x86); cx25840_write(client, 0x15e, 0x86);
cx25840_write(client, 0x15f, 0x06); cx25840_write(client, 0x15f, 0x06);
udelay(10);
cx25840_write(client, 0x15d, 0xe1); cx25840_write(client, 0x15d, 0xe1);
cx25840_write(client, 0x15d, 0xe0); cx25840_write(client, 0x15d, 0xe0);
cx25840_write(client, 0x15d, 0xe1); cx25840_write(client, 0x15d, 0xe1);
...@@ -165,9 +168,7 @@ static void cx25836_initialize(struct i2c_client *client) ...@@ -165,9 +168,7 @@ static void cx25836_initialize(struct i2c_client *client)
/* 3c. */ /* 3c. */
cx25840_and_or(client, 0x159, ~0x02, 0x02); cx25840_and_or(client, 0x159, ~0x02, 0x02);
/* 3d. */ /* 3d. */
/* There should be a 10-us delay here, but since the udelay(10);
i2c bus already has a 10-us delay we don't need to do
anything */
/* 3e. */ /* 3e. */
cx25840_and_or(client, 0x159, ~0x02, 0x00); cx25840_and_or(client, 0x159, ~0x02, 0x00);
/* 3f. */ /* 3f. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment