Add support for multiple I2C buses
PATCH 1/2 Add support for multiple I2C buses
Hello list,
inside the automatic U-Boot patch tracking system a new ticket [DNX#2006090742000024] was created:
<snip>
Quoted 31 lines
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 <[email protected]>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_NOPROBEShas been expanded to work in multi-bus systems. WhenCONFIG_I2C_MULTI_BUSis 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 withCONFIG_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 withCONFIG_I2C_MULTI_BUS). Updated NOPROBE logic to handle multiple buses. Updated README.
Quoted 2 lines
regards,
Ben
</snip>
Your U-Boot support team