aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf609/boards
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-bf609/boards
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-bf609/boards')
-rw-r--r--arch/blackfin/mach-bf609/boards/ezkit.c10
1 files changed, 10 insertions, 0 deletions
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)
1084static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0};
1085
1084static struct resource bfin_twi0_resource[] = { 1086static 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
1109static const u16 bfin_twi1_pins[] = {P_TWI1_SCL, P_TWI1_SDA, 0};
1110
1104static struct resource bfin_twi1_resource[] = { 1111static 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