]> git.sur5r.net Git - u-boot/blobdiff - common/board_f.c
configs: imx: Remove CONFIG_SYS_SPD_BUS_NUM option
[u-boot] / common / board_f.c
index 0ada1afe16b220f1080146fa196120d4e7b3e8a3..f0664bc2b2046acf3fc6f1177c076fcb6d432959 100644 (file)
@@ -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;
 }