diff options
author | Aaron Wu <Aaron.wu@analog.com> | 2013-12-12 22:55:15 -0500 |
---|---|---|
committer | Steven Miao <realmz6@gmail.com> | 2014-01-29 02:13:26 -0500 |
commit | eb706def7e7d58e632a86636ad0d9b51bb972428 (patch) | |
tree | a774ba47ee377bc65b1650386878b0ce3f266b71 /arch/blackfin | |
parent | 44148338cec1cc69171ed4554333aec786b7d49a (diff) |
Add platfrom device resource for bfin-sport on bf533 stamp
Signed-off-by: Aaron Wu <Aaron.wu@analog.com>
Signed-off-by: Steven Miao <realmz6@gmail.com>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/stamp.c | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/arch/blackfin/mach-bf533/boards/stamp.c b/arch/blackfin/mach-bf533/boards/stamp.c index 4a8c2e3fd7e5..4da70c47cc05 100644 --- a/arch/blackfin/mach-bf533/boards/stamp.c +++ b/arch/blackfin/mach-bf533/boards/stamp.c | |||
@@ -370,7 +370,8 @@ static struct platform_device bfin_sir0_device = { | |||
370 | #endif | 370 | #endif |
371 | #endif | 371 | #endif |
372 | 372 | ||
373 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 373 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || \ |
374 | defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | ||
374 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART | 375 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART |
375 | static struct resource bfin_sport0_uart_resources[] = { | 376 | static struct resource bfin_sport0_uart_resources[] = { |
376 | { | 377 | { |
@@ -441,6 +442,50 @@ static struct platform_device bfin_sport1_uart_device = { | |||
441 | #endif | 442 | #endif |
442 | #endif | 443 | #endif |
443 | 444 | ||
445 | #if defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE) | ||
446 | static struct resource bfin_sport0_resources[] = { | ||
447 | { | ||
448 | .start = SPORT0_TCR1, | ||
449 | .end = SPORT0_MRCS3+4, | ||
450 | .flags = IORESOURCE_MEM, | ||
451 | }, | ||
452 | { | ||
453 | .start = IRQ_SPORT0_TX, | ||
454 | .end = IRQ_SPORT0_TX+1, | ||
455 | .flags = IORESOURCE_IRQ, | ||
456 | }, | ||
457 | { | ||
458 | .start = IRQ_SPORT0_RX, | ||
459 | .end = IRQ_SPORT0_RX+1, | ||
460 | .flags = IORESOURCE_IRQ, | ||
461 | }, | ||
462 | { | ||
463 | .start = IRQ_SPORT0_ERROR, | ||
464 | .end = IRQ_SPORT0_ERROR, | ||
465 | .flags = IORESOURCE_IRQ, | ||
466 | }, | ||
467 | { | ||
468 | .start = CH_SPORT0_TX, | ||
469 | .end = CH_SPORT0_TX, | ||
470 | .flags = IORESOURCE_DMA, | ||
471 | }, | ||
472 | { | ||
473 | .start = CH_SPORT0_RX, | ||
474 | .end = CH_SPORT0_RX, | ||
475 | .flags = IORESOURCE_DMA, | ||
476 | }, | ||
477 | }; | ||
478 | static struct platform_device bfin_sport0_device = { | ||
479 | .name = "bfin_sport_raw", | ||
480 | .id = 0, | ||
481 | .num_resources = ARRAY_SIZE(bfin_sport0_resources), | ||
482 | .resource = bfin_sport0_resources, | ||
483 | .dev = { | ||
484 | .platform_data = &bfin_sport0_peripherals, | ||
485 | }, | ||
486 | }; | ||
487 | #endif | ||
488 | |||
444 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | 489 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) |
445 | #include <linux/input.h> | 490 | #include <linux/input.h> |
446 | #include <linux/gpio_keys.h> | 491 | #include <linux/gpio_keys.h> |