Prepare v2023.10
[platform/kernel/u-boot.git] / drivers / serial / serial_xuartlite.c
index 9780a44..b6197da 100644 (file)
@@ -143,7 +143,7 @@ U_BOOT_DRIVER(serial_uartlite) = {
 
 static inline void _debug_uart_init(void)
 {
-       struct uartlite *regs = (struct uartlite *)CONFIG_DEBUG_UART_BASE;
+       struct uartlite *regs = (struct uartlite *)CONFIG_VAL(DEBUG_UART_BASE);
        int ret;
 
        uart_out32(&regs->control, 0);
@@ -159,7 +159,7 @@ static inline void _debug_uart_init(void)
 
 static inline void _debug_uart_putc(int ch)
 {
-       struct uartlite *regs = (struct uartlite *)CONFIG_DEBUG_UART_BASE;
+       struct uartlite *regs = (struct uartlite *)CONFIG_VAL(DEBUG_UART_BASE);
 
        while (uart_in32(&regs->status) & SR_TX_FIFO_FULL)
                ;