diff options
Diffstat (limited to 'arch/blackfin/mach-bf533/boards/stamp.c')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/stamp.c | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf533/boards/stamp.c b/arch/blackfin/mach-bf533/boards/stamp.c index 2683e5f2294f..428f724dd080 100644 --- a/arch/blackfin/mach-bf533/boards/stamp.c +++ b/arch/blackfin/mach-bf533/boards/stamp.c | |||
@@ -397,16 +397,75 @@ static struct platform_device bfin_sir0_device = { | |||
397 | #endif | 397 | #endif |
398 | 398 | ||
399 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 399 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
400 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART | ||
401 | static struct resource bfin_sport0_uart_resources[] = { | ||
402 | { | ||
403 | .start = SPORT0_TCR1, | ||
404 | .end = SPORT0_MRCS3+4, | ||
405 | .flags = IORESOURCE_MEM, | ||
406 | }, | ||
407 | { | ||
408 | .start = IRQ_SPORT0_RX, | ||
409 | .end = IRQ_SPORT0_RX+1, | ||
410 | .flags = IORESOURCE_IRQ, | ||
411 | }, | ||
412 | { | ||
413 | .start = IRQ_SPORT0_ERROR, | ||
414 | .end = IRQ_SPORT0_ERROR, | ||
415 | .flags = IORESOURCE_IRQ, | ||
416 | }, | ||
417 | }; | ||
418 | |||
419 | unsigned short bfin_sport0_peripherals[] = { | ||
420 | P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS, | ||
421 | P_SPORT0_DRPRI, P_SPORT0_RSCLK, P_SPORT0_DRSEC, P_SPORT0_DTSEC, 0 | ||
422 | }; | ||
423 | |||
400 | static struct platform_device bfin_sport0_uart_device = { | 424 | static struct platform_device bfin_sport0_uart_device = { |
401 | .name = "bfin-sport-uart", | 425 | .name = "bfin-sport-uart", |
402 | .id = 0, | 426 | .id = 0, |
427 | .num_resources = ARRAY_SIZE(bfin_sport0_uart_resources), | ||
428 | .resource = bfin_sport0_uart_resources, | ||
429 | .dev = { | ||
430 | .platform_data = &bfin_sport0_peripherals, /* Passed to driver */ | ||
431 | }, | ||
432 | }; | ||
433 | #endif | ||
434 | #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART | ||
435 | static struct resource bfin_sport1_uart_resources[] = { | ||
436 | { | ||
437 | .start = SPORT1_TCR1, | ||
438 | .end = SPORT1_MRCS3+4, | ||
439 | .flags = IORESOURCE_MEM, | ||
440 | }, | ||
441 | { | ||
442 | .start = IRQ_SPORT1_RX, | ||
443 | .end = IRQ_SPORT1_RX+1, | ||
444 | .flags = IORESOURCE_IRQ, | ||
445 | }, | ||
446 | { | ||
447 | .start = IRQ_SPORT1_ERROR, | ||
448 | .end = IRQ_SPORT1_ERROR, | ||
449 | .flags = IORESOURCE_IRQ, | ||
450 | }, | ||
451 | }; | ||
452 | |||
453 | unsigned short bfin_sport1_peripherals[] = { | ||
454 | P_SPORT1_TFS, P_SPORT1_DTPRI, P_SPORT1_TSCLK, P_SPORT1_RFS, | ||
455 | P_SPORT1_DRPRI, P_SPORT1_RSCLK, P_SPORT1_DRSEC, P_SPORT1_DTSEC, 0 | ||
403 | }; | 456 | }; |
404 | 457 | ||
405 | static struct platform_device bfin_sport1_uart_device = { | 458 | static struct platform_device bfin_sport1_uart_device = { |
406 | .name = "bfin-sport-uart", | 459 | .name = "bfin-sport-uart", |
407 | .id = 1, | 460 | .id = 1, |
461 | .num_resources = ARRAY_SIZE(bfin_sport1_uart_resources), | ||
462 | .resource = bfin_sport1_uart_resources, | ||
463 | .dev = { | ||
464 | .platform_data = &bfin_sport1_peripherals, /* Passed to driver */ | ||
465 | }, | ||
408 | }; | 466 | }; |
409 | #endif | 467 | #endif |
468 | #endif | ||
410 | 469 | ||
411 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | 470 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) |
412 | #include <linux/input.h> | 471 | #include <linux/input.h> |
@@ -536,9 +595,13 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
536 | #endif | 595 | #endif |
537 | 596 | ||
538 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 597 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
598 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART | ||
539 | &bfin_sport0_uart_device, | 599 | &bfin_sport0_uart_device, |
600 | #endif | ||
601 | #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART | ||
540 | &bfin_sport1_uart_device, | 602 | &bfin_sport1_uart_device, |
541 | #endif | 603 | #endif |
604 | #endif | ||
542 | 605 | ||
543 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | 606 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) |
544 | &bfin_device_gpiokeys, | 607 | &bfin_device_gpiokeys, |