blackfin: twi: Move TWI peripheral pin request array to platform data
[sfrench/cifs-2.6.git] / arch / blackfin / mach-bf548 / boards / ezkit.c
index 4f4bd918566c92fef9681fe92cb402f2ef8344a5..3bd75bae750dd004f45d4ff3c8e6ede35b78a0b0 100644 (file)
@@ -1252,6 +1252,8 @@ static struct platform_device bfin_capture_device = {
 #endif
 
 #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
+static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0};
+
 static struct resource bfin_twi0_resource[] = {
        [0] = {
                .start = TWI0_REGBASE,
@@ -1270,9 +1272,14 @@ static struct platform_device i2c_bfin_twi0_device = {
        .id = 0,
        .num_resources = ARRAY_SIZE(bfin_twi0_resource),
        .resource = bfin_twi0_resource,
+       .dev = {
+               .platform_data = &bfin_twi0_pins,
+       },
 };
 
 #if !defined(CONFIG_BF542)     /* The BF542 only has 1 TWI */
+static const u16 bfin_twi1_pins[] = {P_TWI1_SCL, P_TWI1_SDA, 0};
+
 static struct resource bfin_twi1_resource[] = {
        [0] = {
                .start = TWI1_REGBASE,
@@ -1291,6 +1298,9 @@ static struct platform_device i2c_bfin_twi1_device = {
        .id = 1,
        .num_resources = ARRAY_SIZE(bfin_twi1_resource),
        .resource = bfin_twi1_resource,
+       .dev = {
+               .platform_data = &bfin_twi1_pins,
+       },
 };
 #endif
 #endif