]> git.sur5r.net Git - u-boot/blobdiff - include/serial.h
common: move BUILD_BUG_ON define to common.h
[u-boot] / include / serial.h
index 15ab73c13d99b97345486b5892c7fc41858b8b84..08d106a7c05870516e640809a4d14cc340ebb433 100644 (file)
@@ -1,12 +1,12 @@
 #ifndef __SERIAL_H__
 #define __SERIAL_H__
 
+#include <post.h>
+
 #define NAMESIZE 16
-#define CTLRSIZE 8
 
 struct serial_device {
        char name[NAMESIZE];
-       char ctlr[CTLRSIZE];
 
        int  (*init) (void);
        int  (*uninit) (void);
@@ -15,6 +15,9 @@ struct serial_device {
        int (*tstc) (void);
        void (*putc) (const char c);
        void (*puts) (const char *s);
+#if CONFIG_POST & CONFIG_SYS_POST_UART
+       void (*loop) (int);
+#endif
 
        struct serial_device *next;
 };
@@ -27,7 +30,8 @@ extern struct serial_device * default_serial_console (void);
     defined(CONFIG_405EP) || defined(CONFIG_405EZ) || defined(CONFIG_405EX) || \
     defined(CONFIG_MB86R0x) || defined(CONFIG_MPC5xxx) || \
     defined(CONFIG_MPC83xx) || defined(CONFIG_MPC85xx) || \
-    defined(CONFIG_MPC86xx) || defined(CONFIG_SYS_SC520)
+    defined(CONFIG_MPC86xx) || defined(CONFIG_SYS_SC520) || \
+    defined(CONFIG_TEGRA2)
 extern struct serial_device serial0_device;
 extern struct serial_device serial1_device;
 #if defined(CONFIG_SYS_NS16550_SERIAL)