diff options
-rw-r--r-- | drivers/serial/serial.c | 7 | ||||
-rw-r--r-- | include/serial.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index 5bbf3ae..d648a73 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.c @@ -273,6 +273,13 @@ void serial_puts(const char *s) get_current()->puts(s); } +void default_serial_puts(const char *s) +{ + struct serial_device *dev = get_current(); + while (*s) + dev->putc(*s++); +} + #if CONFIG_POST & CONFIG_SYS_POST_UART static const int bauds[] = CONFIG_SYS_BAUDRATE_TABLE; diff --git a/include/serial.h b/include/serial.h index a8d23f5..14f863e 100644 --- a/include/serial.h +++ b/include/serial.h @@ -20,6 +20,8 @@ struct serial_device { struct serial_device *next; }; +void default_serial_puts(const char *s); + extern struct serial_device serial_smc_device; extern struct serial_device serial_scc_device; extern struct serial_device *default_serial_console(void); |