]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
Add support for multiple I2C buses
authorBen Warren <bwarren@qstreams.com>
Thu, 7 Sep 2006 20:50:54 +0000 (16:50 -0400)
committerKim Phillips <kim.phillips@freescale.com>
Sat, 4 Nov 2006 01:42:19 +0000 (19:42 -0600)
commitbb99ad6d8257bf828f150d40f507b30d80a4a7ae
treeb097750e9e63f49186717a1eb4fcd078f65ae381
parentbed85caf872714ebf53013967a695c9d63acfc68
Add support for multiple I2C buses

Hello,

Attached is a patch providing support for multiple I2C buses at the
command level.  The second part of the patch includes an implementation
for the MPC834x CPU and MPC8349EMDS board.

/*** Note: This patch replaces ticket DNX#2006083042000018 ***/

Signed-off-by: Ben Warren <bwarren@qstreams.com>
Overview:

1. Include new 'i2c' command (based on USB implementation) using
CONFIG_I2C_CMD_TREE.

2. Allow multiple buses by defining CONFIG_I2C_MULTI_BUS.  Note that
the commands to change bus number and speed are only available under the
new 'i2c' command mentioned in the first bullet.

3. The option CFG_I2C_NOPROBES has been expanded to work in multi-bus
systems.  When CONFIG_I2C_MULTI_BUS is used, this option takes the form
of an array of bus-device pairs.  Otherwise, it is an array of uchar.

CHANGELOG:
        Added new 'i2c' master command for all I2C interaction.  This is
conditionally compiled with CONFIG_I2C_CMD_TREE.  New commands added for
setting I2C bus speed as well as changing the active bus if the board
has more than one (conditionally compiled with
CONFIG_I2C_MULTI_BUS).  Updated NOPROBE logic to handle multiple buses.
Updated README.

regards,
Ben
README
common/cmd_i2c.c
include/i2c.h