From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Thu, 29 Oct 2009 10:56:17 +0100 Subject: [U-Boot] Support for several I2C interfaces in the same board. In-Reply-To: References: <4AE95801.3030804@denx.de> <4AE9643B.3060804@denx.de> Message-ID: <4AE966C1.2040103@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello javier, javier Martin wrote: >> Hmm.. there is a driver/i2c/mxc_i2c.c driver for i.mx31, maybe the >> i.mx27 is similiar to this? Can you check this? > > Yes, I2C registers are the same in both chips. The only things that I > must change are: > - i2c clock management. > - i2c base addresses. Ok. > My current approach is trying to make this driver work for imx27/imx31 > using CONFIG_MX27/CONFIG_MX31 defines. > I don't know if you have a better suggestion for this. Sounds good to me. Maybe you talk with Sascha Hauer added to cc, as he is the original writer of this code. bye Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany