aboutsummaryrefslogtreecommitdiff
path: root/plat/imx/common/include/imx_uart.h
blob: d2c396888615eafb76160b409bf94e127f1ed07d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef IMX_UART_H
#define IMX_UART_H

#include <console.h>

#ifndef __ASSEMBLY__

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

int console_uart_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud,
			   console_uart_t *console);
#endif /*__ASSEMBLY__*/

#endif  /* IMX_UART_H */