Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-30 Thread Stephen Warren
On 10/29/2012 11:57 PM, Heiko Schocher wrote: Hello Stephen, On 29.10.2012 16:34, Stephen Warren wrote: ... If there are e.g. 4 I2C controllers in an SoC, the driver needs to know which one is in use. Passing that information directly to the driver functions is much simple than requiring

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-30 Thread Simon Glass
Hi, On Tue, Oct 30, 2012 at 9:50 AM, Stephen Warren swar...@wwwdotorg.org wrote: On 10/29/2012 11:57 PM, Heiko Schocher wrote: Hello Stephen, On 29.10.2012 16:34, Stephen Warren wrote: ... If there are e.g. 4 I2C controllers in an SoC, the driver needs to know which one is in use. Passing

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-30 Thread Tom Rini
On Mon, Oct 29, 2012 at 10:53:10AM +0100, Heiko Schocher wrote: Hello Tom, On 26.10.2012 20:44, Tom Rini wrote: On Thu, Oct 25, 2012 at 02:37:08PM -0700, Simon Glass wrote: [snip] Later, I wonder whether the concept of a 'current' i2c bus should be maintained by the command line

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-30 Thread Heiko Schocher
Hello Simon, On 30.10.2012 18:22, Simon Glass wrote: Hi, On Tue, Oct 30, 2012 at 9:50 AM, Stephen Warrenswar...@wwwdotorg.org wrote: On 10/29/2012 11:57 PM, Heiko Schocher wrote: Hello Stephen, On 29.10.2012 16:34, Stephen Warren wrote: ... If there are e.g. 4 I2C controllers in an SoC,

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-30 Thread Tom Rini
On Tue, Oct 30, 2012 at 10:22:54AM -0700, Simon Glass wrote: Hi, On Tue, Oct 30, 2012 at 9:50 AM, Stephen Warren swar...@wwwdotorg.org wrote: On 10/29/2012 11:57 PM, Heiko Schocher wrote: Hello Stephen, On 29.10.2012 16:34, Stephen Warren wrote: ... If there are e.g. 4 I2C

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-29 Thread Heiko Schocher
Hello Simon, On 26.10.2012 18:08, Simon Glass wrote: On Thu, Oct 25, 2012 at 10:48 PM, Heiko Schocherh...@denx.de wrote: Hello Simon, On 25.10.2012 23:37, Simon Glass wrote: On Mon, Oct 22, 2012 at 10:40 AM, Heiko Schocherh...@denx.de wrote: [...] 2. The init is a bit odd, in that we

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-29 Thread Heiko Schocher
Hello Stephen, On 26.10.2012 18:07, Stephen Warren wrote: On 10/25/2012 11:48 PM, Heiko Schocher wrote: Hello Simon, On 25.10.2012 23:37, Simon Glass wrote: On Mon, Oct 22, 2012 at 10:40 AM, Heiko Schocherh...@denx.de wrote: rebased/reworked the I2C multibus patches from Simon Glass found

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-29 Thread Heiko Schocher
Hello Tom, On 26.10.2012 20:44, Tom Rini wrote: On Thu, Oct 25, 2012 at 02:37:08PM -0700, Simon Glass wrote: [snip] Later, I wonder whether the concept of a 'current' i2c bus should be maintained by the command line interpreter, rather than the i2c system. Because to be honest, most of the

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-29 Thread Simon Glass
Hi Heiko, On Mon, Oct 29, 2012 at 2:44 AM, Heiko Schocher h...@denx.de wrote: Hello Simon, On 26.10.2012 18:08, Simon Glass wrote: On Thu, Oct 25, 2012 at 10:48 PM, Heiko Schocherh...@denx.de wrote: Hello Simon, On 25.10.2012 23:37, Simon Glass wrote: On Mon, Oct 22, 2012 at 10:40

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-29 Thread Stephen Warren
On 10/29/2012 03:47 AM, Heiko Schocher wrote: Hello Stephen, On 26.10.2012 18:07, Stephen Warren wrote: On 10/25/2012 11:48 PM, Heiko Schocher wrote: Hello Simon, On 25.10.2012 23:37, Simon Glass wrote: On Mon, Oct 22, 2012 at 10:40 AM, Heiko Schocherh...@denx.de wrote:

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-29 Thread Simon Glass
Hi Stephen, On Mon, Oct 29, 2012 at 8:34 AM, Stephen Warren swar...@wwwdotorg.org wrote: On 10/29/2012 03:47 AM, Heiko Schocher wrote: Hello Stephen, On 26.10.2012 18:07, Stephen Warren wrote: On 10/25/2012 11:48 PM, Heiko Schocher wrote: Hello Simon, On 25.10.2012 23:37, Simon Glass

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-29 Thread Heiko Schocher
Hello Simon, On 29.10.2012 14:48, Simon Glass wrote: Hi Heiko, On Mon, Oct 29, 2012 at 2:44 AM, Heiko Schocherh...@denx.de wrote: Hello Simon, On 26.10.2012 18:08, Simon Glass wrote: On Thu, Oct 25, 2012 at 10:48 PM, Heiko Schocherh...@denx.de wrote: Hello Simon, On 25.10.2012

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-29 Thread Heiko Schocher
Hello Stephen, On 29.10.2012 16:34, Stephen Warren wrote: On 10/29/2012 03:47 AM, Heiko Schocher wrote: Hello Stephen, On 26.10.2012 18:07, Stephen Warren wrote: On 10/25/2012 11:48 PM, Heiko Schocher wrote: Hello Simon, On 25.10.2012 23:37, Simon Glass wrote: On Mon, Oct 22, 2012 at

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-26 Thread Stephen Warren
On 10/25/2012 11:48 PM, Heiko Schocher wrote: Hello Simon, On 25.10.2012 23:37, Simon Glass wrote: On Mon, Oct 22, 2012 at 10:40 AM, Heiko Schocherh...@denx.de wrote: rebased/reworked the I2C multibus patches from Simon Glass found here:

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-26 Thread Simon Glass
Hi Heiko, On Thu, Oct 25, 2012 at 10:48 PM, Heiko Schocher h...@denx.de wrote: Hello Simon, On 25.10.2012 23:37, Simon Glass wrote: On Mon, Oct 22, 2012 at 10:40 AM, Heiko Schocherh...@denx.de wrote: rebased/reworked the I2C multibus patches from Simon Glass found here:

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-26 Thread Tom Rini
On Thu, Oct 25, 2012 at 02:37:08PM -0700, Simon Glass wrote: [snip] Later, I wonder whether the concept of a 'current' i2c bus should be maintained by the command line interpreter, rather than the i2c system. Because to be honest, most of the drivers I see have to save the current bus number,

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-25 Thread Simon Glass
Hi Heiko, On Mon, Oct 22, 2012 at 10:40 AM, Heiko Schocher h...@denx.de wrote: rebased/reworked the I2C multibus patches from Simon Glass found here: http://www.mail-archive.com/u-boot@lists.denx.de/msg75530.html It seems the timing is coming, to bring this in mainline and move boards over

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-25 Thread Heiko Schocher
Hello Simon, On 25.10.2012 23:37, Simon Glass wrote: On Mon, Oct 22, 2012 at 10:40 AM, Heiko Schocherh...@denx.de wrote: rebased/reworked the I2C multibus patches from Simon Glass found here: http://www.mail-archive.com/u-boot@lists.denx.de/msg75530.html It seems the timing is coming, to

[U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-10-22 Thread Heiko Schocher
rebased/reworked the I2C multibus patches from Simon Glass found here: http://www.mail-archive.com/u-boot@lists.denx.de/msg75530.html It seems the timing is coming, to bring this in mainline and move boards over to the new i2c framework. As an example I converted the soft-i2c driver (and all

Re: [U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-01-17 Thread Heiko Schocher
Hello Simon, Simon Glass wrote: This series provides Heiko's upgraded I2C framework from a few years ago. I hope that we can bring this in and move boards over to it as time permits, rather than switching everything in one fell swoop which never happens. Ok, lets try it! To show it working

[U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-01-16 Thread Simon Glass
This series provides Heiko's upgraded I2C framework from a few years ago. I hope that we can bring this in and move boards over to it as time permits, rather than switching everything in one fell swoop which never happens. To show it working I have enabled it for Tegra in a very rough way. It