From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Fri, 5 Feb 2010 09:32:06 +0100 Subject: [U-Boot] I2C Register In-Reply-To: <539104.18893.qm@web46114.mail.sp1.yahoo.com> References: <539104.18893.qm@web46114.mail.sp1.yahoo.com> Message-ID: <201002050932.06859.sr@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 Ronny, On Friday 05 February 2010 09:22:59 Ronny D wrote: > My Customized ppc4xx I2C interface provides two I2C controllers. so i think > we will have to use Hard I2C ( because i will have to modify the same in > kernel too). Yes, this would be best. But if you can map the I2C pins via pin multiplexing to some GPIO pins, you could use the existing soft_i2c driver. > Shall i used the same i2c driver from u-boot by modifying the register or > write my own driver for it? I have no idea, since I don't have any infos about your I2C controller. I don't know if it is similar to any of the supported controllers. So you need to check this yourself. > i found the ppc4xx_i2c structure, but can i get the information about the > each parameter or register used in that structure. >From the PPC4xx user manuals. For example the PPC440EPx. You can download those manual from the AppliedMicro (AMCC) web site. Cheers, Stefan -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de