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-bf538 | |
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-bf538')
-rw-r--r-- | arch/blackfin/mach-bf538/boards/ezkit.c | 8 |
1 files changed, 7 insertions, 1 deletions
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, |