imx_uart.h 460 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
3
4
5
6
7
8
9
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef IMX_UART_H
#define IMX_UART_H

10
#include <drivers/console.h>
11

12
#ifndef __ASSEMBLER__
13
14
15
16
17
18

typedef struct {
	console_t console;
	uintptr_t base;
} console_uart_t;

19
int console_imx_uart_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud,
20
			   console_uart_t *console);
21
#endif /*__ASSEMBLER__*/
22
23

#endif  /* IMX_UART_H */