aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf537
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2012-05-15 03:25:50 -0400
committerBob Liu <lliubbo@gmail.com>2012-05-21 02:55:00 -0400
commitcf93feb3a0dee97c7896016a352a3226139fbcf4 (patch)
treee0d88605a39dd47b84992fcb6d6525d0f678bf6e /arch/blackfin/mach-bf537
parent913f2f2df797c45e92ab527022cd49deb6eee3ab (diff)
blackfin: twi: Move TWI peripheral pin request array to platform data
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/mach-bf537')
-rw-r--r--arch/blackfin/mach-bf537/boards/cm_bf537e.c5
-rw-r--r--arch/blackfin/mach-bf537/boards/cm_bf537u.c5
-rw-r--r--arch/blackfin/mach-bf537/boards/dnp5370.c5
-rw-r--r--arch/blackfin/mach-bf537/boards/minotaur.c5
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c5
-rw-r--r--arch/blackfin/mach-bf537/boards/tcm_bf537.c5
6 files changed, 30 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/cm_bf537e.c b/arch/blackfin/mach-bf537/boards/cm_bf537e.c
index 27fd2c32ae9a..9408ab56d87f 100644
--- a/arch/blackfin/mach-bf537/boards/cm_bf537e.c
+++ b/arch/blackfin/mach-bf537/boards/cm_bf537e.c
@@ -486,6 +486,8 @@ static struct platform_device bfin_sir1_device = {
486#endif 486#endif
487 487
488#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 488#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
489static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0};
490
489static struct resource bfin_twi0_resource[] = { 491static struct resource bfin_twi0_resource[] = {
490 [0] = { 492 [0] = {
491 .start = TWI0_REGBASE, 493 .start = TWI0_REGBASE,
@@ -504,6 +506,9 @@ static struct platform_device i2c_bfin_twi_device = {
504 .id = 0, 506 .id = 0,
505 .num_resources = ARRAY_SIZE(bfin_twi0_resource), 507 .num_resources = ARRAY_SIZE(bfin_twi0_resource),
506 .resource = bfin_twi0_resource, 508 .resource = bfin_twi0_resource,
509 .dev = {
510 .platform_data = &bfin_twi0_pins,
511 },
507}; 512};
508#endif 513#endif
509 514
diff --git a/arch/blackfin/mach-bf537/boards/cm_bf537u.c b/arch/blackfin/mach-bf537/boards/cm_bf537u.c
index 3f3abad86ec3..0143d8bef909 100644
--- a/arch/blackfin/mach-bf537/boards/cm_bf537u.c
+++ b/arch/blackfin/mach-bf537/boards/cm_bf537u.c
@@ -451,6 +451,8 @@ static struct platform_device bfin_sir1_device = {
451#endif 451#endif
452 452
453#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 453#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
454static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0};
455
454static struct resource bfin_twi0_resource[] = { 456static struct resource bfin_twi0_resource[] = {
455 [0] = { 457 [0] = {
456 .start = TWI0_REGBASE, 458 .start = TWI0_REGBASE,
@@ -469,6 +471,9 @@ static struct platform_device i2c_bfin_twi_device = {
469 .id = 0, 471 .id = 0,
470 .num_resources = ARRAY_SIZE(bfin_twi0_resource), 472 .num_resources = ARRAY_SIZE(bfin_twi0_resource),
471 .resource = bfin_twi0_resource, 473 .resource = bfin_twi0_resource,
474 .dev = {
475 .platform_data = &bfin_twi0_pins,
476 },
472}; 477};
473#endif 478#endif
474 479
diff --git a/arch/blackfin/mach-bf537/boards/dnp5370.c b/arch/blackfin/mach-bf537/boards/dnp5370.c
index 6f77bf708ec0..8bbf0a23fd49 100644
--- a/arch/blackfin/mach-bf537/boards/dnp5370.c
+++ b/arch/blackfin/mach-bf537/boards/dnp5370.c
@@ -329,6 +329,8 @@ static struct platform_device bfin_uart1_device = {
329#endif 329#endif
330 330
331#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 331#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
332static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0};
333
332static struct resource bfin_twi0_resource[] = { 334static struct resource bfin_twi0_resource[] = {
333 [0] = { 335 [0] = {
334 .start = TWI0_REGBASE, 336 .start = TWI0_REGBASE,
@@ -347,6 +349,9 @@ static struct platform_device i2c_bfin_twi_device = {
347 .id = 0, 349 .id = 0,
348 .num_resources = ARRAY_SIZE(bfin_twi0_resource), 350 .num_resources = ARRAY_SIZE(bfin_twi0_resource),
349 .resource = bfin_twi0_resource, 351 .resource = bfin_twi0_resource,
352 .dev = {
353 .platform_data = &bfin_twi0_pins,
354 },
350}; 355};
351#endif 356#endif
352 357
diff --git a/arch/blackfin/mach-bf537/boards/minotaur.c b/arch/blackfin/mach-bf537/boards/minotaur.c
index d2d71282618f..a10f90e444bc 100644
--- a/arch/blackfin/mach-bf537/boards/minotaur.c
+++ b/arch/blackfin/mach-bf537/boards/minotaur.c
@@ -386,6 +386,8 @@ static struct platform_device bfin_sir1_device = {
386#endif 386#endif
387 387
388#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 388#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
389static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0};
390
389static struct resource bfin_twi0_resource[] = { 391static struct resource bfin_twi0_resource[] = {
390 [0] = { 392 [0] = {
391 .start = TWI0_REGBASE, 393 .start = TWI0_REGBASE,
@@ -404,6 +406,9 @@ static struct platform_device i2c_bfin_twi_device = {
404 .id = 0, 406 .id = 0,
405 .num_resources = ARRAY_SIZE(bfin_twi0_resource), 407 .num_resources = ARRAY_SIZE(bfin_twi0_resource),
406 .resource = bfin_twi0_resource, 408 .resource = bfin_twi0_resource,
409 .dev = {
410 .platform_data = &bfin_twi0_pins,
411 },
407}; 412};
408#endif 413#endif
409 414
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index ec3e5c131216..c9d9473a5ab2 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -1790,6 +1790,8 @@ static struct platform_device bfin_sir1_device = {
1790#endif 1790#endif
1791 1791
1792#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 1792#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
1793static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0};
1794
1793static struct resource bfin_twi0_resource[] = { 1795static struct resource bfin_twi0_resource[] = {
1794 [0] = { 1796 [0] = {
1795 .start = TWI0_REGBASE, 1797 .start = TWI0_REGBASE,
@@ -1808,6 +1810,9 @@ static struct platform_device i2c_bfin_twi_device = {
1808 .id = 0, 1810 .id = 0,
1809 .num_resources = ARRAY_SIZE(bfin_twi0_resource), 1811 .num_resources = ARRAY_SIZE(bfin_twi0_resource),
1810 .resource = bfin_twi0_resource, 1812 .resource = bfin_twi0_resource,
1813 .dev = {
1814 .platform_data = &bfin_twi0_pins,
1815 },
1811}; 1816};
1812#endif 1817#endif
1813 1818
diff --git a/arch/blackfin/mach-bf537/boards/tcm_bf537.c b/arch/blackfin/mach-bf537/boards/tcm_bf537.c
index 3fb421823857..e285c3675286 100644
--- a/arch/blackfin/mach-bf537/boards/tcm_bf537.c
+++ b/arch/blackfin/mach-bf537/boards/tcm_bf537.c
@@ -453,6 +453,8 @@ static struct platform_device bfin_sir1_device = {
453#endif 453#endif
454 454
455#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 455#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
456static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0};
457
456static struct resource bfin_twi0_resource[] = { 458static struct resource bfin_twi0_resource[] = {
457 [0] = { 459 [0] = {
458 .start = TWI0_REGBASE, 460 .start = TWI0_REGBASE,
@@ -471,6 +473,9 @@ static struct platform_device i2c_bfin_twi_device = {
471 .id = 0, 473 .id = 0,
472 .num_resources = ARRAY_SIZE(bfin_twi0_resource), 474 .num_resources = ARRAY_SIZE(bfin_twi0_resource),
473 .resource = bfin_twi0_resource, 475 .resource = bfin_twi0_resource,
476 .dev = {
477 .platform_data = &bfin_twi0_pins,
478 },
474}; 479};
475#endif 480#endif
476 481