diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-03-25 18:00:18 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-03-25 18:00:18 -0400 |
commit | 56ce835b608343b22e1e46e5bb913b87c162486e (patch) | |
tree | 32727c59e8306f949075286b0c2b0a0ad22bb63e | |
parent | f692940101bbcef3717f40df9fd3c52f497c8589 (diff) |
[Blackfin] arch: add twi resources to CM_BF537 board as reported by Servaes Joordens
Signed-off-by: Bryan Wu <cooloney@kernel.org>
-rw-r--r-- | arch/blackfin/mach-bf537/boards/cm_bf537.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/cm_bf537.c b/arch/blackfin/mach-bf537/boards/cm_bf537.c index f7c1f964f13..b575b23fe69 100644 --- a/arch/blackfin/mach-bf537/boards/cm_bf537.c +++ b/arch/blackfin/mach-bf537/boards/cm_bf537.c | |||
@@ -325,6 +325,28 @@ static struct platform_device bfin_uart_device = { | |||
325 | }; | 325 | }; |
326 | #endif | 326 | #endif |
327 | 327 | ||
328 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | ||
329 | static struct resource bfin_twi0_resource[] = { | ||
330 | [0] = { | ||
331 | .start = TWI0_REGBASE, | ||
332 | .end = TWI0_REGBASE, | ||
333 | .flags = IORESOURCE_MEM, | ||
334 | }, | ||
335 | [1] = { | ||
336 | .start = IRQ_TWI, | ||
337 | .end = IRQ_TWI, | ||
338 | .flags = IORESOURCE_IRQ, | ||
339 | }, | ||
340 | }; | ||
341 | |||
342 | static struct platform_device i2c_bfin_twi_device = { | ||
343 | .name = "i2c-bfin-twi", | ||
344 | .id = 0, | ||
345 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), | ||
346 | .resource = bfin_twi0_resource, | ||
347 | }; | ||
348 | #endif | ||
349 | |||
328 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 350 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
329 | static struct platform_device bfin_sport0_uart_device = { | 351 | static struct platform_device bfin_sport0_uart_device = { |
330 | .name = "bfin-sport-uart", | 352 | .name = "bfin-sport-uart", |
@@ -393,6 +415,10 @@ static struct platform_device *cm_bf537_devices[] __initdata = { | |||
393 | &bfin_uart_device, | 415 | &bfin_uart_device, |
394 | #endif | 416 | #endif |
395 | 417 | ||
418 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | ||
419 | &i2c_bfin_twi_device, | ||
420 | #endif | ||
421 | |||
396 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 422 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
397 | &bfin_sport0_uart_device, | 423 | &bfin_sport0_uart_device, |
398 | &bfin_sport1_uart_device, | 424 | &bfin_sport1_uart_device, |