summaryrefslogtreecommitdiff
path: root/core/arch/arm/plat-s5p6818/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/arch/arm/plat-s5p6818/main.c')
-rw-r--r--core/arch/arm/plat-s5p6818/main.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/core/arch/arm/plat-s5p6818/main.c b/core/arch/arm/plat-s5p6818/main.c
index e907ffd..45e45ba 100644
--- a/core/arch/arm/plat-s5p6818/main.c
+++ b/core/arch/arm/plat-s5p6818/main.c
@@ -55,6 +55,8 @@ static const struct thread_handlers handlers = {
.system_reset = pm_do_nothing,
};
+static struct s5p6818_uart_data console_data __early_bss;
+
const struct thread_handlers *generic_boot_get_handlers(void)
{
return &handlers;
@@ -76,19 +78,9 @@ static void main_fiq(void)
void console_init(void)
{
- s5p6818_uart_init(CONSOLE_UART_BASE,
+ s5p6818_uart_init(&console_data, CONSOLE_UART_BASE,
CONSOLE_UART_CLK_IN_HZ,
CONSOLE_BAUDRATE);
+ register_serial_console(&console_data.chip);
}
-void console_putc(int ch)
-{
- s5p6818_uart_putc(ch, CONSOLE_UART_BASE);
- if (ch == '\n')
- s5p6818_uart_putc('\r', CONSOLE_UART_BASE);
-}
-
-void console_flush(void)
-{
- s5p6818_uart_flush(CONSOLE_UART_BASE);
-}