[U-Boot-Users] i2c_set_bus_num

Kim Phillips kim.phillips at freescale.com
Wed Mar 28 03:00:27 CEST 2007


On Tue, 27 Mar 2007 16:48:29 -0700
Dongying_Xu at us.alphanetworks.com wrote:

> Hi, 
> 
> Does anyone experienced following problem? In u-boot/drivers/fsl_i2c.c, 
> there are functions to set and get i2c bus number,
> When I set the default i2c_bus_num to 0, I can not use i2c_set_bus_num() 
> set bus 1 properly.  For example, I called
> 
> >>i2c_set_bus_num(1);
> >>printf(The bus number is %d\n", i2c_get_bus_num());
> 
> >>>>The bus number is 0.
> 
> I am using MPC8343.  Thanks. Any suggestion is appreciated.
> 
See "Initial Stack, Global Data" in the u-boot README.

If your memory controller, or whatever you want to access while unable to write global vars, is hanging off of the 2nd bus, do something equivalent to what the 8349ITX does (look for CFG_SPD_BUS_NUM).

Kim




More information about the U-Boot mailing list