From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Schwebel Date: Thu, 6 Mar 2003 07:21:29 +0100 Subject: [U-Boot-Users] I2C Initialization In-Reply-To: <20030305191211.6A9BCC6E0C@atlas.denx.de> References: <20030305173922.GQ16290@pengutronix.de> <20030305191211.6A9BCC6E0C@atlas.denx.de> Message-ID: <20030306062129.GT16290@pengutronix.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Mar 05, 2003 at 08:12:06PM +0100, Wolfgang Denk wrote: > Please call it "i2c_init_board()" (similar to pci_init_board()"), and > call it from i2c_init(). I've renamed it. It's not easily possible to put it in i2c_init() as this is implemented in cpu/xxx/i2c.c. Calling the function is cpu independend, so it should be done from a higher level. For ppc I've put it into lib_ppc/board.c:init_func_i2c(), ARM doesn't currently have the same design, so I've put it in a comparable place inside lib_arm/board.c:start_armboot(). Is this ok for your? Robert -- Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de Pengutronix - Linux Solutions for Science and Industry Braunschweiger Str. 79, 31134 Hildesheim, Germany Handelsregister: Amtsgericht Hildesheim, HRA 2686 Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4