summaryrefslogtreecommitdiff
path: root/core/include/console.h
blob: b80e9e68142c02a148f59f6f4e7a372d6b316dca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: BSD-2-Clause */
/*
 * Copyright (c) 2014, Linaro Limited
 * All rights reserved.
 */

#ifndef CONSOLE_H
#define CONSOLE_H

#include <compiler.h>

void console_init(void);
void console_putc(int ch);
void console_flush(void);

struct serial_chip;
void register_serial_console(struct serial_chip *chip);

#ifdef CFG_DT
void configure_console_from_dt(unsigned long phys_fdt);
#else
static inline void configure_console_from_dt(unsigned long phys_fdt __unused)
{}
#endif /* !CFG_DT */

#endif /* CONSOLE_H */