aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf548
diff options
context:
space:
mode:
authorMike Frysinger <michael.frysinger@analog.com>2007-11-21 03:03:07 -0500
committerBryan Wu <bryan.wu@analog.com>2007-11-21 03:03:07 -0500
commit7160e9503ac912a079a18125113b6465939bab85 (patch)
tree54b4659994558c9af1b0e0502a39bde1a2947509 /arch/blackfin/mach-bf548
parent8d6c242062b90ce1b339e32a12fe183fe9612dcb (diff)
Blackfin arch: fix building for BF542 processors which only have 1 TWI
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin/mach-bf548')
-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)