xref: /rk3399_ARM-atf/include/drivers/st/stm32_console.h (revision 896d684de648b38b6d79f337c213606021f73bb0)
16d264afcSYann Gautier /*
26d264afcSYann Gautier  * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
36d264afcSYann Gautier  *
46d264afcSYann Gautier  * SPDX-License-Identifier: BSD-3-Clause
56d264afcSYann Gautier  */
66d264afcSYann Gautier 
76d264afcSYann Gautier #ifndef STM32_CONSOLE_H
86d264afcSYann Gautier #define STM32_CONSOLE_H
96d264afcSYann Gautier 
1009d40e0eSAntonio Nino Diaz #include <drivers/console.h>
116d264afcSYann Gautier 
12d5dfdeb6SJulius Werner #ifndef __ASSEMBLER__
136d264afcSYann Gautier 
146d264afcSYann Gautier #include <stdint.h>
156d264afcSYann Gautier 
166d264afcSYann Gautier /*
176d264afcSYann Gautier  * Initialize a new STM32 console instance and register it with the console
186d264afcSYann Gautier  * framework. The |console| pointer must point to storage that will be valid
196d264afcSYann Gautier  * for the lifetime of the console, such as a global or static local variable.
206d264afcSYann Gautier  * Its contents will be reinitialized from scratch.
216d264afcSYann Gautier  */
226d264afcSYann Gautier int console_stm32_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud,
23*c10db6deSAndre Przywara 			   console_t *console);
246d264afcSYann Gautier 
25d5dfdeb6SJulius Werner #endif /*__ASSEMBLER__*/
266d264afcSYann Gautier 
276d264afcSYann Gautier #endif /* STM32_CONSOLE_H */
28