u-boot/common
Ben Warren bb99ad6d82 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
2006-11-03 19:42:19 -06:00
..
ACEX1K.c * Patch by Steven Scholz, 25 Feb 2004: 2004-02-27 00:07:27 +00:00
altera.c * Patch by Steven Scholz, 07 Apr 2005: 2005-04-07 22:36:40 +00:00
bedbug.c * Code cleanup: 2003-06-27 21:31:46 +00:00
circbuf.c Add support for Siemens SX1 mobile phone; 2004-03-12 00:14:09 +00:00
cmd_ace.c Fix device partition intialization for SystemACE disks. 2005-10-05 00:25:17 +02:00
cmd_autoscript.c Cleanup for GCC-4.x 2005-10-13 16:45:02 +02:00
cmd_bdinfo.c Add support for AMCC Sequoia PPC440EPx eval board 2006-09-07 11:51:23 +02:00
cmd_bedbug.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
cmd_bmp.c Fix gzip bmp support (test if malloc fails, warning when truncated). 2005-10-08 10:19:07 +02:00
cmd_boot.c Allow args on reset command. 2006-05-26 10:01:16 -05:00
cmd_bootm.c Code cleanup. 2006-10-26 16:24:31 +02:00
cmd_cache.c Patch by Kenneth Johansson, 30 Jun 2003: 2003-07-01 21:06:45 +00:00
cmd_console.c Patch by Thomas Viehweger, 14 May 2004: 2004-06-09 12:42:26 +00:00
cmd_date.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
cmd_dcr.c Code cleanup. 2006-10-26 16:24:31 +02:00
cmd_diag.c * Patches by Thomas Viehweger, 16 Mar 2004: 2004-03-23 22:14:11 +00:00
cmd_display.c Add keyboard and dot matrix display support for HMI1001 board. 2005-08-30 13:04:12 +02:00
cmd_doc.c Remove dependencies between DoC code and old legacy NAND driver. 2006-04-05 20:46:41 +02:00
cmd_dtt.c Patch by Kenneth Johansson, 30 Jun 2003: 2003-07-01 21:06:45 +00:00
cmd_eeprom.c Add SM501 support to HH405 board. 2005-09-22 09:04:17 +02:00
cmd_elf.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
cmd_ext2.c Merge with /home/sr/git/u-boot 2005-10-17 00:19:16 +02:00
cmd_fat.c * Add automatic update support for LWMON board 2004-08-28 21:09:14 +00:00
cmd_fdc.c Add loads of ntohl() in image header handling 2006-03-12 01:59:35 +01:00
cmd_fdos.c * Update TRAB auto update code 2003-10-06 21:55:32 +00:00
cmd_flash.c Fixes common/cmd_flash.c: 2006-04-11 14:39:21 +02:00
cmd_fpga.c Cleanup for GCC-4.x 2005-10-13 16:45:02 +02:00
cmd_i2c.c Add support for multiple I2C buses 2006-11-03 19:42:19 -06:00
cmd_ide.c Add support for gth2 board 2006-06-16 17:32:31 +02:00
cmd_immap.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
cmd_itest.c Patch by Thomas Viehweger, 14 May 2004: 2004-06-09 12:42:26 +00:00
cmd_jffs2.c [PATCH] NAND: Partition name support added to NAND subsystem 2006-10-28 17:11:10 +02:00
cmd_load.c Declare load_serial_ymodem() when using CFG_CMD_LOADB. 2006-05-02 00:11:25 +02:00
cmd_log.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
cmd_mac.c Add support for reading and writing mac addresses to or from ID EEPROM. 2006-07-13 10:57:37 -05:00
cmd_mem.c Make code better readable. 2006-07-21 11:37:40 +02:00
cmd_mii.c Change "mii info" to not print an error upon missing PHY at address 2006-08-07 14:29:04 +02:00
cmd_misc.c Fix problem with sleep in NetConsole (use get_timer()) 2005-10-20 16:36:44 +02:00
cmd_mmc.c Patch by Kenneth Johansson, 30 Jun 2003: 2003-07-01 21:06:45 +00:00
cmd_nand.c [PATCH] NAND: Partition name support added to NAND subsystem 2006-10-28 17:11:10 +02:00
cmd_net.c * Patch by Ladislav Michl, 05 Apr 2005: 2005-04-05 23:32:21 +00:00
cmd_nvedit.c Check for illegal character '=' in environment variable names. 2006-10-28 01:14:32 +02:00
cmd_pci.c Patch by Manfred Baral, 17 Mar 2005: 2005-03-20 22:33:46 +00:00
cmd_pcmcia.c Major PCMCIA Cleanup to make code better readable and maintainable. 2006-07-10 23:07:28 +02:00
cmd_portio.c Patch by Kenneth Johansson, 30 Jun 2003: 2003-07-01 21:06:45 +00:00
cmd_reginfo.c Add support for new TQM5200 revisions 2006-07-19 17:52:30 +02:00
cmd_reiser.c * Fix get_partition_info() parameter error in all other calls 2005-03-04 11:27:31 +00:00
cmd_scsi.c Add AHCI support to u-boot 2006-08-23 10:39:01 -05:00
cmd_spi.c Cleanup for GCC-4.x 2005-10-13 16:45:02 +02:00
cmd_universe.c * Patch by Stefan Roese, 03 May 2005: 2005-05-03 06:06:41 +00:00
cmd_usb.c Prevent USB commands from working when USB is stopped. 2006-08-03 23:20:13 +02:00
cmd_vfd.c * Use "-fPIC" instead of "-mrelocatable" to prevent problems with 2003-11-17 21:14:37 +00:00
cmd_ximg.c Patch by Robert Schwebel, 13 May 2004: 2004-06-09 10:15:00 +00:00
command.c Adjust "echo" as a default command 2006-03-12 16:51:59 +01:00
console.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
crc16.c Code cleanup 2006-07-21 11:56:05 +02:00
devices.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
dlmalloc.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
dlmalloc.src * Code cleanup: 2003-06-27 21:31:46 +00:00
docecc.c * Cleanup 2004-07-11 20:04:51 +00:00
env_common.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
env_dataflash.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
env_eeprom.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
env_flash.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
env_nand.c Add NAND environment support for PPC440EPx Sequoia NAND boot config 2006-09-12 20:19:10 +02:00
env_nowhere.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
env_nvram.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
environment.c Add NAND environment support for PPC440EPx Sequoia NAND boot config 2006-09-12 20:19:10 +02:00
exports.c Added simple_strtoul(), getenv() and setenv() to the exported functions. 2006-09-01 15:00:02 +02:00
flash.c Merge with /home/m8/git/u-boot 2005-10-15 18:23:43 +02:00
fpga.c Cleanup for GCC-4.x 2005-10-13 16:45:02 +02:00
ft_build.c * Fix a bunch of compiler warnings for gcc 4.0 2006-10-19 11:33:52 -05:00
hush.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
kgdb.c Cleanup for GCC-4.x 2005-10-13 16:45:02 +02:00
lcd.c MCC200: Fix uninitialized variable problem in LCD driver 2006-10-20 15:51:21 +02:00
lists.c Initial revision 2002-08-17 09:36:01 +00:00
lynxkdi.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
main.c Minor code cleanup. 2006-10-28 00:38:39 +02:00
Makefile Merge branch 'master' of http://www.denx.de/git/u-boot 2006-10-10 17:21:42 -05:00
memsize.c Add a common get_ram_size() function and modify the the 2004-01-06 22:38:14 +00:00
miiphybb.c Cleanup compile warnings. Prepare for release 1.1.5 2006-10-20 17:54:33 +02:00
miiphyutil.c Fix miiphy global data initialization (problem on 4xx boards when no 2005-11-30 18:06:04 +01:00
s_record.c Initial revision 2002-08-17 09:36:01 +00:00
serial.c Make the serial driver framework work with CONFIG_SERIAL_MULTI enabled 2006-08-30 23:02:10 +02:00
soft_i2c.c * Update Intel IXP4xx support 2006-05-30 15:56:48 +02:00
soft_spi.c * Code cleanup: 2003-06-27 21:31:46 +00:00
spartan2.c * Patch by Steven Scholz, 25 Feb 2004: 2004-02-27 00:07:27 +00:00
spartan3.c Cleanup 2005-09-25 18:49:35 +02:00
usb_kbd.c * Code cleanup: 2003-06-27 21:31:46 +00:00
usb_storage.c Coding style cleanup 2006-10-20 12:02:59 +02:00
usb.c Prevent USB commands from working when USB is stopped. 2006-08-03 23:20:13 +02:00
virtex2.c Add support for AMD's Pb1x00 eval board; 2005-09-25 00:53:22 +02:00
xilinx.c Cleanup for GCC-4.x 2005-10-13 16:45:02 +02:00
xyzModem.c Coding Style cleanup. 2006-08-31 16:46:53 +02:00