Wolfgang Denk wrote:
>> would it be okay to make a best-guess attempt at modifying the code to call
>> i2c_init() earlier for those boards that need it (e.g. call it from
>> scc_init()
>> on the lwmon board), and hope someone else notices any bugs in other 8xx
>> boards?
>
> That would mean to add even more #ifdef'ery to more common files - I
> don;t think that this is a good odea.
The only platform that has this problem is 8xx. Can't we do something like
this:
init_fnc_t *init_sequence[] = {
+#ifdef CONFIG_8xx
+ init_func_i2c(),
+#endif
#if defined(CONFIG_BOARD_EARLY_INIT_F)
board_early_init_f,
#endif
--
Timur Tabi
Linux kernel developer at Freescale
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
U-Boot-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/u-boot-users