boot init code depending on i2c eeprom value

Marc Reilly marc at cpdesign.com.au
Fri Aug 3 08:20:58 EDT 2012


Hi,

>i need to set the pin-mux of the board init code depending on an ID coming
from 
>an i2C EEPROM of the board. 
>Is it possible to do something like this: 

>postcore_initcall(ecuv6_postcore_init); 
> console_initcall(ecuv6_console_init); 
>Actually this is not working. The i2c_imx:i2c_imx_probe(..) function gets
called later. 
>Is there a way or concept to do something like this? 

Do it (all) in a device_initcall() function?

Cheers,
Marc






More information about the barebox mailing list