[U-Boot-Users] bd->bi_iic_fast initialization in lib_ppc/board.c
listmember at orkun.us
listmember at orkun.us
Wed Mar 3 18:17:40 CET 2004
Speaking of the code fragment below (from lib_ppc/board.c), I would like
to send a patch so that bi_iic_fast is initialized from "i2cfast"
environment variable (if defined). This parameter is passed to Linux to
set the i2c driver mode.
Of course, this variable should be in the environment when system is
booting and any change should be saved to environment first and board
should be reset to take effect. There are other environment variables in
the same file that behave this way. This is only going to be used when
CONFIG_405GP and CONFIG_405EP is defined.
What do you think?
%%% begin fragment %%%
#if defined(CONFIG_405GP) || defined(CONFIG_405EP)
bd->bi_pci_busfreq = get_PCI_freq ();
#ifdef CFG_OPB_FREQ
bd->bi_opbfreq = CFG_OPB_FREQ;
#else
bd->bi_opbfreq = 50000000;
#endif
bd->bi_iic_fast[0] = 0;
bd->bi_iic_fast[1] = 0;
#endif
#endif
%%% end fragment %%%
Regards,
Tolunay
More information about the U-Boot
mailing list