public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] PATCH: Add command support for second I2Ccontroller
@ 2006-05-16 15:43 Menon, Nishanth
  2006-05-16 16:58 ` Ben Warren
  0 siblings, 1 reply; 6+ messages in thread
From: Menon, Nishanth @ 2006-05-16 15:43 UTC (permalink / raw)
  To: u-boot

Ben,

> This approach sounds good.  The only down-side that I can see is that
> the driver needs to keep track of context.  Personally, I prefer
Yes and no, yes- if the driver has multiple busses to support, and no-
if they don't have multiple busses to support.

> 
> In order to do this properly, we should add to the base API in
> include/i2c.h something like:
> 
> void i2c_set_bus(uchar dev);
> uchar i2c_get_bus(void);
> void i2c_set_bus_speed(int speed);
> int i2c_get_bus_speed(void);
> 
> or merge the index and speed as you have in your code.
For controllers allowing me to switch between standard/full speed/HS
mode or standard/fullspeed: Two commands to run 
Versus:
For controllers having a single speed:
One command..

Interesting call.. Being biased towards my platform I'd suggest merged
code.. but I leave it to the common wisdom to decide :)

> 
> The drivers can then either choose to implement or not implement this
> feature, and we can add a parallel command tree based on 'i2c' as
> Wolfgang has suggested.
Don't know if a parallel cmd tree is required, as far as I see, it is an
additional command to extend the reach of i2c driver, and since the
changes wont affect other drivers, I hope it can be patched in to the
mainline tree..

Regards,
Nishanth Menon

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-05-17 22:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-16 15:43 [U-Boot-Users] PATCH: Add command support for second I2Ccontroller Menon, Nishanth
2006-05-16 16:58 ` Ben Warren
2006-05-16 20:15   ` Wolfgang Denk
2006-05-16 20:26     ` Ben Warren
2006-05-17 16:49   ` [U-Boot-Users] Help explain the Ramdisk Load Address: 00000000 muqiyong
     [not found]     ` <000001c679d1$d6d5a810$b7899d0a@first>
2006-05-17 22:45       ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox