1*91f16700Schasinglulu /* 2*91f16700Schasinglulu * Copyright (c) 2015-2019, Renesas Electronics Corporation. All rights reserved. 3*91f16700Schasinglulu * 4*91f16700Schasinglulu * SPDX-License-Identifier: BSD-3-Clause 5*91f16700Schasinglulu */ 6*91f16700Schasinglulu 7*91f16700Schasinglulu #ifndef RCAR_PRINTF_H 8*91f16700Schasinglulu #define RCAR_PRINTF_H 9*91f16700Schasinglulu 10*91f16700Schasinglulu #ifndef __ASSEMBLER__ 11*91f16700Schasinglulu 12*91f16700Schasinglulu #include <stdint.h> 13*91f16700Schasinglulu 14*91f16700Schasinglulu /* 15*91f16700Schasinglulu * Initialize a new rcar console instance and register it with the console 16*91f16700Schasinglulu * framework. The |console| pointer must point to storage that will be valid 17*91f16700Schasinglulu * for the lifetime of the console, such as a global or static local variable. 18*91f16700Schasinglulu * Its contents will be reinitialized from scratch. 19*91f16700Schasinglulu */ 20*91f16700Schasinglulu int console_rcar_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud, 21*91f16700Schasinglulu console_t *console); 22*91f16700Schasinglulu 23*91f16700Schasinglulu #endif /*__ASSEMBLER__*/ 24*91f16700Schasinglulu 25*91f16700Schasinglulu #endif /* RCAR_PRINTF_H */ 26