Instantiate the ep93xx gpio i2c bus driver in the generic ep93xx code. Index: linux-2.6.18-rc1-git7/arch/arm/mach-ep93xx/core.c =================================================================== --- linux-2.6.18-rc1-git7.orig/arch/arm/mach-ep93xx/core.c +++ linux-2.6.18-rc1-git7/arch/arm/mach-ep93xx/core.c @@ -457,6 +457,19 @@ static struct platform_device ep93xx_ohc }; +static struct ep93xx_i2c_pins ep93xx_i2c_gpio_pins = { + .sda_pin = EP93XX_GPIO_LINE_EEDAT, + .scl_pin = EP93XX_GPIO_LINE_EECLK, +}; + +static struct platform_device ep93xx_i2c_device = { + .name = "ep93xx-i2c", + .id = 0, + .dev.platform_data = &ep93xx_i2c_gpio_pins, + .num_resources = 0, +}; + + void __init ep93xx_init_devices(void) { unsigned int v; @@ -477,4 +490,5 @@ void __init ep93xx_init_devices(void) platform_device_register(&ep93xx_rtc_device); platform_device_register(&ep93xx_ohci_device); + platform_device_register(&ep93xx_i2c_device); }