[U-Boot] Detecting board revision that needs to be done after relocation

Marek Vasut marek.vasut at gmail.com
Tue May 29 16:45:37 CEST 2012


Dear Fabio Estevam,

> 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,

On arm? Not at all ;-) check arch/arm/lib/board.c

> so what is the correct way to
> "delay" get_board_rev, so that it gets called only at a time when I2C
> is ready?

Well ... implement board-specific hack in your boardfile that detects the PMIC 
early?

> Thanks,
> 
> Fabio Estevam
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

Best regards,
Marek Vasut


More information about the U-Boot mailing list