[U-Boot-Users] i2c_set_bus_num
Timur Tabi
timur at freescale.com
Thu Mar 29 20:11:12 CEST 2007
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
More information about the U-Boot
mailing list