From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Tue, 29 May 2012 16:45:37 +0200 Subject: [U-Boot] Detecting board revision that needs to be done after relocation In-Reply-To: References: Message-ID: <201205291645.37441.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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