]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/blackfin/mach-bf533/boards/H8606.c
Blackfin: add UART/SPORT early platform resources
[net-next-2.6.git] / arch / blackfin / mach-bf533 / boards / H8606.c
index cb3b74f32346fd315f482da642d7006a7c3918d0..d10c8e8b69cfdff8a3a9e2d1a064d0730a873034 100644 (file)
@@ -455,3 +455,18 @@ static int __init H8606_init(void)
 }
 
 arch_initcall(H8606_init);
+
+static struct platform_device *H8606_early_devices[] __initdata = {
+#if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK)
+#ifdef CONFIG_SERIAL_BFIN_UART0
+       &bfin_uart0_device,
+#endif
+#endif
+};
+
+void __init native_machine_early_platform_add_devices(void)
+{
+       printk(KERN_INFO "register early platform devices\n");
+       early_platform_add_devices(H8606_early_devices,
+               ARRAY_SIZE(H8606_early_devices));
+}