aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf527/boards/tll6527m.c
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/boards/tll6527m.c
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/boards/tll6527m.c')
-rw-r--r--arch/blackfin/mach-bf527/boards/tll6527m.c5
1 files changed, 5 insertions, 0 deletions
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