diff options
Diffstat (limited to 'arch/blackfin/mach-bf548/boards/ezkit.c')
-rw-r--r-- | arch/blackfin/mach-bf548/boards/ezkit.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c index 97033fea102e..b5d8ea187735 100644 --- a/arch/blackfin/mach-bf548/boards/ezkit.c +++ b/arch/blackfin/mach-bf548/boards/ezkit.c | |||
@@ -1390,3 +1390,42 @@ static int __init ezkit_init(void) | |||
1390 | } | 1390 | } |
1391 | 1391 | ||
1392 | arch_initcall(ezkit_init); | 1392 | arch_initcall(ezkit_init); |
1393 | |||
1394 | static struct platform_device *ezkit_early_devices[] __initdata = { | ||
1395 | #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK) | ||
1396 | #ifdef CONFIG_SERIAL_BFIN_UART0 | ||
1397 | &bfin_uart0_device, | ||
1398 | #endif | ||
1399 | #ifdef CONFIG_SERIAL_BFIN_UART1 | ||
1400 | &bfin_uart1_device, | ||
1401 | #endif | ||
1402 | #ifdef CONFIG_SERIAL_BFIN_UART2 | ||
1403 | &bfin_uart2_device, | ||
1404 | #endif | ||
1405 | #ifdef CONFIG_SERIAL_BFIN_UART3 | ||
1406 | &bfin_uart3_device, | ||
1407 | #endif | ||
1408 | #endif | ||
1409 | |||
1410 | #if defined(CONFIG_SERIAL_BFIN_SPORT_CONSOLE) | ||
1411 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART | ||
1412 | &bfin_sport0_uart_device, | ||
1413 | #endif | ||
1414 | #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART | ||
1415 | &bfin_sport1_uart_device, | ||
1416 | #endif | ||
1417 | #ifdef CONFIG_SERIAL_BFIN_SPORT2_UART | ||
1418 | &bfin_sport2_uart_device, | ||
1419 | #endif | ||
1420 | #ifdef CONFIG_SERIAL_BFIN_SPORT3_UART | ||
1421 | &bfin_sport3_uart_device, | ||
1422 | #endif | ||
1423 | #endif | ||
1424 | }; | ||
1425 | |||
1426 | void __init native_machine_early_platform_add_devices(void) | ||
1427 | { | ||
1428 | printk(KERN_INFO "register early platform devices\n"); | ||
1429 | early_platform_add_devices(ezkit_early_devices, | ||
1430 | ARRAY_SIZE(ezkit_early_devices)); | ||
1431 | } | ||