diff options
Diffstat (limited to 'arch/blackfin/mach-bf527/boards/ezbrd.c')
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezbrd.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezbrd.c b/arch/blackfin/mach-bf527/boards/ezbrd.c index a99955d11391..3ff61e6fbe95 100644 --- a/arch/blackfin/mach-bf527/boards/ezbrd.c +++ b/arch/blackfin/mach-bf527/boards/ezbrd.c | |||
@@ -854,6 +854,33 @@ static int __init ezbrd_init(void) | |||
854 | 854 | ||
855 | arch_initcall(ezbrd_init); | 855 | arch_initcall(ezbrd_init); |
856 | 856 | ||
857 | static struct platform_device *ezbrd_early_devices[] __initdata = { | ||
858 | #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK) | ||
859 | #ifdef CONFIG_SERIAL_BFIN_UART0 | ||
860 | &bfin_uart0_device, | ||
861 | #endif | ||
862 | #ifdef CONFIG_SERIAL_BFIN_UART1 | ||
863 | &bfin_uart1_device, | ||
864 | #endif | ||
865 | #endif | ||
866 | |||
867 | #if defined(CONFIG_SERIAL_BFIN_SPORT_CONSOLE) | ||
868 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART | ||
869 | &bfin_sport0_uart_device, | ||
870 | #endif | ||
871 | #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART | ||
872 | &bfin_sport1_uart_device, | ||
873 | #endif | ||
874 | #endif | ||
875 | }; | ||
876 | |||
877 | void __init native_machine_early_platform_add_devices(void) | ||
878 | { | ||
879 | printk(KERN_INFO "register early platform devices\n"); | ||
880 | early_platform_add_devices(ezbrd_early_devices, | ||
881 | ARRAY_SIZE(ezbrd_early_devices)); | ||
882 | } | ||
883 | |||
857 | void native_machine_restart(char *cmd) | 884 | void native_machine_restart(char *cmd) |
858 | { | 885 | { |
859 | /* workaround reboot hang when booting from SPI */ | 886 | /* workaround reboot hang when booting from SPI */ |