X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fboard_f.c;h=f0664bc2b2046acf3fc6f1177c076fcb6d432959;hb=8ad59c9a7bef49a18078888ad8eba8e87737c3b2;hp=0ada1afe16b220f1080146fa196120d4e7b3e8a3;hpb=230187ce266889ad465b39ded6717805379e7ffe;p=u-boot diff --git a/common/board_f.c b/common/board_f.c index 0ada1afe16..f0664bc2b2 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -249,7 +249,11 @@ void dram_init_banksize(void) static int init_func_i2c(void) { puts("I2C: "); +#ifdef CONFIG_SYS_I2C + i2c_init_all(); +#else i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); +#endif puts("ready\n"); return 0; }