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

2012-06-04 Thread Hebbar, Gururaja
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 relocat

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

2012-05-29 Thread Andrew E. Mileski
On 05/28/2012 11:25 PM, Fabio Estevam wrote: 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, so what is the correct way to "delay" get_board_rev, so that it gets called only at a time

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

2012-05-29 Thread Fabio Estevam
On Tue, May 29, 2012 at 11:45 AM, Marek Vasut wrote: > Well ... implement board-specific hack in your boardfile that detects the PMIC > early? Yes, you are right. This works ;-) Regards, Fabio Estevam ___ U-Boot mailing list U-Boot@lists.denx.de http

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

2012-05-29 Thread Marek Vasut
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_boa

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

2012-05-28 Thread 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, 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