]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/blackfin/mach-bf561/boards/cm_bf561.c
Blackfin: add UART/SPORT early platform resources
[net-next-2.6.git] / arch / blackfin / mach-bf561 / boards / cm_bf561.c
index 818266f6348fd1841f67d7fa7d83191607a928bf..37dd37523adfd78a8bc3785143fa9a8cd9e5fa09 100644 (file)
@@ -547,3 +547,18 @@ static int __init cm_bf561_init(void)
 }
 
 arch_initcall(cm_bf561_init);
+
+static struct platform_device *cm_bf561_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(cm_bf561_early_devices,
+               ARRAY_SIZE(cm_bf561_early_devices));
+}