public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ben Warren <bwarren@qstreams.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] PATCH: Add command support for second I2C controller
Date: Mon, 15 May 2006 16:28:23 -0400	[thread overview]
Message-ID: <1147724903.16780.145.camel@saruman.qstreams.net> (raw)


Hello,

Please ignore the previous patch - it contained a typo that would break
the compile.  Sorry... really - I did test this a lot but must have hit
a wrong key sequence in vim or something...  Really!


Attached is a patch to common/cmd_i2c.c that allows access to two I2C
controllers on a board.  Note that this doesn't actually change any
hardware control - it just enhances the command set and passes more
information to whatever version of i2c_read(), i2c_write() etc. that
you're using.  I've implemented driver changes on MPC8349 hardware, but
they're not quite ready for review yet.  New definitions:
CONFIG_I2C_2_CTRLS - board has two I2C controllers
CFG_I2C2_NOPROBES {} - list of devices on bus 2 to ignore when probing

CHANGELOG: 
        If CONFIG_I2C_2_CTRLS is defined, the 'chip' parameter of all
I2C
commands will accept an optional controller argument.    
e.g.  'imd 50.1 0' displays data at offset 0 of controller 1 device 50
      'imd 50.2 0' displays data at offset 0 of controller 2 device 50
      'iprobe 2' probes for devices on the second bus

regards,
Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMD_I2C.patch
Type: text/x-patch
Size: 12674 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20060515/a03d58a4/attachment.bin 

             reply	other threads:[~2006-05-15 20:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-15 20:28 Ben Warren [this message]
2006-05-16 16:16 ` [U-Boot-Users] PATCH: Add command support for second I2C controller Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2006-05-16 15:14 Menon, Nishanth
2006-05-16 15:36 ` Ben Warren
2006-05-16 15:10 Menon, Nishanth
2006-05-16 15:34 ` Ben Warren
2006-05-15 20:07 Ben Warren
2006-05-17 22:24 ` Wolfgang Denk
2006-05-18 14:22   ` Ben Warren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1147724903.16780.145.camel@saruman.qstreams.net \
    --to=bwarren@qstreams.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox