2 * Copyright (C) 2010 Samsung Electronics
3 * Sanghee Kim <sh0130.kim@samsung.com>
9 static struct serial_device *serial_current = NULL;
11 struct serial_device *__default_serial_console(void)
13 return &s5pc1xx_serial2_device;
16 struct serial_device *default_serial_console(void)
17 __attribute__((weak, alias("__default_serial_console")));
19 void serial_putc(const char c)
21 if (!serial_current) {
22 struct serial_device *dev = default_serial_console();
28 serial_current->putc(c);
31 void serial_puts(const char *s)
33 if (!serial_current) {
34 struct serial_device *dev = default_serial_console();
40 serial_current->puts(s);
45 if (!serial_current) {
46 struct serial_device *dev = default_serial_console();
51 return serial_current->init();