COBJS-y += timer.o
COBJS-$(CONFIG_CMD_SLEEP) += sleep.o
COBJS-$(CONFIG_CMD_SLEEP) += sleep_asm.o
-COBJS-$(CONFIG_SOFT_I2C) += i2c-gpio.o
COBJS-$(CONFIG_CMD_USBDOWN) += usb-hs-otg.o usb_downloader.o
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
COBJS-$(CONFIG_SOFT_I2C) += soft_i2c.o
COBJS-$(CONFIG_SPEAR_I2C) += spr_i2c.o
COBJS-$(CONFIG_TSI108_I2C) += tsi108_i2c.o
+COBJS-$(CONFIG_S5P_GPIO_I2C) += s5p_gpio_i2c.o
COBJS-$(CONFIG_DRIVER_S5PC1XX_I2C) += s5pc1xx_i2c.o
COBJS := $(COBJS-y)
#include <i2c-gpio.h>
#include <i2c.h>
+#ifdef CONFIG_SOFT_I2C
+
static struct i2c_gpio_bus *i2c_gpio;
void i2c_gpio_init(struct i2c_gpio_bus *bus, int len, int index)
i2c_gpio[bus_index].bus->sda_pin);
}
}
+
+#endif /* CONFIG_SOFT_I2C */
#define CONFIG_SYS_I2C_0 1
#else
#include <i2c-gpio.h>
+#define CONFIG_S5P_GPIO_I2C 1
#define CONFIG_SOFT_I2C 1
#define CONFIG_SYS_I2C_INIT_BOARD
#define CONFIG_SYS_I2C_SPEED 50000