diff options
Diffstat (limited to 'arch/blackfin/mach-bf533/boards/stamp.c')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/stamp.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf533/boards/stamp.c b/arch/blackfin/mach-bf533/boards/stamp.c index 428f724dd080..3e80a795d3c7 100644 --- a/arch/blackfin/mach-bf533/boards/stamp.c +++ b/arch/blackfin/mach-bf533/boards/stamp.c | |||
@@ -642,6 +642,30 @@ static int __init stamp_init(void) | |||
642 | 642 | ||
643 | arch_initcall(stamp_init); | 643 | arch_initcall(stamp_init); |
644 | 644 | ||
645 | static struct platform_device *stamp_early_devices[] __initdata = { | ||
646 | #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK) | ||
647 | #ifdef CONFIG_SERIAL_BFIN_UART0 | ||
648 | &bfin_uart0_device, | ||
649 | #endif | ||
650 | #endif | ||
651 | |||
652 | #if defined(CONFIG_SERIAL_BFIN_SPORT_CONSOLE) | ||
653 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART | ||
654 | &bfin_sport0_uart_device, | ||
655 | #endif | ||
656 | #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART | ||
657 | &bfin_sport1_uart_device, | ||
658 | #endif | ||
659 | #endif | ||
660 | }; | ||
661 | |||
662 | void __init native_machine_early_platform_add_devices(void) | ||
663 | { | ||
664 | printk(KERN_INFO "register early platform devices\n"); | ||
665 | early_platform_add_devices(stamp_early_devices, | ||
666 | ARRAY_SIZE(stamp_early_devices)); | ||
667 | } | ||
668 | |||
645 | void native_machine_restart(char *cmd) | 669 | void native_machine_restart(char *cmd) |
646 | { | 670 | { |
647 | /* workaround pull up on cpld / flash pin not being strong enough */ | 671 | /* workaround pull up on cpld / flash pin not being strong enough */ |