aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/blackfin/mach-bf548/boards/ezkit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c
index bbd2a046d7c1..d37d6653c4bc 100644
--- a/arch/blackfin/mach-bf548/boards/ezkit.c
+++ b/arch/blackfin/mach-bf548/boards/ezkit.c
@@ -508,6 +508,7 @@ static struct platform_device i2c_bfin_twi0_device = {
508 .resource = bfin_twi0_resource, 508 .resource = bfin_twi0_resource,
509}; 509};
510 510
511#if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */
511static struct resource bfin_twi1_resource[] = { 512static struct resource bfin_twi1_resource[] = {
512 [0] = { 513 [0] = {
513 .start = TWI1_REGBASE, 514 .start = TWI1_REGBASE,
@@ -528,6 +529,7 @@ static struct platform_device i2c_bfin_twi1_device = {
528 .resource = bfin_twi1_resource, 529 .resource = bfin_twi1_resource,
529}; 530};
530#endif 531#endif
532#endif
531 533
532static struct platform_device *ezkit_devices[] __initdata = { 534static struct platform_device *ezkit_devices[] __initdata = {
533#if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 535#if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
@@ -577,8 +579,10 @@ static struct platform_device *ezkit_devices[] __initdata = {
577 579
578#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 580#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
579 &i2c_bfin_twi0_device, 581 &i2c_bfin_twi0_device,
582#if !defined(CONFIG_BF542)
580 &i2c_bfin_twi1_device, 583 &i2c_bfin_twi1_device,
581#endif 584#endif
585#endif
582}; 586};
583 587
584static int __init stamp_init(void) 588static int __init stamp_init(void)