From e2ef1dfcdbef7e448e9dd96852ffb8489c187d34 Mon Sep 17 00:00:00 2001 From: Prasad Kummari Date: Wed, 4 Oct 2023 11:37:51 +0530 Subject: fix(versal-net): use correct macro name for uart baudrate Address an issue where incorrect macro name is being used for setting the UART buad rate. Updated the code to use the appropriate macro name, ensuring that baud rate name is proper. Fixes: 04a483359fef ("feat(xilinx): sync macro names") Signed-off-by: Prasad Kummari Change-Id: I27dd8b1559beb0cf7b872de037adc95a948ecc2f --- plat/xilinx/versal_net/bl31_versal_net_setup.c | 2 +- plat/xilinx/versal_net/include/versal_net_def.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plat') diff --git a/plat/xilinx/versal_net/bl31_versal_net_setup.c b/plat/xilinx/versal_net/bl31_versal_net_setup.c index aa60bbfcc..a70095d40 100644 --- a/plat/xilinx/versal_net/bl31_versal_net_setup.c +++ b/plat/xilinx/versal_net/bl31_versal_net_setup.c @@ -106,7 +106,7 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1, /* Initialize the console to provide early debug support */ rc = console_pl011_register(UART_BASE, uart_clock, - UART_BAUDATE, + UART_BAUDRATE, &versal_net_runtime_console); if (rc == 0) { panic(); diff --git a/plat/xilinx/versal_net/include/versal_net_def.h b/plat/xilinx/versal_net/include/versal_net_def.h index c2422637d..a53cad955 100644 --- a/plat/xilinx/versal_net/include/versal_net_def.h +++ b/plat/xilinx/versal_net/include/versal_net_def.h @@ -135,7 +135,7 @@ #define VERSAL_NET_UART0_BASE U(0xF1920000) #define VERSAL_NET_UART1_BASE U(0xF1930000) -#define UART_BAUDATE 115200 +#define UART_BAUDRATE 115200 #if CONSOLE_IS(pl011_1) #define UART_BASE VERSAL_NET_UART1_BASE -- cgit v1.2.3