[U-Boot-Users] i2c_set_bus_num

Dongying_Xu at us.alphanetworks.com Dongying_Xu at us.alphanetworks.com
Thu Mar 29 20:51:36 CEST 2007


Timur,

Thanks.  It looks just a matter of time. 

dongy




Timur Tabi <timur at freescale.com>
03/29/2007 11:11 AM
 
        To:     Dongying_Xu at us.alphanetworks.com
        cc:     Kim Phillips <kim.phillips at freescale.com>, 
u-boot-users at lists.sourceforge.net
        Subject:        Re: [U-Boot-Users] i2c_set_bus_num


Dongying_Xu at us.alphanetworks.com wrote:
> 
> Kim,
> 
> Thanks. When I defined CFG_SPD_BUS_NUM 1 in my header file, things are 
> much better.  Though I don't understand why this definition will help. 
>  I read the  "Initial Stack, Global Data" part in Readme, It looks that 
> Initialized global data is read-only, if this is the case, then It 
> should fail when I try to set I2c bus num to 0, but it worked.  Could 
> you please explain a little bit?   Thanks

If you call i2c_set_bus_num() before DDR is initialized, it will fail.

If you call i2c_set_bus_num() after DDR is initialized, it will succeed.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070329/215595a3/attachment.htm 


More information about the U-Boot mailing list