aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf538
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin/mach-bf538')
-rw-r--r--arch/blackfin/mach-bf538/boards/ezkit.c8
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)
721static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0};
722
721static struct resource bfin_twi0_resource[] = { 723static 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 */ 746static const u16 bfin_twi1_pins[] = {P_TWI1_SCL, P_TWI1_SDA, 0};
747
742static struct resource bfin_twi1_resource[] = { 748static struct resource bfin_twi1_resource[] = {
743 [0] = { 749 [0] = {
744 .start = TWI1_REGBASE, 750 .start = TWI1_REGBASE,