diff options
author | Graf Yang <graf.yang@analog.com> | 2009-01-07 10:14:39 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2009-01-07 10:14:39 -0500 |
commit | 42bd8bcb2fa1853fda9c51d956f70bbe2329bdfb (patch) | |
tree | da6e1022ee8e19380444d026dc40e6e989489a85 /arch/blackfin/mach-bf518 | |
parent | c0948d3316eaf3fdacc461c2c9e18441022e9e63 (diff) |
Blackfin arch: Modify bfin_sir device configuration to board file
Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-bf518')
-rw-r--r-- | arch/blackfin/mach-bf518/boards/ezbrd.c | 48 |
1 files changed, 41 insertions, 7 deletions
diff --git a/arch/blackfin/mach-bf518/boards/ezbrd.c b/arch/blackfin/mach-bf518/boards/ezbrd.c index 3b0428680e11..b76953b475da 100644 --- a/arch/blackfin/mach-bf518/boards/ezbrd.c +++ b/arch/blackfin/mach-bf518/boards/ezbrd.c | |||
@@ -396,30 +396,59 @@ static struct platform_device bfin_uart_device = { | |||
396 | #endif | 396 | #endif |
397 | 397 | ||
398 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 398 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
399 | static struct resource bfin_sir_resources[] = { | ||
400 | #ifdef CONFIG_BFIN_SIR0 | 399 | #ifdef CONFIG_BFIN_SIR0 |
400 | static struct resource bfin_sir0_resources[] = { | ||
401 | { | 401 | { |
402 | .start = 0xFFC00400, | 402 | .start = 0xFFC00400, |
403 | .end = 0xFFC004FF, | 403 | .end = 0xFFC004FF, |
404 | .flags = IORESOURCE_MEM, | 404 | .flags = IORESOURCE_MEM, |
405 | }, | 405 | }, |
406 | { | ||
407 | .start = IRQ_UART0_RX, | ||
408 | .end = IRQ_UART0_RX+1, | ||
409 | .flags = IORESOURCE_IRQ, | ||
410 | }, | ||
411 | { | ||
412 | .start = CH_UART0_RX, | ||
413 | .end = CH_UART0_RX+1, | ||
414 | .flags = IORESOURCE_DMA, | ||
415 | }, | ||
416 | }; | ||
417 | |||
418 | static struct platform_device bfin_sir0_device = { | ||
419 | .name = "bfin_sir", | ||
420 | .id = 0, | ||
421 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), | ||
422 | .resource = bfin_sir0_resources, | ||
423 | }; | ||
406 | #endif | 424 | #endif |
407 | #ifdef CONFIG_BFIN_SIR1 | 425 | #ifdef CONFIG_BFIN_SIR1 |
426 | static struct resource bfin_sir1_resources[] = { | ||
408 | { | 427 | { |
409 | .start = 0xFFC02000, | 428 | .start = 0xFFC02000, |
410 | .end = 0xFFC020FF, | 429 | .end = 0xFFC020FF, |
411 | .flags = IORESOURCE_MEM, | 430 | .flags = IORESOURCE_MEM, |
412 | }, | 431 | }, |
413 | #endif | 432 | { |
433 | .start = IRQ_UART1_RX, | ||
434 | .end = IRQ_UART1_RX+1, | ||
435 | .flags = IORESOURCE_IRQ, | ||
436 | }, | ||
437 | { | ||
438 | .start = CH_UART1_RX, | ||
439 | .end = CH_UART1_RX+1, | ||
440 | .flags = IORESOURCE_DMA, | ||
441 | }, | ||
414 | }; | 442 | }; |
415 | 443 | ||
416 | static struct platform_device bfin_sir_device = { | 444 | static struct platform_device bfin_sir1_device = { |
417 | .name = "bfin_sir", | 445 | .name = "bfin_sir", |
418 | .id = 0, | 446 | .id = 1, |
419 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 447 | .num_resources = ARRAY_SIZE(bfin_sir1_resources), |
420 | .resource = bfin_sir_resources, | 448 | .resource = bfin_sir1_resources, |
421 | }; | 449 | }; |
422 | #endif | 450 | #endif |
451 | #endif | ||
423 | 452 | ||
424 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 453 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
425 | static struct resource bfin_twi0_resource[] = { | 454 | static struct resource bfin_twi0_resource[] = { |
@@ -550,7 +579,12 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
550 | #endif | 579 | #endif |
551 | 580 | ||
552 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 581 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
553 | &bfin_sir_device, | 582 | #ifdef CONFIG_BFIN_SIR0 |
583 | &bfin_sir0_device, | ||
584 | #endif | ||
585 | #ifdef CONFIG_BFIN_SIR1 | ||
586 | &bfin_sir1_device, | ||
587 | #endif | ||
554 | #endif | 588 | #endif |
555 | 589 | ||
556 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 590 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |