
On Tue, May 29, 2012 at 08:55:34, Fabio Estevam wrote:
Hi,
I need to provide a get_board_rev() function that depends on I2C probe of a PMIC to decide between the board revision.
I2C is only available after relocation,
Not necessarily. You can use i2c probe & read even before relocation provided they are no data from bss section being used.
Look at below commits for details
http://git.denx.de/?p=u-boot.git;a=commitdiff;h=0b620ec97e05ddb09714d127a788...
http://arago-project.org/git/projects/?p=u-boot-am33x.git;a=commitdiff;h=482...
http://arago-project.org/git/projects/?p=u-boot-am33x.git;a=commitdiff;h=0ff...
so what is the correct way to "delay" get_board_rev, so that it gets called only at a time when I2C is ready?
Thanks,
Fabio Estevam _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Regards, Gururaja