blob: 0f8320e05fee348bb61f28a86fe07473429ed6fc [file] [log] [blame]
Prasad Kummarib72494e2023-09-19 22:15:05 +05301/*
2 * Copyright (c) 2023, Advanced Micro Devices, Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef PLAT_DT_UART_H
8#define PLAT_DT_UART_H
9
10#define DT_UART_DCC_COMPAT "arm,dcc"
11
12#if defined(PLAT_zynqmp)
13#define DT_UART_COMPAT "xlnx,zynqmp-uart"
14#else
15#define DT_UART_COMPAT "arm,pl011"
16#endif
17
18typedef struct dt_uart_info_s {
19 char compatible[30];
20 uintptr_t base;
21 uint32_t baud_rate;
22 int32_t status;
23} dt_uart_info_t;
24
25void setup_console(void);
26
27#endif /* PLAT_DT_UART_H */