xref: /rk3399_ARM-atf/plat/nvidia/tegra/include/drivers/spe.h (revision 896d684de648b38b6d79f337c213606021f73bb0)
1f0222c23SVarun Wadekar /*
2f0222c23SVarun Wadekar  * Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
3f0222c23SVarun Wadekar  *
4f0222c23SVarun Wadekar  * SPDX-License-Identifier: BSD-3-Clause
5f0222c23SVarun Wadekar  */
6f0222c23SVarun Wadekar 
7f0222c23SVarun Wadekar #ifndef SPE_H
8f0222c23SVarun Wadekar #define SPE_H
9f0222c23SVarun Wadekar 
10f0222c23SVarun Wadekar #include <stdint.h>
11f0222c23SVarun Wadekar 
12f0222c23SVarun Wadekar #include <drivers/console.h>
13f0222c23SVarun Wadekar 
14f0222c23SVarun Wadekar /*
15f0222c23SVarun Wadekar  * Initialize a new spe console instance and register it with the console
16f0222c23SVarun Wadekar  * framework. The |console| pointer must point to storage that will be valid
17f0222c23SVarun Wadekar  * for the lifetime of the console, such as a global or static local variable.
18f0222c23SVarun Wadekar  * Its contents will be reinitialized from scratch.
19f0222c23SVarun Wadekar  */
20f0222c23SVarun Wadekar int console_spe_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud,
21*7b8fe2deSAndre Przywara 			 console_t *console);
22f0222c23SVarun Wadekar 
23f0222c23SVarun Wadekar #endif /* SPE_H */
24