summaryrefslogtreecommitdiff
path: root/drivers/fsl_i2c.c
AgeCommit message (Collapse)Author
2007-03-02mpc83xx: Fix empty i2c reads/writes in fsl_i2c.cJoakim Tjernlund
Fix empty i2c reads/writes, i2c_write(0x50, 0x00, 0, NULL, 0) which is used to se if an slave will ACK after receiving its address. Correct i2c probing to use this method as the old method could upset a slave as it wrote a data byte to it. Add a small delay in i2c_init() to let the controller shutdown any ongoing I2C activity. Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2006-11-29Make fsl-i2c not conflict with SOFT I2CJoakim Tjernlund
Signed-off-by: Timur Tabi <timur@freescale.com>
2006-11-29Fix I2C master address initialization.Joakim Tjernlund
Signed-off-by: Timur Tabi <timur@freescale.com>
2006-11-03mpc83xx: Update 83xx to use fsl_i2c.cTimur Tabi
Update the 83xx tree to use I2C support in drivers/fsl_i2c.c. Delete cpu/mpc83xx/i2c.c, include/asm-ppc/i2c.h, and all references to those files. Added multiple I2C bus support to fsl_i2c.c. Signed-off-by: Timur Tabi <timur@freescale.com>
2006-10-20Converted all 85xx boards to use a common FSL I2C driver.Jon Loeliger
Introduced COFIG_FSL_I2C to select the common FSL I2C driver. And removed hard i2c path from a few u-boot.lds scipts too. Minor whitespace cleanups along the way. Signed-off-by: Jon Loeliger <jdl@freescale.com>
2006-10-19Rewrite a series of goto statements as a sequences ofJon Loeliger
conditional expressions instead. Use consistent return code 0/-1 for good/bad indicators. Include one fewer file if the driver isn't used at all. Signed-off-by: Jon Loeliger <jdl@freescale.com>
2006-10-19Moved i2c driver out of cpu/mpc86xx/i2c.c into drivers/fsl_i2c.cJon Loeliger
in an effort to begin to unify the umpteen FSL I2C drivers that are all otherwise very similar. Signed-off-by: Jon Loeliger <jdl@freescale.com>