aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf537
diff options
context:
space:
mode:
authorAaron Wu <Aaron.Wu@analog.com>2012-05-17 02:30:45 -0400
committerBob Liu <lliubbo@gmail.com>2012-05-21 02:54:28 -0400
commit8c998b2a15d076fb6157d6b9429a5eea13bc58c2 (patch)
tree07af308046d52f1d2d9d1e2c124af12d5ca78dd9 /arch/blackfin/mach-bf537
parentc5cfb736bcd6bea9a5a41d09fb6ec34e6e551ab9 (diff)
blackfin: bf537-stamp: update board file for platform bfin_sport device
Blackfin sport driver has been rewrited update board file according. Signed-off-by: Aaron Wu <Aaron.Wu@analog.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/mach-bf537')
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c61
1 files changed, 53 insertions, 8 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index f3562b0922af..ec3e5c131216 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -2361,7 +2361,13 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
2361 }, 2361 },
2362#endif 2362#endif
2363}; 2363};
2364 2364#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) \
2365|| defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE)
2366unsigned short bfin_sport0_peripherals[] = {
2367 P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS,
2368 P_SPORT0_DRPRI, P_SPORT0_RSCLK, P_SPORT0_DRSEC, P_SPORT0_DTSEC, 0
2369};
2370#endif
2365#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 2371#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
2366#ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 2372#ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
2367static struct resource bfin_sport0_uart_resources[] = { 2373static struct resource bfin_sport0_uart_resources[] = {
@@ -2382,11 +2388,6 @@ static struct resource bfin_sport0_uart_resources[] = {
2382 }, 2388 },
2383}; 2389};
2384 2390
2385static unsigned short bfin_sport0_peripherals[] = {
2386 P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS,
2387 P_SPORT0_DRPRI, P_SPORT0_RSCLK, 0
2388};
2389
2390static struct platform_device bfin_sport0_uart_device = { 2391static struct platform_device bfin_sport0_uart_device = {
2391 .name = "bfin-sport-uart", 2392 .name = "bfin-sport-uart",
2392 .id = 0, 2393 .id = 0,
@@ -2432,7 +2433,49 @@ static struct platform_device bfin_sport1_uart_device = {
2432}; 2433};
2433#endif 2434#endif
2434#endif 2435#endif
2435 2436#if defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE)
2437static struct resource bfin_sport0_resources[] = {
2438 {
2439 .start = SPORT0_TCR1,
2440 .end = SPORT0_MRCS3+4,
2441 .flags = IORESOURCE_MEM,
2442 },
2443 {
2444 .start = IRQ_SPORT0_RX,
2445 .end = IRQ_SPORT0_RX+1,
2446 .flags = IORESOURCE_IRQ,
2447 },
2448 {
2449 .start = IRQ_SPORT0_TX,
2450 .end = IRQ_SPORT0_TX+1,
2451 .flags = IORESOURCE_IRQ,
2452 },
2453 {
2454 .start = IRQ_SPORT0_ERROR,
2455 .end = IRQ_SPORT0_ERROR,
2456 .flags = IORESOURCE_IRQ,
2457 },
2458 {
2459 .start = CH_SPORT0_TX,
2460 .end = CH_SPORT0_TX,
2461 .flags = IORESOURCE_DMA,
2462 },
2463 {
2464 .start = CH_SPORT0_RX,
2465 .end = CH_SPORT0_RX,
2466 .flags = IORESOURCE_DMA,
2467 },
2468};
2469static struct platform_device bfin_sport0_device = {
2470 .name = "bfin_sport_raw",
2471 .id = 0,
2472 .num_resources = ARRAY_SIZE(bfin_sport0_resources),
2473 .resource = bfin_sport0_resources,
2474 .dev = {
2475 .platform_data = &bfin_sport0_peripherals, /* Passed to driver */
2476 },
2477};
2478#endif
2436#if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 2479#if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE)
2437#define CF_IDE_NAND_CARD_USE_HDD_INTERFACE 2480#define CF_IDE_NAND_CARD_USE_HDD_INTERFACE
2438/* #define CF_IDE_NAND_CARD_USE_CF_IN_COMMON_MEMORY_MODE */ 2481/* #define CF_IDE_NAND_CARD_USE_CF_IN_COMMON_MEMORY_MODE */
@@ -2754,7 +2797,9 @@ static struct platform_device bf5xx_adau1701_device = {
2754static struct platform_device *stamp_devices[] __initdata = { 2797static struct platform_device *stamp_devices[] __initdata = {
2755 2798
2756 &bfin_dpmc, 2799 &bfin_dpmc,
2757 2800#if defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE)
2801 &bfin_sport0_device,
2802#endif
2758#if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE) 2803#if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE)
2759 &bfin_pcmcia_cf_device, 2804 &bfin_pcmcia_cf_device,
2760#endif 2805#endif