diff options
Diffstat (limited to 'arch/blackfin/mach-bf561')
-rw-r--r-- | arch/blackfin/mach-bf561/boards/cm_bf561.c | 15 | ||||
-rw-r--r-- | arch/blackfin/mach-bf561/boards/ezkit.c | 15 | ||||
-rw-r--r-- | arch/blackfin/mach-bf561/boards/tepla.c | 15 |
3 files changed, 45 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf561/boards/cm_bf561.c b/arch/blackfin/mach-bf561/boards/cm_bf561.c index 818266f6348f..37dd37523adf 100644 --- a/arch/blackfin/mach-bf561/boards/cm_bf561.c +++ b/arch/blackfin/mach-bf561/boards/cm_bf561.c | |||
@@ -547,3 +547,18 @@ static int __init cm_bf561_init(void) | |||
547 | } | 547 | } |
548 | 548 | ||
549 | arch_initcall(cm_bf561_init); | 549 | arch_initcall(cm_bf561_init); |
550 | |||
551 | static struct platform_device *cm_bf561_early_devices[] __initdata = { | ||
552 | #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK) | ||
553 | #ifdef CONFIG_SERIAL_BFIN_UART0 | ||
554 | &bfin_uart0_device, | ||
555 | #endif | ||
556 | #endif | ||
557 | }; | ||
558 | |||
559 | void __init native_machine_early_platform_add_devices(void) | ||
560 | { | ||
561 | printk(KERN_INFO "register early platform devices\n"); | ||
562 | early_platform_add_devices(cm_bf561_early_devices, | ||
563 | ARRAY_SIZE(cm_bf561_early_devices)); | ||
564 | } | ||
diff --git a/arch/blackfin/mach-bf561/boards/ezkit.c b/arch/blackfin/mach-bf561/boards/ezkit.c index c59041c513e0..c7a5db79f838 100644 --- a/arch/blackfin/mach-bf561/boards/ezkit.c +++ b/arch/blackfin/mach-bf561/boards/ezkit.c | |||
@@ -489,3 +489,18 @@ static int __init ezkit_init(void) | |||
489 | } | 489 | } |
490 | 490 | ||
491 | arch_initcall(ezkit_init); | 491 | arch_initcall(ezkit_init); |
492 | |||
493 | static struct platform_device *ezkit_early_devices[] __initdata = { | ||
494 | #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK) | ||
495 | #ifdef CONFIG_SERIAL_BFIN_UART0 | ||
496 | &bfin_uart0_device, | ||
497 | #endif | ||
498 | #endif | ||
499 | }; | ||
500 | |||
501 | void __init native_machine_early_platform_add_devices(void) | ||
502 | { | ||
503 | printk(KERN_INFO "register early platform devices\n"); | ||
504 | early_platform_add_devices(ezkit_early_devices, | ||
505 | ARRAY_SIZE(ezkit_early_devices)); | ||
506 | } | ||
diff --git a/arch/blackfin/mach-bf561/boards/tepla.c b/arch/blackfin/mach-bf561/boards/tepla.c index 6c33397355b3..d3017e53686b 100644 --- a/arch/blackfin/mach-bf561/boards/tepla.c +++ b/arch/blackfin/mach-bf561/boards/tepla.c | |||
@@ -140,3 +140,18 @@ static int __init tepla_init(void) | |||
140 | } | 140 | } |
141 | 141 | ||
142 | arch_initcall(tepla_init); | 142 | arch_initcall(tepla_init); |
143 | |||
144 | static struct platform_device *tepla_early_devices[] __initdata = { | ||
145 | #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK) | ||
146 | #ifdef CONFIG_SERIAL_BFIN_UART0 | ||
147 | &bfin_uart0_device, | ||
148 | #endif | ||
149 | #endif | ||
150 | }; | ||
151 | |||
152 | void __init native_machine_early_platform_add_devices(void) | ||
153 | { | ||
154 | printk(KERN_INFO "register early platform devices\n"); | ||
155 | early_platform_add_devices(tepla_early_devices, | ||
156 | ARRAY_SIZE(tepla_early_devices)); | ||
157 | } | ||