xref: /rk3399_ARM-atf/include/drivers/renesas/rcar/console/console.h (revision 896d684de648b38b6d79f337c213606021f73bb0)
1018358fcSMarek Vasut /*
2018358fcSMarek Vasut  * Copyright (c) 2015-2019, Renesas Electronics Corporation. All rights reserved.
3018358fcSMarek Vasut  *
4018358fcSMarek Vasut  * SPDX-License-Identifier: BSD-3-Clause
5018358fcSMarek Vasut  */
6018358fcSMarek Vasut 
7018358fcSMarek Vasut #ifndef RCAR_PRINTF_H
8018358fcSMarek Vasut #define RCAR_PRINTF_H
9018358fcSMarek Vasut 
10d5dfdeb6SJulius Werner #ifndef __ASSEMBLER__
11018358fcSMarek Vasut 
12018358fcSMarek Vasut #include <stdint.h>
13018358fcSMarek Vasut 
14018358fcSMarek Vasut /*
15018358fcSMarek Vasut  * Initialize a new rcar console instance and register it with the console
16018358fcSMarek Vasut  * framework. The |console| pointer must point to storage that will be valid
17018358fcSMarek Vasut  * for the lifetime of the console, such as a global or static local variable.
18018358fcSMarek Vasut  * Its contents will be reinitialized from scratch.
19018358fcSMarek Vasut  */
20018358fcSMarek Vasut int console_rcar_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud,
21*c01ee06bSAndre Przywara 			  console_t *console);
22018358fcSMarek Vasut 
23d5dfdeb6SJulius Werner #endif /*__ASSEMBLER__*/
24018358fcSMarek Vasut 
25018358fcSMarek Vasut #endif /* RCAR_PRINTF_H */
26