[U-Boot-Users] SOFT_I2C on at91rm9200 - FIXED

Nils N. Gjerdevik nils.gjerdevik at gmail.com
Tue Jun 19 15:38:38 CEST 2007


Joakim Tjernlund wrote:
> On Tue, 2007-06-19 at 13:52 +0200, Nils Gjerdevik wrote:
>   
>> 2007/6/18, Matteo Vit <matteo.vit at dave.eu>:
>>     
>>> 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




More information about the U-Boot mailing list