blob: f0fb4428e2683f05fce1fdf677e71564958f6858 [file] [log] [blame]
jason-ch chenfa82b9b2021-11-16 09:48:20 +08001/*
2 * Copyright (c) 2022, MediaTek Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef __PLAT_UART_H__
8#define __PLAT_UART_H__
9
10/* UART error code */
11#define UART_DONE U(0)
12#define UART_PM_ERROR U(1)
13
14/* UART HW information */
15#ifndef HW_SUPPORT_UART_PORTS
16#define HW_SUPPORT_UART_PORTS (2U) /* the UART PORTs current HW have */
17#endif
18#define MTK_UART_SEND_SLEEP_REQ (1U) /* Request uart to sleep */
19#define MTK_UART_SLEEP_ACK_IDLE (1U) /* uart in idle state */
20#define MTK_UART_WAIT_ACK_TIMES (50U)
21
22#define UART_BASE0 (0x11002000)
23#define UART_BASE1 (0x11003000)
24
25#endif /* __PLAT_UART_H__ */