From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nils N. Gjerdevik Date: Tue, 19 Jun 2007 15:38:38 +0200 Subject: [U-Boot-Users] SOFT_I2C on at91rm9200 - FIXED In-Reply-To: <1182256552.2969.54.camel@gentoo-jocke.transmode.se> References: <6c6c66ec0706190452x1b174410hc8a74b189d882c47@mail.gmail.com> <1182256552.2969.54.camel@gentoo-jocke.transmode.se> Message-ID: <4677DC5E.1020801@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Joakim Tjernlund wrote: > On Tue, 2007-06-19 at 13:52 +0200, Nils Gjerdevik wrote: > >> 2007/6/18, Matteo Vit : >> >>> Nils Gjerdevik ha scritto: >>> >>>> Hi, >>>> I'm trying to store the u-boot environment in an EEPROM (at24c128) on >>>> a custom at91rm9200 based board. This fails when using the included >>>> HARD_I2C driver, and since there are known problems with the I2C >>>> controller on this uC, I'm trying to set up SOFT_I2C instead, without >>>> success so far... >>>> >> Problem solved! Turns out the peripheral clock for the pio controller >> wasn't enabled. In the Linux code I looked at this was already done >> elsewhere. Thanks to Joakim and Matteo for valuable help. >> For the record, here is the code: >> > > Did you try my patch also and did it work? > > Jocke > I've tested it both with and without your patch, and both cases worked for me. I've only tested that I can read and write the eeprom successfully, I haven't done any more in depth tests. Nils