diff options
Diffstat (limited to 'arch/blackfin/mach-bf548/boards/ezkit.c')
-rw-r--r-- | arch/blackfin/mach-bf548/boards/ezkit.c | 443 |
1 files changed, 425 insertions, 18 deletions
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c index 60193f72777c..06919db00a74 100644 --- a/arch/blackfin/mach-bf548/boards/ezkit.c +++ b/arch/blackfin/mach-bf548/boards/ezkit.c | |||
@@ -232,44 +232,211 @@ static struct platform_device rtc_device = { | |||
232 | #endif | 232 | #endif |
233 | 233 | ||
234 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | 234 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) |
235 | static struct resource bfin_uart_resources[] = { | ||
236 | #ifdef CONFIG_SERIAL_BFIN_UART0 | 235 | #ifdef CONFIG_SERIAL_BFIN_UART0 |
236 | static struct resource bfin_uart0_resources[] = { | ||
237 | { | 237 | { |
238 | .start = 0xFFC00400, | 238 | .start = UART0_DLL, |
239 | .end = 0xFFC004FF, | 239 | .end = UART0_RBR+2, |
240 | .flags = IORESOURCE_MEM, | 240 | .flags = IORESOURCE_MEM, |
241 | }, | 241 | }, |
242 | { | ||
243 | .start = IRQ_UART0_RX, | ||
244 | .end = IRQ_UART0_RX+1, | ||
245 | .flags = IORESOURCE_IRQ, | ||
246 | }, | ||
247 | { | ||
248 | .start = IRQ_UART0_ERROR, | ||
249 | .end = IRQ_UART0_ERROR, | ||
250 | .flags = IORESOURCE_IRQ, | ||
251 | }, | ||
252 | { | ||
253 | .start = CH_UART0_TX, | ||
254 | .end = CH_UART0_TX, | ||
255 | .flags = IORESOURCE_DMA, | ||
256 | }, | ||
257 | { | ||
258 | .start = CH_UART0_RX, | ||
259 | .end = CH_UART0_RX, | ||
260 | .flags = IORESOURCE_DMA, | ||
261 | }, | ||
262 | }; | ||
263 | |||
264 | unsigned short bfin_uart0_peripherals[] = { | ||
265 | P_UART0_TX, P_UART0_RX, 0 | ||
266 | }; | ||
267 | |||
268 | static struct platform_device bfin_uart0_device = { | ||
269 | .name = "bfin-uart", | ||
270 | .id = 0, | ||
271 | .num_resources = ARRAY_SIZE(bfin_uart0_resources), | ||
272 | .resource = bfin_uart0_resources, | ||
273 | .dev = { | ||
274 | .platform_data = &bfin_uart0_peripherals, /* Passed to driver */ | ||
275 | }, | ||
276 | }; | ||
242 | #endif | 277 | #endif |
243 | #ifdef CONFIG_SERIAL_BFIN_UART1 | 278 | #ifdef CONFIG_SERIAL_BFIN_UART1 |
279 | static struct resource bfin_uart1_resources[] = { | ||
244 | { | 280 | { |
245 | .start = 0xFFC02000, | 281 | .start = UART1_DLL, |
246 | .end = 0xFFC020FF, | 282 | .end = UART1_RBR+2, |
247 | .flags = IORESOURCE_MEM, | 283 | .flags = IORESOURCE_MEM, |
248 | }, | 284 | }, |
285 | { | ||
286 | .start = IRQ_UART1_RX, | ||
287 | .end = IRQ_UART1_RX+1, | ||
288 | .flags = IORESOURCE_IRQ, | ||
289 | }, | ||
290 | { | ||
291 | .start = IRQ_UART1_ERROR, | ||
292 | .end = IRQ_UART1_ERROR, | ||
293 | .flags = IORESOURCE_IRQ, | ||
294 | }, | ||
295 | { | ||
296 | .start = CH_UART1_TX, | ||
297 | .end = CH_UART1_TX, | ||
298 | .flags = IORESOURCE_DMA, | ||
299 | }, | ||
300 | { | ||
301 | .start = CH_UART1_RX, | ||
302 | .end = CH_UART1_RX, | ||
303 | .flags = IORESOURCE_DMA, | ||
304 | }, | ||
305 | #ifdef CONFIG_BFIN_UART1_CTSRTS | ||
306 | { /* CTS pin -- 0 means not supported */ | ||
307 | .start = GPIO_PE10, | ||
308 | .end = GPIO_PE10, | ||
309 | .flags = IORESOURCE_IO, | ||
310 | }, | ||
311 | { /* RTS pin -- 0 means not supported */ | ||
312 | .start = GPIO_PE9, | ||
313 | .end = GPIO_PE9, | ||
314 | .flags = IORESOURCE_IO, | ||
315 | }, | ||
316 | #endif | ||
317 | }; | ||
318 | |||
319 | unsigned short bfin_uart1_peripherals[] = { | ||
320 | P_UART1_TX, P_UART1_RX, | ||
321 | #ifdef CONFIG_BFIN_UART1_CTSRTS | ||
322 | P_UART1_RTS, P_UART1_CTS, | ||
323 | #endif | ||
324 | 0 | ||
325 | }; | ||
326 | |||
327 | static struct platform_device bfin_uart1_device = { | ||
328 | .name = "bfin-uart", | ||
329 | .id = 1, | ||
330 | .num_resources = ARRAY_SIZE(bfin_uart1_resources), | ||
331 | .resource = bfin_uart1_resources, | ||
332 | .dev = { | ||
333 | .platform_data = &bfin_uart1_peripherals, /* Passed to driver */ | ||
334 | }, | ||
335 | }; | ||
249 | #endif | 336 | #endif |
250 | #ifdef CONFIG_SERIAL_BFIN_UART2 | 337 | #ifdef CONFIG_SERIAL_BFIN_UART2 |
338 | static struct resource bfin_uart2_resources[] = { | ||
251 | { | 339 | { |
252 | .start = 0xFFC02100, | 340 | .start = UART2_DLL, |
253 | .end = 0xFFC021FF, | 341 | .end = UART2_RBR+2, |
254 | .flags = IORESOURCE_MEM, | 342 | .flags = IORESOURCE_MEM, |
255 | }, | 343 | }, |
344 | { | ||
345 | .start = IRQ_UART2_RX, | ||
346 | .end = IRQ_UART2_RX+1, | ||
347 | .flags = IORESOURCE_IRQ, | ||
348 | }, | ||
349 | { | ||
350 | .start = IRQ_UART2_ERROR, | ||
351 | .end = IRQ_UART2_ERROR, | ||
352 | .flags = IORESOURCE_IRQ, | ||
353 | }, | ||
354 | { | ||
355 | .start = CH_UART2_TX, | ||
356 | .end = CH_UART2_TX, | ||
357 | .flags = IORESOURCE_DMA, | ||
358 | }, | ||
359 | { | ||
360 | .start = CH_UART2_RX, | ||
361 | .end = CH_UART2_RX, | ||
362 | .flags = IORESOURCE_DMA, | ||
363 | }, | ||
364 | }; | ||
365 | |||
366 | unsigned short bfin_uart2_peripherals[] = { | ||
367 | P_UART2_TX, P_UART2_RX, 0 | ||
368 | }; | ||
369 | |||
370 | static struct platform_device bfin_uart2_device = { | ||
371 | .name = "bfin-uart", | ||
372 | .id = 2, | ||
373 | .num_resources = ARRAY_SIZE(bfin_uart2_resources), | ||
374 | .resource = bfin_uart2_resources, | ||
375 | .dev = { | ||
376 | .platform_data = &bfin_uart2_peripherals, /* Passed to driver */ | ||
377 | }, | ||
378 | }; | ||
256 | #endif | 379 | #endif |
257 | #ifdef CONFIG_SERIAL_BFIN_UART3 | 380 | #ifdef CONFIG_SERIAL_BFIN_UART3 |
381 | static struct resource bfin_uart3_resources[] = { | ||
258 | { | 382 | { |
259 | .start = 0xFFC03100, | 383 | .start = UART3_DLL, |
260 | .end = 0xFFC031FF, | 384 | .end = UART3_RBR+2, |
261 | .flags = IORESOURCE_MEM, | 385 | .flags = IORESOURCE_MEM, |
262 | }, | 386 | }, |
387 | { | ||
388 | .start = IRQ_UART3_RX, | ||
389 | .end = IRQ_UART3_RX+1, | ||
390 | .flags = IORESOURCE_IRQ, | ||
391 | }, | ||
392 | { | ||
393 | .start = IRQ_UART3_ERROR, | ||
394 | .end = IRQ_UART3_ERROR, | ||
395 | .flags = IORESOURCE_IRQ, | ||
396 | }, | ||
397 | { | ||
398 | .start = CH_UART3_TX, | ||
399 | .end = CH_UART3_TX, | ||
400 | .flags = IORESOURCE_DMA, | ||
401 | }, | ||
402 | { | ||
403 | .start = CH_UART3_RX, | ||
404 | .end = CH_UART3_RX, | ||
405 | .flags = IORESOURCE_DMA, | ||
406 | }, | ||
407 | #ifdef CONFIG_BFIN_UART3_CTSRTS | ||
408 | { /* CTS pin -- 0 means not supported */ | ||
409 | .start = GPIO_PB3, | ||
410 | .end = GPIO_PB3, | ||
411 | .flags = IORESOURCE_IO, | ||
412 | }, | ||
413 | { /* RTS pin -- 0 means not supported */ | ||
414 | .start = GPIO_PB2, | ||
415 | .end = GPIO_PB2, | ||
416 | .flags = IORESOURCE_IO, | ||
417 | }, | ||
263 | #endif | 418 | #endif |
264 | }; | 419 | }; |
265 | 420 | ||
266 | static struct platform_device bfin_uart_device = { | 421 | unsigned short bfin_uart3_peripherals[] = { |
422 | P_UART3_TX, P_UART3_RX, | ||
423 | #ifdef CONFIG_BFIN_UART3_CTSRTS | ||
424 | P_UART3_RTS, P_UART3_CTS, | ||
425 | #endif | ||
426 | 0 | ||
427 | }; | ||
428 | |||
429 | static struct platform_device bfin_uart3_device = { | ||
267 | .name = "bfin-uart", | 430 | .name = "bfin-uart", |
268 | .id = 1, | 431 | .id = 3, |
269 | .num_resources = ARRAY_SIZE(bfin_uart_resources), | 432 | .num_resources = ARRAY_SIZE(bfin_uart3_resources), |
270 | .resource = bfin_uart_resources, | 433 | .resource = bfin_uart3_resources, |
434 | .dev = { | ||
435 | .platform_data = &bfin_uart3_peripherals, /* Passed to driver */ | ||
436 | }, | ||
271 | }; | 437 | }; |
272 | #endif | 438 | #endif |
439 | #endif | ||
273 | 440 | ||
274 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 441 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
275 | #ifdef CONFIG_BFIN_SIR0 | 442 | #ifdef CONFIG_BFIN_SIR0 |
@@ -464,6 +631,145 @@ static struct platform_device musb_device = { | |||
464 | }; | 631 | }; |
465 | #endif | 632 | #endif |
466 | 633 | ||
634 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | ||
635 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART | ||
636 | static struct resource bfin_sport0_uart_resources[] = { | ||
637 | { | ||
638 | .start = SPORT0_TCR1, | ||
639 | .end = SPORT0_MRCS3+4, | ||
640 | .flags = IORESOURCE_MEM, | ||
641 | }, | ||
642 | { | ||
643 | .start = IRQ_SPORT0_RX, | ||
644 | .end = IRQ_SPORT0_RX+1, | ||
645 | .flags = IORESOURCE_IRQ, | ||
646 | }, | ||
647 | { | ||
648 | .start = IRQ_SPORT0_ERROR, | ||
649 | .end = IRQ_SPORT0_ERROR, | ||
650 | .flags = IORESOURCE_IRQ, | ||
651 | }, | ||
652 | }; | ||
653 | |||
654 | unsigned short bfin_sport0_peripherals[] = { | ||
655 | P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS, | ||
656 | P_SPORT0_DRPRI, P_SPORT0_RSCLK, P_SPORT0_DRSEC, P_SPORT0_DTSEC, 0 | ||
657 | }; | ||
658 | |||
659 | static struct platform_device bfin_sport0_uart_device = { | ||
660 | .name = "bfin-sport-uart", | ||
661 | .id = 0, | ||
662 | .num_resources = ARRAY_SIZE(bfin_sport0_uart_resources), | ||
663 | .resource = bfin_sport0_uart_resources, | ||
664 | .dev = { | ||
665 | .platform_data = &bfin_sport0_peripherals, /* Passed to driver */ | ||
666 | }, | ||
667 | }; | ||
668 | #endif | ||
669 | #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART | ||
670 | static struct resource bfin_sport1_uart_resources[] = { | ||
671 | { | ||
672 | .start = SPORT1_TCR1, | ||
673 | .end = SPORT1_MRCS3+4, | ||
674 | .flags = IORESOURCE_MEM, | ||
675 | }, | ||
676 | { | ||
677 | .start = IRQ_SPORT1_RX, | ||
678 | .end = IRQ_SPORT1_RX+1, | ||
679 | .flags = IORESOURCE_IRQ, | ||
680 | }, | ||
681 | { | ||
682 | .start = IRQ_SPORT1_ERROR, | ||
683 | .end = IRQ_SPORT1_ERROR, | ||
684 | .flags = IORESOURCE_IRQ, | ||
685 | }, | ||
686 | }; | ||
687 | |||
688 | unsigned short bfin_sport1_peripherals[] = { | ||
689 | P_SPORT1_TFS, P_SPORT1_DTPRI, P_SPORT1_TSCLK, P_SPORT1_RFS, | ||
690 | P_SPORT1_DRPRI, P_SPORT1_RSCLK, P_SPORT1_DRSEC, P_SPORT1_DTSEC, 0 | ||
691 | }; | ||
692 | |||
693 | static struct platform_device bfin_sport1_uart_device = { | ||
694 | .name = "bfin-sport-uart", | ||
695 | .id = 1, | ||
696 | .num_resources = ARRAY_SIZE(bfin_sport1_uart_resources), | ||
697 | .resource = bfin_sport1_uart_resources, | ||
698 | .dev = { | ||
699 | .platform_data = &bfin_sport1_peripherals, /* Passed to driver */ | ||
700 | }, | ||
701 | }; | ||
702 | #endif | ||
703 | #ifdef CONFIG_SERIAL_BFIN_SPORT2_UART | ||
704 | static struct resource bfin_sport2_uart_resources[] = { | ||
705 | { | ||
706 | .start = SPORT2_TCR1, | ||
707 | .end = SPORT2_MRCS3+4, | ||
708 | .flags = IORESOURCE_MEM, | ||
709 | }, | ||
710 | { | ||
711 | .start = IRQ_SPORT2_RX, | ||
712 | .end = IRQ_SPORT2_RX+1, | ||
713 | .flags = IORESOURCE_IRQ, | ||
714 | }, | ||
715 | { | ||
716 | .start = IRQ_SPORT2_ERROR, | ||
717 | .end = IRQ_SPORT2_ERROR, | ||
718 | .flags = IORESOURCE_IRQ, | ||
719 | }, | ||
720 | }; | ||
721 | |||
722 | unsigned short bfin_sport2_peripherals[] = { | ||
723 | P_SPORT2_TFS, P_SPORT2_DTPRI, P_SPORT2_TSCLK, P_SPORT2_RFS, | ||
724 | P_SPORT2_DRPRI, P_SPORT2_RSCLK, P_SPORT2_DRSEC, P_SPORT2_DTSEC, 0 | ||
725 | }; | ||
726 | |||
727 | static struct platform_device bfin_sport2_uart_device = { | ||
728 | .name = "bfin-sport-uart", | ||
729 | .id = 2, | ||
730 | .num_resources = ARRAY_SIZE(bfin_sport2_uart_resources), | ||
731 | .resource = bfin_sport2_uart_resources, | ||
732 | .dev = { | ||
733 | .platform_data = &bfin_sport2_peripherals, /* Passed to driver */ | ||
734 | }, | ||
735 | }; | ||
736 | #endif | ||
737 | #ifdef CONFIG_SERIAL_BFIN_SPORT3_UART | ||
738 | static struct resource bfin_sport3_uart_resources[] = { | ||
739 | { | ||
740 | .start = SPORT3_TCR1, | ||
741 | .end = SPORT3_MRCS3+4, | ||
742 | .flags = IORESOURCE_MEM, | ||
743 | }, | ||
744 | { | ||
745 | .start = IRQ_SPORT3_RX, | ||
746 | .end = IRQ_SPORT3_RX+1, | ||
747 | .flags = IORESOURCE_IRQ, | ||
748 | }, | ||
749 | { | ||
750 | .start = IRQ_SPORT3_ERROR, | ||
751 | .end = IRQ_SPORT3_ERROR, | ||
752 | .flags = IORESOURCE_IRQ, | ||
753 | }, | ||
754 | }; | ||
755 | |||
756 | unsigned short bfin_sport3_peripherals[] = { | ||
757 | P_SPORT3_TFS, P_SPORT3_DTPRI, P_SPORT3_TSCLK, P_SPORT3_RFS, | ||
758 | P_SPORT3_DRPRI, P_SPORT3_RSCLK, P_SPORT3_DRSEC, P_SPORT3_DTSEC, 0 | ||
759 | }; | ||
760 | |||
761 | static struct platform_device bfin_sport3_uart_device = { | ||
762 | .name = "bfin-sport-uart", | ||
763 | .id = 3, | ||
764 | .num_resources = ARRAY_SIZE(bfin_sport3_uart_resources), | ||
765 | .resource = bfin_sport3_uart_resources, | ||
766 | .dev = { | ||
767 | .platform_data = &bfin_sport3_peripherals, /* Passed to driver */ | ||
768 | }, | ||
769 | }; | ||
770 | #endif | ||
771 | #endif | ||
772 | |||
467 | #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) | 773 | #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) |
468 | unsigned short bfin_can_peripherals[] = { | 774 | unsigned short bfin_can_peripherals[] = { |
469 | P_CAN0_RX, P_CAN0_TX, 0 | 775 | P_CAN0_RX, P_CAN0_TX, 0 |
@@ -657,8 +963,8 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { | |||
657 | }; | 963 | }; |
658 | #endif | 964 | #endif |
659 | 965 | ||
660 | #if defined(CONFIG_SND_BLACKFIN_AD1836) \ | 966 | #if defined(CONFIG_SND_BLACKFIN_AD183X) \ |
661 | || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE) | 967 | || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE) |
662 | static struct bfin5xx_spi_chip ad1836_spi_chip_info = { | 968 | static struct bfin5xx_spi_chip ad1836_spi_chip_info = { |
663 | .enable_dma = 0, | 969 | .enable_dma = 0, |
664 | .bits_per_word = 16, | 970 | .bits_per_word = 16, |
@@ -714,8 +1020,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
714 | .mode = SPI_MODE_3, | 1020 | .mode = SPI_MODE_3, |
715 | }, | 1021 | }, |
716 | #endif | 1022 | #endif |
717 | #if defined(CONFIG_SND_BLACKFIN_AD1836) \ | 1023 | #if defined(CONFIG_SND_BLACKFIN_AD183X) \ |
718 | || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE) | 1024 | || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE) |
719 | { | 1025 | { |
720 | .modalias = "ad1836", | 1026 | .modalias = "ad1836", |
721 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ | 1027 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ |
@@ -951,6 +1257,30 @@ static struct platform_device bfin_dpmc = { | |||
951 | }, | 1257 | }, |
952 | }; | 1258 | }; |
953 | 1259 | ||
1260 | #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) | ||
1261 | static struct platform_device bfin_i2s = { | ||
1262 | .name = "bfin-i2s", | ||
1263 | .id = CONFIG_SND_BF5XX_SPORT_NUM, | ||
1264 | /* TODO: add platform data here */ | ||
1265 | }; | ||
1266 | #endif | ||
1267 | |||
1268 | #if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE) | ||
1269 | static struct platform_device bfin_tdm = { | ||
1270 | .name = "bfin-tdm", | ||
1271 | .id = CONFIG_SND_BF5XX_SPORT_NUM, | ||
1272 | /* TODO: add platform data here */ | ||
1273 | }; | ||
1274 | #endif | ||
1275 | |||
1276 | #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) | ||
1277 | static struct platform_device bfin_ac97 = { | ||
1278 | .name = "bfin-ac97", | ||
1279 | .id = CONFIG_SND_BF5XX_SPORT_NUM, | ||
1280 | /* TODO: add platform data here */ | ||
1281 | }; | ||
1282 | #endif | ||
1283 | |||
954 | static struct platform_device *ezkit_devices[] __initdata = { | 1284 | static struct platform_device *ezkit_devices[] __initdata = { |
955 | 1285 | ||
956 | &bfin_dpmc, | 1286 | &bfin_dpmc, |
@@ -960,7 +1290,18 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
960 | #endif | 1290 | #endif |
961 | 1291 | ||
962 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | 1292 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) |
963 | &bfin_uart_device, | 1293 | #ifdef CONFIG_SERIAL_BFIN_UART0 |
1294 | &bfin_uart0_device, | ||
1295 | #endif | ||
1296 | #ifdef CONFIG_SERIAL_BFIN_UART1 | ||
1297 | &bfin_uart1_device, | ||
1298 | #endif | ||
1299 | #ifdef CONFIG_SERIAL_BFIN_UART2 | ||
1300 | &bfin_uart2_device, | ||
1301 | #endif | ||
1302 | #ifdef CONFIG_SERIAL_BFIN_UART3 | ||
1303 | &bfin_uart3_device, | ||
1304 | #endif | ||
964 | #endif | 1305 | #endif |
965 | 1306 | ||
966 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 1307 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
@@ -994,6 +1335,21 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
994 | &bfin_isp1760_device, | 1335 | &bfin_isp1760_device, |
995 | #endif | 1336 | #endif |
996 | 1337 | ||
1338 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | ||
1339 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART | ||
1340 | &bfin_sport0_uart_device, | ||
1341 | #endif | ||
1342 | #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART | ||
1343 | &bfin_sport1_uart_device, | ||
1344 | #endif | ||
1345 | #ifdef CONFIG_SERIAL_BFIN_SPORT2_UART | ||
1346 | &bfin_sport2_uart_device, | ||
1347 | #endif | ||
1348 | #ifdef CONFIG_SERIAL_BFIN_SPORT3_UART | ||
1349 | &bfin_sport3_uart_device, | ||
1350 | #endif | ||
1351 | #endif | ||
1352 | |||
997 | #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) | 1353 | #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) |
998 | &bfin_can_device, | 1354 | &bfin_can_device, |
999 | #endif | 1355 | #endif |
@@ -1037,6 +1393,18 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
1037 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | 1393 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) |
1038 | &ezkit_flash_device, | 1394 | &ezkit_flash_device, |
1039 | #endif | 1395 | #endif |
1396 | |||
1397 | #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) | ||
1398 | &bfin_i2s, | ||
1399 | #endif | ||
1400 | |||
1401 | #if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE) | ||
1402 | &bfin_tdm, | ||
1403 | #endif | ||
1404 | |||
1405 | #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) | ||
1406 | &bfin_ac97, | ||
1407 | #endif | ||
1040 | }; | 1408 | }; |
1041 | 1409 | ||
1042 | static int __init ezkit_init(void) | 1410 | static int __init ezkit_init(void) |
@@ -1058,3 +1426,42 @@ static int __init ezkit_init(void) | |||
1058 | } | 1426 | } |
1059 | 1427 | ||
1060 | arch_initcall(ezkit_init); | 1428 | arch_initcall(ezkit_init); |
1429 | |||
1430 | static struct platform_device *ezkit_early_devices[] __initdata = { | ||
1431 | #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK) | ||
1432 | #ifdef CONFIG_SERIAL_BFIN_UART0 | ||
1433 | &bfin_uart0_device, | ||
1434 | #endif | ||
1435 | #ifdef CONFIG_SERIAL_BFIN_UART1 | ||
1436 | &bfin_uart1_device, | ||
1437 | #endif | ||
1438 | #ifdef CONFIG_SERIAL_BFIN_UART2 | ||
1439 | &bfin_uart2_device, | ||
1440 | #endif | ||
1441 | #ifdef CONFIG_SERIAL_BFIN_UART3 | ||
1442 | &bfin_uart3_device, | ||
1443 | #endif | ||
1444 | #endif | ||
1445 | |||
1446 | #if defined(CONFIG_SERIAL_BFIN_SPORT_CONSOLE) | ||
1447 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART | ||
1448 | &bfin_sport0_uart_device, | ||
1449 | #endif | ||
1450 | #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART | ||
1451 | &bfin_sport1_uart_device, | ||
1452 | #endif | ||
1453 | #ifdef CONFIG_SERIAL_BFIN_SPORT2_UART | ||
1454 | &bfin_sport2_uart_device, | ||
1455 | #endif | ||
1456 | #ifdef CONFIG_SERIAL_BFIN_SPORT3_UART | ||
1457 | &bfin_sport3_uart_device, | ||
1458 | #endif | ||
1459 | #endif | ||
1460 | }; | ||
1461 | |||
1462 | void __init native_machine_early_platform_add_devices(void) | ||
1463 | { | ||
1464 | printk(KERN_INFO "register early platform devices\n"); | ||
1465 | early_platform_add_devices(ezkit_early_devices, | ||
1466 | ARRAY_SIZE(ezkit_early_devices)); | ||
1467 | } | ||