3 * Josh Huber <huber@mclx.com>, Mission Critical Linux, Inc.
5 * modified for marvell db64360 eval board by
6 * Ingo Assmus <ingo.assmus@keymile.com>
8 * modified for cpci750 board by
9 * Reinhard Arlt <reinhard.arlt@esd-electronics.com>
11 * See file CREDITS for list of people who contributed to this
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License as
16 * published by the Free Software Foundation; either version 2 of
17 * the License, or (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
31 * serial.c - serial support for esd cpci750 board
34 /* supports the MPSC */
38 #include "../../Marvell/include/memory.h"
43 DECLARE_GLOBAL_DATA_PTR;
45 int serial_init (void)
47 mpsc_init (gd->baudrate);
52 void serial_putc (const char c)
60 int serial_getc (void)
62 return mpsc_getchar ();
65 int serial_tstc (void)
67 return mpsc_test_char ();
70 void serial_setbrg (void)
72 galbrg_set_baudrate (CONFIG_MPSC_PORT, gd->baudrate);
76 void serial_puts (const char *s)
83 #if defined(CONFIG_CMD_KGDB)
84 void kgdb_serial_init (void)
88 void putDebugChar (int c)
93 void putDebugStr (const char *str)
98 int getDebugChar (void)
100 return serial_getc ();
103 void kgdb_interruptible (int yes)