summaryrefslogtreecommitdiffstats
path: root/plat/xilinx/common/include/plat_console.h
blob: 0f8320e05fee348bb61f28a86fe07473429ed6fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Copyright (c) 2023, Advanced Micro Devices, Inc. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef PLAT_DT_UART_H
#define PLAT_DT_UART_H

#define DT_UART_DCC_COMPAT	"arm,dcc"

#if defined(PLAT_zynqmp)
#define DT_UART_COMPAT	"xlnx,zynqmp-uart"
#else
#define DT_UART_COMPAT	"arm,pl011"
#endif

typedef struct dt_uart_info_s {
	char compatible[30];
	uintptr_t base;
	uint32_t baud_rate;
	int32_t status;
} dt_uart_info_t;

void setup_console(void);

#endif /* PLAT_DT_UART_H */