Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138201
b: refs/heads/master
c: 32c000a
h: refs/heads/master
i:
  138199: 61be533
v: v3
  • Loading branch information
Devin Heitmueller authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 3b451f7 commit 273b016
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8b2f079523450fa2d65cbb3f8453820bf1e17533
refs/heads/master: 32c000ad93fe8c447342632024ddef1ca516a0e9
22 changes: 20 additions & 2 deletions trunk/drivers/media/video/au0828/au0828-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,16 @@ static int i2c_sendbytes(struct i2c_adapter *i2c_adap,
dprintk(4, "%s()\n", __func__);

au0828_write(dev, REG_2FF, 0x01);
au0828_write(dev, REG_202, 0x07);

/* FIXME: There is a problem with i2c communications with xc5000 that
requires us to slow down the i2c clock until we have a better
strategy (such as using the secondary i2c bus to do firmware
loading */
if ((msg->addr << 1) == 0xc2) {
au0828_write(dev, REG_202, 0x40);
} else {
au0828_write(dev, REG_202, 0x07);
}

/* Hardware needs 8 bit addresses */
au0828_write(dev, REG_203, msg->addr << 1);
Expand Down Expand Up @@ -191,7 +200,16 @@ static int i2c_readbytes(struct i2c_adapter *i2c_adap,
dprintk(4, "%s()\n", __func__);

au0828_write(dev, REG_2FF, 0x01);
au0828_write(dev, REG_202, 0x07);

/* FIXME: There is a problem with i2c communications with xc5000 that
requires us to slow down the i2c clock until we have a better
strategy (such as using the secondary i2c bus to do firmware
loading */
if ((msg->addr << 1) == 0xc2) {
au0828_write(dev, REG_202, 0x40);
} else {
au0828_write(dev, REG_202, 0x07);
}

/* Hardware needs 8 bit addresses */
au0828_write(dev, REG_203, msg->addr << 1);
Expand Down

0 comments on commit 273b016

Please sign in to comment.