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/mach-bf518/boards/ezbrd.c | |
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/mach-bf518/boards/ezbrd.c')
-rw-r--r-- | arch/blackfin/mach-bf518/boards/ezbrd.c | 5 |
1 files changed, 5 insertions, 0 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 | ||