[Blackfin] arch: add twi resources to CM_BF537 board as reported by Servaes Joordens
Signed-off-by: Bryan Wu <cooloney@kernel.org>
This commit is contained in:
parent
f692940101
commit
56ce835b60
|
@ -325,6 +325,28 @@ static struct platform_device bfin_uart_device = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
|
||||||
|
static struct resource bfin_twi0_resource[] = {
|
||||||
|
[0] = {
|
||||||
|
.start = TWI0_REGBASE,
|
||||||
|
.end = TWI0_REGBASE,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
[1] = {
|
||||||
|
.start = IRQ_TWI,
|
||||||
|
.end = IRQ_TWI,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device i2c_bfin_twi_device = {
|
||||||
|
.name = "i2c-bfin-twi",
|
||||||
|
.id = 0,
|
||||||
|
.num_resources = ARRAY_SIZE(bfin_twi0_resource),
|
||||||
|
.resource = bfin_twi0_resource,
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
||||||
static struct platform_device bfin_sport0_uart_device = {
|
static struct platform_device bfin_sport0_uart_device = {
|
||||||
.name = "bfin-sport-uart",
|
.name = "bfin-sport-uart",
|
||||||
|
@ -393,6 +415,10 @@ static struct platform_device *cm_bf537_devices[] __initdata = {
|
||||||
&bfin_uart_device,
|
&bfin_uart_device,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
|
||||||
|
&i2c_bfin_twi_device,
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
||||||
&bfin_sport0_uart_device,
|
&bfin_sport0_uart_device,
|
||||||
&bfin_sport1_uart_device,
|
&bfin_sport1_uart_device,
|
||||||
|
|
Loading…
Reference in New Issue