aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf527
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-bf527
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-bf527')
-rw-r--r--arch/blackfin/mach-bf527/boards/ad7160eval.c5
-rw-r--r--arch/blackfin/mach-bf527/boards/cm_bf527.c5
-rw-r--r--arch/blackfin/mach-bf527/boards/ezbrd.c5
-rw-r--r--arch/blackfin/mach-bf527/boards/ezkit.c5
-rw-r--r--arch/blackfin/mach-bf527/boards/tll6527m.c5
5 files changed, 25 insertions, 0 deletions
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)
572static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0};
573
572static struct resource bfin_twi0_resource[] = { 574static 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)
701static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0};
702
701static struct resource bfin_twi0_resource[] = { 703static 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)
579static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0};
580
579static struct resource bfin_twi0_resource[] = { 581static 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)
872static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0};
873
872static struct resource bfin_twi0_resource[] = { 874static 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)
659static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0};
660
659static struct resource bfin_twi0_resource[] = { 661static 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