On Wednesday, December 14, 2011 06:24:13 PM you wrote:
> 
> I think you will also need to update the get_board_revision function
> to ensure that SPL works with very early Overo revisions.
> 
> Note this excerpt from the X-loader get_board_revision funtion:
> 
>       /* board revisions <= R2410 connect 4030 irq_1 to gpio112             */
>       /* these boards should return a revision number of 0                  */
>       /* the code below forces a 4030 RTC irq to ensure that gpio112 is low */
> #ifdef CONFIG_DRIVER_OMAP34XX_I2C
>       i2c_init(CFG_I2C_SPEED, CFG_I2C_SLAVE);
>       data = 0x01;
>       i2c_write(0x4B, 0x29, 1, &data, 1);
>       data = 0x0c;
>       i2c_write(0x4B, 0x2b, 1, &data, 1);
>       i2c_read(0x4B, 0x2a, 1, &data, 1);
> #endif
> 
> Yup, ugly, but this is the only way to detect revision properly on those
> boards.
That explains why my Rev0-board is sometimes detected with Rev 1 and the whole 
i2c stuff is not working because it was not initialized in u-boot :)

will prepare V2 & test tomorrow & thanks for this hint!

Andreas
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to