]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/i2c/soft_i2c.c
omap24xx_i2c: Add AM33XX support
[karo-tx-uboot.git] / drivers / i2c / soft_i2c.c
index 1a1809ac16ad40c26d7b2dc26f900239af10030d..36c6114e3cc9e307174883e920352503d04d1948 100644 (file)
@@ -30,9 +30,7 @@
 #include <ioports.h>
 #include <asm/io.h>
 #endif
-#if defined(CONFIG_AT91RM9200) || \
-       defined(CONFIG_AT91SAM9260) ||  defined(CONFIG_AT91SAM9261) || \
-       defined(CONFIG_AT91SAM9263)
+#if defined(CONFIG_AT91FAMILY)
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/at91_pio.h>
@@ -121,7 +119,6 @@ DECLARE_GLOBAL_DATA_PTR;
 
 #ifdef DEBUG_I2C
 #define PRINTD(fmt,args...)    do {    \
-       if (gd->have_console)           \
                printf (fmt ,##args);   \
        } while (0)
 #else
@@ -288,6 +285,7 @@ int i2c_set_bus_num(unsigned int bus)
                int     ret;
 
                ret = i2x_mux_select_mux(bus);
+               i2c_init_board();
                if (ret == 0)
                        i2c_bus_num = bus;
                else