Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef IMX_UART_H |
| 8 | #define IMX_UART_H |
| 9 | |
| 10 | #include <console.h> |
| 11 | |
| 12 | #ifndef __ASSEMBLY__ |
| 13 | |
| 14 | typedef struct { |
| 15 | console_t console; |
| 16 | uintptr_t base; |
| 17 | } console_uart_t; |
| 18 | |
| 19 | int console_uart_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud, |
| 20 | console_uart_t *console); |
| 21 | #endif /*__ASSEMBLY__*/ |
| 22 | |
| 23 | #endif /* IMX_UART_H */ |