[U-Boot-Users] I2C Initialization

Robert Schwebel r.schwebel at pengutronix.de
Thu Mar 6 07:21:29 CET 2003


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




More information about the U-Boot mailing list