[U-Boot-Users] iic1 can't work on 440EPx

Matthias Fuchs matthias.fuchs at esd-electronics.com
Wed Sep 5 14:57:48 CEST 2007


Hi Denny,

as I already told you off the list, you _may not post HTML_ to this
list. Your request will be ignored. 

Concerning your iic issue it might be the case that you did not set
up the I2C balls of your CPU correctly. Try this in board_early_init_f():

	u32 sdr0_pfc1;

	mfsdr(SDR0_PFC1, sdr0_pfc1);

	/* enable 2nd IIC */
	sdr0_pfc1 = (sdr0_pfc1 & ~SDR0_PFC1_SIS_MASK) | SDR0_PFC1_SIS_IIC1_SEL;

	mtsdr(SDR0_PFC1, sdr0_pfc1);

Matthias

On Wednesday 05 September 2007 13:04, Dong Yuan Xiao (CW) wrote:
> Hi all,
>  
>    Is there anyone working on the 440EPx? I found the code in u-boot 1.2.0 only support iic0, so iic1 didn't work.
>  
>    However I tried many ways to enable the iic1 bus, bus all failed.
>  
>    I even tried the simple way as changing the 'I2C_BASE_ADDR' in file ../include/440_i2c.h to (CFG_PERIPHERAL_BASE + 0x00000800), still can't make the iic1 work, why? can anyone give me the answer that why the u-boot always skip the iic1 bus, is there some bug in the iic1 bus itself?
>  
>  
> ,Thanks
> - Denny
> 
> 




More information about the U-Boot mailing list