blob: 1b52e2f0b8878223c875573d9e2840d8a0fe511d [file] [log] [blame]
Bai Ping06e325e2018-10-28 00:12:34 +08001/*
Anson Huang1fc11bd2019-01-15 14:27:10 +08002 * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
Bai Ping06e325e2018-10-28 00:12:34 +08003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef IMX_UART_H
8#define IMX_UART_H
9
Antonio Nino Diaze0f90632018-12-14 00:18:21 +000010#include <drivers/console.h>
Bai Ping06e325e2018-10-28 00:12:34 +080011
12#ifndef __ASSEMBLY__
13
14typedef struct {
15 console_t console;
16 uintptr_t base;
17} console_uart_t;
18
Anson Huang1fc11bd2019-01-15 14:27:10 +080019int console_imx_uart_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud,
Bai Ping06e325e2018-10-28 00:12:34 +080020 console_uart_t *console);
21#endif /*__ASSEMBLY__*/
22
23#endif /* IMX_UART_H */