Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7160e950 authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu
Browse files

Blackfin arch: fix building for BF542 processors which only have 1 TWI

parent 8d6c2420
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -508,6 +508,7 @@ static struct platform_device i2c_bfin_twi0_device = {
	.resource = bfin_twi0_resource,
};

#if !defined(CONFIG_BF542)	/* The BF542 only has 1 TWI */
static struct resource bfin_twi1_resource[] = {
	[0] = {
		.start = TWI1_REGBASE,
@@ -528,6 +529,7 @@ static struct platform_device i2c_bfin_twi1_device = {
	.resource = bfin_twi1_resource,
};
#endif
#endif

static struct platform_device *ezkit_devices[] __initdata = {
#if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
@@ -577,8 +579,10 @@ static struct platform_device *ezkit_devices[] __initdata = {

#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
	&i2c_bfin_twi0_device,
#if !defined(CONFIG_BF542)
	&i2c_bfin_twi1_device,
#endif
#endif
};

static int __init stamp_init(void)