summaryrefslogtreecommitdiff
path: root/drivers/fsl_i2c.c
diff options
context:
space:
mode:
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>2006-11-28 16:17:18 -0600
committerKim Phillips <kim.phillips@freescale.com>2006-11-29 00:25:23 -0600
commit14198bf768fdc958e3c1afd2404e5262208e98d7 (patch)
treeccef59211816451e7449a9410b838b8f8ab7944b /drivers/fsl_i2c.c
parent32081125a028aff9e93af5281c777b0745ef8558 (diff)
downloadu-boot-imx-14198bf768fdc958e3c1afd2404e5262208e98d7.zip
u-boot-imx-14198bf768fdc958e3c1afd2404e5262208e98d7.tar.gz
u-boot-imx-14198bf768fdc958e3c1afd2404e5262208e98d7.tar.bz2
Fix I2C master address initialization.
Signed-off-by: Timur Tabi <timur@freescale.com>
Diffstat (limited to 'drivers/fsl_i2c.c')
-rw-r--r--drivers/fsl_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fsl_i2c.c b/drivers/fsl_i2c.c
index 0e39213..f00e802 100644
--- a/drivers/fsl_i2c.c
+++ b/drivers/fsl_i2c.c
@@ -57,7 +57,7 @@ i2c_init(int speed, int slaveadd)
writeb(0, &dev->cr); /* stop I2C controller */
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 */