diff options
author | Prasad Kummari <prasad.kummari@amd.com> | 2023-10-04 11:37:51 +0530 |
---|---|---|
committer | Michal Šimek <michal.simek@amd.com> | 2023-10-04 10:23:04 +0200 |
commit | e2ef1dfcdbef7e448e9dd96852ffb8489c187d34 (patch) | |
tree | 2e0e064e0efc696945acf46576e18334fdb72656 /plat | |
parent | bc9e233a7734c3bfd1d10f7fc6e393b4653932f0 (diff) |
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 <prasad.kummari@amd.com>
Change-Id: I27dd8b1559beb0cf7b872de037adc95a948ecc2f
Diffstat (limited to 'plat')
-rw-r--r-- | plat/xilinx/versal_net/bl31_versal_net_setup.c | 2 | ||||
-rw-r--r-- | plat/xilinx/versal_net/include/versal_net_def.h | 2 |
2 files changed, 2 insertions, 2 deletions
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 |