diff options
Diffstat (limited to 'arch/blackfin/mach-bf527/boards/cm_bf527.c')
| -rw-r--r-- | arch/blackfin/mach-bf527/boards/cm_bf527.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf527/boards/cm_bf527.c b/arch/blackfin/mach-bf527/boards/cm_bf527.c index 3543bdf3268e..eaa0131f9605 100644 --- a/arch/blackfin/mach-bf527/boards/cm_bf527.c +++ b/arch/blackfin/mach-bf527/boards/cm_bf527.c | |||
| @@ -1014,6 +1014,33 @@ static int __init cm_init(void) | |||
| 1014 | 1014 | ||
| 1015 | arch_initcall(cm_init); | 1015 | arch_initcall(cm_init); |
| 1016 | 1016 | ||
| 1017 | static struct platform_device *cmbf527_early_devices[] __initdata = { | ||
| 1018 | #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK) | ||
| 1019 | #ifdef CONFIG_SERIAL_BFIN_UART0 | ||
| 1020 | &bfin_uart0_device, | ||
| 1021 | #endif | ||
| 1022 | #ifdef CONFIG_SERIAL_BFIN_UART1 | ||
| 1023 | &bfin_uart1_device, | ||
| 1024 | #endif | ||
| 1025 | #endif | ||
| 1026 | |||
| 1027 | #if defined(CONFIG_SERIAL_BFIN_SPORT_CONSOLE) | ||
| 1028 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART | ||
| 1029 | &bfin_sport0_uart_device, | ||
| 1030 | #endif | ||
| 1031 | #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART | ||
| 1032 | &bfin_sport1_uart_device, | ||
| 1033 | #endif | ||
| 1034 | #endif | ||
| 1035 | }; | ||
| 1036 | |||
| 1037 | void __init native_machine_early_platform_add_devices(void) | ||
| 1038 | { | ||
| 1039 | printk(KERN_INFO "register early platform devices\n"); | ||
| 1040 | early_platform_add_devices(cmbf527_early_devices, | ||
| 1041 | ARRAY_SIZE(cmbf527_early_devices)); | ||
| 1042 | } | ||
| 1043 | |||
| 1017 | void native_machine_restart(char *cmd) | 1044 | void native_machine_restart(char *cmd) |
| 1018 | { | 1045 | { |
| 1019 | /* workaround reboot hang when booting from SPI */ | 1046 | /* workaround reboot hang when booting from SPI */ |
