]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - include/serial.h
serial: implement common uart post test
[karo-tx-uboot.git] / include / serial.h
index e6d3859bd929dc734b5c9b51eb29fada40c680c9..08d106a7c05870516e640809a4d14cc340ebb433 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __SERIAL_H__
 #define __SERIAL_H__
 
+#include <post.h>
+
 #define NAMESIZE 16
 
 struct serial_device {
@@ -13,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;
 };