summaryrefslogtreecommitdiff
path: root/include/serial.h
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2010-04-24 19:27:06 +0200
committerWolfgang Denk <wd@denx.de>2010-04-24 22:56:32 +0200
commit8e234e33bf60a850685c7e81ea92d383c643486b (patch)
tree2084e709ebde4f2bb4f751dcce98d95adf4e92bb /include/serial.h
parente3b28e67329de99a315d509920760dcbc565f8c6 (diff)
downloadu-boot-8e234e33bf60a850685c7e81ea92d383c643486b.tar.gz
mpc5121: add PSC serial communication routines
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'include/serial.h')
-rw-r--r--include/serial.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/serial.h b/include/serial.h
index 3f3edbc954..6423fbaea1 100644
--- a/include/serial.h
+++ b/include/serial.h
@@ -92,4 +92,11 @@ extern int usbtty_tstc(void);
#endif /* CONFIG_USB_TTY */
+#if defined(CONFIG_MPC512X) && defined(CONFIG_SERIAL_MULTI)
+extern struct stdio_dev *open_port(int num, int baudrate);
+extern int close_port(int num);
+extern int write_port(struct stdio_dev *port, char *buf);
+extern int read_port(struct stdio_dev *port, char *buf, int size);
+#endif
+
#endif