diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2012-05-15 03:25:50 -0400 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-05-21 02:55:00 -0400 |
commit | cf93feb3a0dee97c7896016a352a3226139fbcf4 (patch) | |
tree | e0d88605a39dd47b84992fcb6d6525d0f678bf6e /arch/blackfin | |
parent | 913f2f2df797c45e92ab527022cd49deb6eee3ab (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')
-rw-r--r-- | arch/blackfin/mach-bf518/boards/ezbrd.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf518/boards/tcm-bf518.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ad7160eval.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/cm_bf527.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezbrd.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezkit.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/tll6527m.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/cm_bf537e.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/cm_bf537u.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/dnp5370.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/minotaur.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/tcm_bf537.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf538/boards/ezkit.c | 8 | ||||
-rw-r--r-- | arch/blackfin/mach-bf548/boards/cm_bf548.c | 10 | ||||
-rw-r--r-- | arch/blackfin/mach-bf548/boards/ezkit.c | 10 | ||||
-rw-r--r-- | arch/blackfin/mach-bf609/boards/ezkit.c | 10 |
17 files changed, 102 insertions, 1 deletions
diff --git a/arch/blackfin/mach-bf518/boards/ezbrd.c b/arch/blackfin/mach-bf518/boards/ezbrd.c index a17395727efa..f8047ca3b339 100644 --- a/arch/blackfin/mach-bf518/boards/ezbrd.c +++ b/arch/blackfin/mach-bf518/boards/ezbrd.c | |||
@@ -529,6 +529,8 @@ static struct platform_device bfin_i2s = { | |||
529 | #endif | 529 | #endif |
530 | 530 | ||
531 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 531 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
532 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
533 | |||
532 | static struct resource bfin_twi0_resource[] = { | 534 | static struct resource bfin_twi0_resource[] = { |
533 | [0] = { | 535 | [0] = { |
534 | .start = TWI0_REGBASE, | 536 | .start = TWI0_REGBASE, |
@@ -547,6 +549,9 @@ static struct platform_device i2c_bfin_twi_device = { | |||
547 | .id = 0, | 549 | .id = 0, |
548 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), | 550 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), |
549 | .resource = bfin_twi0_resource, | 551 | .resource = bfin_twi0_resource, |
552 | .dev = { | ||
553 | .platform_data = &bfin_twi0_pins, | ||
554 | }, | ||
550 | }; | 555 | }; |
551 | #endif | 556 | #endif |
552 | 557 | ||
diff --git a/arch/blackfin/mach-bf518/boards/tcm-bf518.c b/arch/blackfin/mach-bf518/boards/tcm-bf518.c index 6eebee4e4217..0bedc737566b 100644 --- a/arch/blackfin/mach-bf518/boards/tcm-bf518.c +++ b/arch/blackfin/mach-bf518/boards/tcm-bf518.c | |||
@@ -455,6 +455,8 @@ static struct platform_device bfin_sir1_device = { | |||
455 | #endif | 455 | #endif |
456 | 456 | ||
457 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 457 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
458 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
459 | |||
458 | static struct resource bfin_twi0_resource[] = { | 460 | static struct resource bfin_twi0_resource[] = { |
459 | [0] = { | 461 | [0] = { |
460 | .start = TWI0_REGBASE, | 462 | .start = TWI0_REGBASE, |
@@ -473,6 +475,9 @@ static struct platform_device i2c_bfin_twi_device = { | |||
473 | .id = 0, | 475 | .id = 0, |
474 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), | 476 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), |
475 | .resource = bfin_twi0_resource, | 477 | .resource = bfin_twi0_resource, |
478 | .dev = { | ||
479 | .platform_data = &bfin_twi0_pins, | ||
480 | }, | ||
476 | }; | 481 | }; |
477 | #endif | 482 | #endif |
478 | 483 | ||
diff --git a/arch/blackfin/mach-bf527/boards/ad7160eval.c b/arch/blackfin/mach-bf527/boards/ad7160eval.c index 423381da08b2..d58f50e5aa4b 100644 --- a/arch/blackfin/mach-bf527/boards/ad7160eval.c +++ b/arch/blackfin/mach-bf527/boards/ad7160eval.c | |||
@@ -569,6 +569,8 @@ static const struct ad7160_platform_data bfin_ad7160_ts_info = { | |||
569 | #endif | 569 | #endif |
570 | 570 | ||
571 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 571 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
572 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
573 | |||
572 | static struct resource bfin_twi0_resource[] = { | 574 | static struct resource bfin_twi0_resource[] = { |
573 | [0] = { | 575 | [0] = { |
574 | .start = TWI0_REGBASE, | 576 | .start = TWI0_REGBASE, |
@@ -587,6 +589,9 @@ static struct platform_device i2c_bfin_twi_device = { | |||
587 | .id = 0, | 589 | .id = 0, |
588 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), | 590 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), |
589 | .resource = bfin_twi0_resource, | 591 | .resource = bfin_twi0_resource, |
592 | .dev = { | ||
593 | .platform_data = &bfin_twi0_pins, | ||
594 | }, | ||
590 | }; | 595 | }; |
591 | #endif | 596 | #endif |
592 | 597 | ||
diff --git a/arch/blackfin/mach-bf527/boards/cm_bf527.c b/arch/blackfin/mach-bf527/boards/cm_bf527.c index 65b7fbd30e16..413d0132b66f 100644 --- a/arch/blackfin/mach-bf527/boards/cm_bf527.c +++ b/arch/blackfin/mach-bf527/boards/cm_bf527.c | |||
@@ -698,6 +698,8 @@ static struct platform_device bfin_sir1_device = { | |||
698 | #endif | 698 | #endif |
699 | 699 | ||
700 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 700 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
701 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
702 | |||
701 | static struct resource bfin_twi0_resource[] = { | 703 | static struct resource bfin_twi0_resource[] = { |
702 | [0] = { | 704 | [0] = { |
703 | .start = TWI0_REGBASE, | 705 | .start = TWI0_REGBASE, |
@@ -716,6 +718,9 @@ static struct platform_device i2c_bfin_twi_device = { | |||
716 | .id = 0, | 718 | .id = 0, |
717 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), | 719 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), |
718 | .resource = bfin_twi0_resource, | 720 | .resource = bfin_twi0_resource, |
721 | .dev = { | ||
722 | .platform_data = &bfin_twi0_pins, | ||
723 | }, | ||
719 | }; | 724 | }; |
720 | #endif | 725 | #endif |
721 | 726 | ||
diff --git a/arch/blackfin/mach-bf527/boards/ezbrd.c b/arch/blackfin/mach-bf527/boards/ezbrd.c index 17c6a24cc076..50bda79194e5 100644 --- a/arch/blackfin/mach-bf527/boards/ezbrd.c +++ b/arch/blackfin/mach-bf527/boards/ezbrd.c | |||
@@ -576,6 +576,8 @@ static struct platform_device bfin_sir1_device = { | |||
576 | #endif | 576 | #endif |
577 | 577 | ||
578 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 578 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
579 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
580 | |||
579 | static struct resource bfin_twi0_resource[] = { | 581 | static struct resource bfin_twi0_resource[] = { |
580 | [0] = { | 582 | [0] = { |
581 | .start = TWI0_REGBASE, | 583 | .start = TWI0_REGBASE, |
@@ -594,6 +596,9 @@ static struct platform_device i2c_bfin_twi_device = { | |||
594 | .id = 0, | 596 | .id = 0, |
595 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), | 597 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), |
596 | .resource = bfin_twi0_resource, | 598 | .resource = bfin_twi0_resource, |
599 | .dev = { | ||
600 | .platform_data = &bfin_twi0_pins, | ||
601 | }, | ||
597 | }; | 602 | }; |
598 | #endif | 603 | #endif |
599 | 604 | ||
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c index 3196683e0f2c..af732eb3a687 100644 --- a/arch/blackfin/mach-bf527/boards/ezkit.c +++ b/arch/blackfin/mach-bf527/boards/ezkit.c | |||
@@ -869,6 +869,8 @@ static struct platform_device bfin_sir1_device = { | |||
869 | #endif | 869 | #endif |
870 | 870 | ||
871 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 871 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
872 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
873 | |||
872 | static struct resource bfin_twi0_resource[] = { | 874 | static struct resource bfin_twi0_resource[] = { |
873 | [0] = { | 875 | [0] = { |
874 | .start = TWI0_REGBASE, | 876 | .start = TWI0_REGBASE, |
@@ -887,6 +889,9 @@ static struct platform_device i2c_bfin_twi_device = { | |||
887 | .id = 0, | 889 | .id = 0, |
888 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), | 890 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), |
889 | .resource = bfin_twi0_resource, | 891 | .resource = bfin_twi0_resource, |
892 | .dev = { | ||
893 | .platform_data = &bfin_twi0_pins, | ||
894 | }, | ||
890 | }; | 895 | }; |
891 | #endif | 896 | #endif |
892 | 897 | ||
diff --git a/arch/blackfin/mach-bf527/boards/tll6527m.c b/arch/blackfin/mach-bf527/boards/tll6527m.c index d192c0ac941c..1509c5a8a3ff 100644 --- a/arch/blackfin/mach-bf527/boards/tll6527m.c +++ b/arch/blackfin/mach-bf527/boards/tll6527m.c | |||
@@ -656,6 +656,8 @@ static struct platform_device bfin_sir1_device = { | |||
656 | #endif | 656 | #endif |
657 | 657 | ||
658 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 658 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
659 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
660 | |||
659 | static struct resource bfin_twi0_resource[] = { | 661 | static struct resource bfin_twi0_resource[] = { |
660 | [0] = { | 662 | [0] = { |
661 | .start = TWI0_REGBASE, | 663 | .start = TWI0_REGBASE, |
@@ -674,6 +676,9 @@ static struct platform_device i2c_bfin_twi_device = { | |||
674 | .id = 0, | 676 | .id = 0, |
675 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), | 677 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), |
676 | .resource = bfin_twi0_resource, | 678 | .resource = bfin_twi0_resource, |
679 | .dev = { | ||
680 | .platform_data = &bfin_twi0_pins, | ||
681 | }, | ||
677 | }; | 682 | }; |
678 | #endif | 683 | #endif |
679 | 684 | ||
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) |
489 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
490 | |||
489 | static struct resource bfin_twi0_resource[] = { | 491 | static 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) |
454 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
455 | |||
454 | static struct resource bfin_twi0_resource[] = { | 456 | static 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) |
332 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
333 | |||
332 | static struct resource bfin_twi0_resource[] = { | 334 | static 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) |
389 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
390 | |||
389 | static struct resource bfin_twi0_resource[] = { | 391 | static 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) |
1793 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
1794 | |||
1793 | static struct resource bfin_twi0_resource[] = { | 1795 | static 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) |
456 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
457 | |||
456 | static struct resource bfin_twi0_resource[] = { | 458 | static 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 | ||
diff --git a/arch/blackfin/mach-bf538/boards/ezkit.c b/arch/blackfin/mach-bf538/boards/ezkit.c index 85038f54354d..a4fce0370c1d 100644 --- a/arch/blackfin/mach-bf538/boards/ezkit.c +++ b/arch/blackfin/mach-bf538/boards/ezkit.c | |||
@@ -718,6 +718,8 @@ static struct platform_device bf538_spi_master2 = { | |||
718 | }; | 718 | }; |
719 | 719 | ||
720 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 720 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
721 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
722 | |||
721 | static struct resource bfin_twi0_resource[] = { | 723 | static struct resource bfin_twi0_resource[] = { |
722 | [0] = { | 724 | [0] = { |
723 | .start = TWI0_REGBASE, | 725 | .start = TWI0_REGBASE, |
@@ -736,9 +738,13 @@ static struct platform_device i2c_bfin_twi0_device = { | |||
736 | .id = 0, | 738 | .id = 0, |
737 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), | 739 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), |
738 | .resource = bfin_twi0_resource, | 740 | .resource = bfin_twi0_resource, |
741 | .dev = { | ||
742 | .platform_data = &bfin_twi0_pins, | ||
743 | }, | ||
739 | }; | 744 | }; |
740 | 745 | ||
741 | #if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */ | 746 | static const u16 bfin_twi1_pins[] = {P_TWI1_SCL, P_TWI1_SDA, 0}; |
747 | |||
742 | static struct resource bfin_twi1_resource[] = { | 748 | static struct resource bfin_twi1_resource[] = { |
743 | [0] = { | 749 | [0] = { |
744 | .start = TWI1_REGBASE, | 750 | .start = TWI1_REGBASE, |
diff --git a/arch/blackfin/mach-bf548/boards/cm_bf548.c b/arch/blackfin/mach-bf548/boards/cm_bf548.c index 68af594db48e..e92543362f35 100644 --- a/arch/blackfin/mach-bf548/boards/cm_bf548.c +++ b/arch/blackfin/mach-bf548/boards/cm_bf548.c | |||
@@ -1007,6 +1007,8 @@ static struct platform_device bf54x_spi_master1 = { | |||
1007 | #endif /* spi master and devices */ | 1007 | #endif /* spi master and devices */ |
1008 | 1008 | ||
1009 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 1009 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
1010 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
1011 | |||
1010 | static struct resource bfin_twi0_resource[] = { | 1012 | static struct resource bfin_twi0_resource[] = { |
1011 | [0] = { | 1013 | [0] = { |
1012 | .start = TWI0_REGBASE, | 1014 | .start = TWI0_REGBASE, |
@@ -1025,9 +1027,14 @@ static struct platform_device i2c_bfin_twi0_device = { | |||
1025 | .id = 0, | 1027 | .id = 0, |
1026 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), | 1028 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), |
1027 | .resource = bfin_twi0_resource, | 1029 | .resource = bfin_twi0_resource, |
1030 | .dev = { | ||
1031 | .platform_data = &bfin_twi0_pins, | ||
1032 | }, | ||
1028 | }; | 1033 | }; |
1029 | 1034 | ||
1030 | #if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */ | 1035 | #if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */ |
1036 | static const u16 bfin_twi1_pins[] = {P_TWI1_SCL, P_TWI1_SDA, 0}; | ||
1037 | |||
1031 | static struct resource bfin_twi1_resource[] = { | 1038 | static struct resource bfin_twi1_resource[] = { |
1032 | [0] = { | 1039 | [0] = { |
1033 | .start = TWI1_REGBASE, | 1040 | .start = TWI1_REGBASE, |
@@ -1046,6 +1053,9 @@ static struct platform_device i2c_bfin_twi1_device = { | |||
1046 | .id = 1, | 1053 | .id = 1, |
1047 | .num_resources = ARRAY_SIZE(bfin_twi1_resource), | 1054 | .num_resources = ARRAY_SIZE(bfin_twi1_resource), |
1048 | .resource = bfin_twi1_resource, | 1055 | .resource = bfin_twi1_resource, |
1056 | .dev = { | ||
1057 | .platform_data = &bfin_twi1_pins, | ||
1058 | }, | ||
1049 | }; | 1059 | }; |
1050 | #endif | 1060 | #endif |
1051 | #endif | 1061 | #endif |
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c index 4f4bd918566c..3bd75bae750d 100644 --- a/arch/blackfin/mach-bf548/boards/ezkit.c +++ b/arch/blackfin/mach-bf548/boards/ezkit.c | |||
@@ -1252,6 +1252,8 @@ static struct platform_device bfin_capture_device = { | |||
1252 | #endif | 1252 | #endif |
1253 | 1253 | ||
1254 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 1254 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
1255 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
1256 | |||
1255 | static struct resource bfin_twi0_resource[] = { | 1257 | static struct resource bfin_twi0_resource[] = { |
1256 | [0] = { | 1258 | [0] = { |
1257 | .start = TWI0_REGBASE, | 1259 | .start = TWI0_REGBASE, |
@@ -1270,9 +1272,14 @@ static struct platform_device i2c_bfin_twi0_device = { | |||
1270 | .id = 0, | 1272 | .id = 0, |
1271 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), | 1273 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), |
1272 | .resource = bfin_twi0_resource, | 1274 | .resource = bfin_twi0_resource, |
1275 | .dev = { | ||
1276 | .platform_data = &bfin_twi0_pins, | ||
1277 | }, | ||
1273 | }; | 1278 | }; |
1274 | 1279 | ||
1275 | #if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */ | 1280 | #if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */ |
1281 | static const u16 bfin_twi1_pins[] = {P_TWI1_SCL, P_TWI1_SDA, 0}; | ||
1282 | |||
1276 | static struct resource bfin_twi1_resource[] = { | 1283 | static struct resource bfin_twi1_resource[] = { |
1277 | [0] = { | 1284 | [0] = { |
1278 | .start = TWI1_REGBASE, | 1285 | .start = TWI1_REGBASE, |
@@ -1291,6 +1298,9 @@ static struct platform_device i2c_bfin_twi1_device = { | |||
1291 | .id = 1, | 1298 | .id = 1, |
1292 | .num_resources = ARRAY_SIZE(bfin_twi1_resource), | 1299 | .num_resources = ARRAY_SIZE(bfin_twi1_resource), |
1293 | .resource = bfin_twi1_resource, | 1300 | .resource = bfin_twi1_resource, |
1301 | .dev = { | ||
1302 | .platform_data = &bfin_twi1_pins, | ||
1303 | }, | ||
1294 | }; | 1304 | }; |
1295 | #endif | 1305 | #endif |
1296 | #endif | 1306 | #endif |
diff --git a/arch/blackfin/mach-bf609/boards/ezkit.c b/arch/blackfin/mach-bf609/boards/ezkit.c index cf0175a1dec9..ac64f47217c1 100644 --- a/arch/blackfin/mach-bf609/boards/ezkit.c +++ b/arch/blackfin/mach-bf609/boards/ezkit.c | |||
@@ -1081,6 +1081,8 @@ static struct platform_device bf60x_spi_master1 = { | |||
1081 | #endif /* spi master and devices */ | 1081 | #endif /* spi master and devices */ |
1082 | 1082 | ||
1083 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 1083 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
1084 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | ||
1085 | |||
1084 | static struct resource bfin_twi0_resource[] = { | 1086 | static struct resource bfin_twi0_resource[] = { |
1085 | [0] = { | 1087 | [0] = { |
1086 | .start = TWI0_CLKDIV, | 1088 | .start = TWI0_CLKDIV, |
@@ -1099,8 +1101,13 @@ static struct platform_device i2c_bfin_twi0_device = { | |||
1099 | .id = 0, | 1101 | .id = 0, |
1100 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), | 1102 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), |
1101 | .resource = bfin_twi0_resource, | 1103 | .resource = bfin_twi0_resource, |
1104 | .dev = { | ||
1105 | .platform_data = &bfin_twi0_pins, | ||
1106 | }, | ||
1102 | }; | 1107 | }; |
1103 | 1108 | ||
1109 | static const u16 bfin_twi1_pins[] = {P_TWI1_SCL, P_TWI1_SDA, 0}; | ||
1110 | |||
1104 | static struct resource bfin_twi1_resource[] = { | 1111 | static struct resource bfin_twi1_resource[] = { |
1105 | [0] = { | 1112 | [0] = { |
1106 | .start = TWI1_CLKDIV, | 1113 | .start = TWI1_CLKDIV, |
@@ -1119,6 +1126,9 @@ static struct platform_device i2c_bfin_twi1_device = { | |||
1119 | .id = 1, | 1126 | .id = 1, |
1120 | .num_resources = ARRAY_SIZE(bfin_twi1_resource), | 1127 | .num_resources = ARRAY_SIZE(bfin_twi1_resource), |
1121 | .resource = bfin_twi1_resource, | 1128 | .resource = bfin_twi1_resource, |
1129 | .dev = { | ||
1130 | .platform_data = &bfin_twi1_pins, | ||
1131 | }, | ||
1122 | }; | 1132 | }; |
1123 | #endif | 1133 | #endif |
1124 | 1134 | ||