]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/lwmon/lwmon.c
* Code cleanup
[people/ms/u-boot.git] / board / lwmon / lwmon.c
index 6776dbf4740f3ec36eb592eeddcc533d6a1857d1..904e7ea98c53a368922fa02653986700321b2fd1 100644 (file)
@@ -40,6 +40,7 @@ V* Verification:  dzu@denx.de
 #include <command.h>
 #include <malloc.h>
 #include <post.h>
+#include <serial.h>
 
 #include <linux/types.h>
 #include <linux/string.h>      /* for strdup */
@@ -468,6 +469,13 @@ int board_postclk_init (void)
        return (0);
 }
 
+struct serial_device * default_serial_console (void)
+{
+       DECLARE_GLOBAL_DATA_PTR;
+
+       return gd->do_mdm_init ? &serial_scc_device : &serial_smc_device;
+}
+
 static void kbd_init (void)
 {
        DECLARE_GLOBAL_DATA_PTR;