diff options
author | Stefan Roese | 2007-08-21 16:33:33 +0200 |
---|---|---|
committer | Stefan Roese | 2007-08-21 16:33:33 +0200 |
commit | 93f798346033a1f6d22090b47abad4be88243b04 (patch) | |
tree | 45b4d2a887a89572015de3234b04b419bfc11b44 /drivers/fsl_i2c.c | |
parent | 3ad63878737a5a2b1e60825bf0a7d601d7a695e7 (diff) | |
parent | 3e66c078003607a7d1d214c15a5f262bc1b4032f (diff) |
Merge with /home/stefan/git/u-boot/u-boot-ppc4xx
Diffstat (limited to 'drivers/fsl_i2c.c')
-rw-r--r-- | drivers/fsl_i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/fsl_i2c.c b/drivers/fsl_i2c.c index ebae5af154e..22485ea916f 100644 --- a/drivers/fsl_i2c.c +++ b/drivers/fsl_i2c.c @@ -69,9 +69,10 @@ i2c_init(int speed, int slaveadd) dev = (struct fsl_i2c *) (CFG_IMMR + CFG_I2C2_OFFSET); writeb(0, &dev->cr); /* stop I2C controller */ + udelay(5); /* let it shutdown in peace */ writeb(0x3F, &dev->fdr); /* set bus speed */ writeb(0x3F, &dev->dfsrr); /* set default filter */ - writeb(slaveadd, &dev->adr); /* write slave address */ + writeb(slaveadd << 1, &dev->adr); /* write slave address */ writeb(0x0, &dev->sr); /* clear status register */ writeb(I2C_CR_MEN, &dev->cr); /* start I2C controller */ #endif /* CFG_I2C2_OFFSET */ |