|
@@ -57,7 +57,8 @@ unsigned char *ISA_io = NULL;
|
|
|
|
|
|
#if defined(CONFIG_SERIAL_CPM_CONSOLE) || defined(CONFIG_SERIAL_8250_CONSOLE) \
|
|
|
|| defined(CONFIG_SERIAL_MPC52xx_CONSOLE) \
|
|
|
- || defined(CONFIG_SERIAL_MPSC_CONSOLE)
|
|
|
+ || defined(CONFIG_SERIAL_MPSC_CONSOLE) \
|
|
|
+ || defined(CONFIG_SERIAL_UARTLITE_CONSOLE)
|
|
|
extern unsigned long com_port;
|
|
|
|
|
|
extern int serial_tstc(unsigned long com_port);
|
|
@@ -80,7 +81,8 @@ int tstc(void)
|
|
|
{
|
|
|
#if defined(CONFIG_SERIAL_CPM_CONSOLE) || defined(CONFIG_SERIAL_8250_CONSOLE) \
|
|
|
|| defined(CONFIG_SERIAL_MPC52xx_CONSOLE) \
|
|
|
- || defined(CONFIG_SERIAL_MPSC_CONSOLE)
|
|
|
+ || defined(CONFIG_SERIAL_MPSC_CONSOLE) \
|
|
|
+ || defined(CONFIG_SERIAL_UARTLITE_CONSOLE)
|
|
|
if(keyb_present)
|
|
|
return (CRT_tstc() || serial_tstc(com_port));
|
|
|
else
|
|
@@ -95,7 +97,8 @@ int getc(void)
|
|
|
while (1) {
|
|
|
#if defined(CONFIG_SERIAL_CPM_CONSOLE) || defined(CONFIG_SERIAL_8250_CONSOLE) \
|
|
|
|| defined(CONFIG_SERIAL_MPC52xx_CONSOLE) \
|
|
|
- || defined(CONFIG_SERIAL_MPSC_CONSOLE)
|
|
|
+ || defined(CONFIG_SERIAL_MPSC_CONSOLE) \
|
|
|
+ || defined(CONFIG_SERIAL_UARTLITE_CONSOLE)
|
|
|
if (serial_tstc(com_port))
|
|
|
return (serial_getc(com_port));
|
|
|
#endif /* serial console */
|
|
@@ -112,7 +115,8 @@ putc(const char c)
|
|
|
|
|
|
#if defined(CONFIG_SERIAL_CPM_CONSOLE) || defined(CONFIG_SERIAL_8250_CONSOLE) \
|
|
|
|| defined(CONFIG_SERIAL_MPC52xx_CONSOLE) \
|
|
|
- || defined(CONFIG_SERIAL_MPSC_CONSOLE)
|
|
|
+ || defined(CONFIG_SERIAL_MPSC_CONSOLE) \
|
|
|
+ || defined(CONFIG_SERIAL_UARTLITE_CONSOLE)
|
|
|
serial_putc(com_port, c);
|
|
|
if ( c == '\n' )
|
|
|
serial_putc(com_port, '\r');
|
|
@@ -161,7 +165,8 @@ void puts(const char *s)
|
|
|
while ( ( c = *s++ ) != '\0' ) {
|
|
|
#if defined(CONFIG_SERIAL_CPM_CONSOLE) || defined(CONFIG_SERIAL_8250_CONSOLE) \
|
|
|
|| defined(CONFIG_SERIAL_MPC52xx_CONSOLE) \
|
|
|
- || defined(CONFIG_SERIAL_MPSC_CONSOLE)
|
|
|
+ || defined(CONFIG_SERIAL_MPSC_CONSOLE) \
|
|
|
+ || defined(CONFIG_SERIAL_UARTLITE_CONSOLE)
|
|
|
serial_putc(com_port, c);
|
|
|
if ( c == '\n' ) serial_putc(com_port, '\r');
|
|
|
#endif /* serial console */
|