|
@@ -396,6 +396,26 @@ static struct platform_device bfin_device_gpiokeys = {
|
|
|
};
|
|
|
#endif
|
|
|
|
|
|
+#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
|
|
|
+#include <linux/i2c-gpio.h>
|
|
|
+
|
|
|
+static struct i2c_gpio_platform_data i2c_gpio_data = {
|
|
|
+ .sda_pin = 2,
|
|
|
+ .scl_pin = 3,
|
|
|
+ .sda_is_open_drain = 0,
|
|
|
+ .scl_is_open_drain = 0,
|
|
|
+ .udelay = 40,
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device i2c_gpio_device = {
|
|
|
+ .name = "i2c-gpio",
|
|
|
+ .id = 0,
|
|
|
+ .dev = {
|
|
|
+ .platform_data = &i2c_gpio_data,
|
|
|
+ },
|
|
|
+};
|
|
|
+#endif
|
|
|
+
|
|
|
static struct platform_device *stamp_devices[] __initdata = {
|
|
|
#if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
|
|
|
&rtc_device,
|
|
@@ -433,6 +453,10 @@ static struct platform_device *stamp_devices[] __initdata = {
|
|
|
#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
|
|
|
&bfin_device_gpiokeys,
|
|
|
#endif
|
|
|
+
|
|
|
+#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
|
|
|
+ &i2c_gpio_device,
|
|
|
+#endif
|
|
|
};
|
|
|
|
|
|
static int __init stamp_init(void)
|