diff options
author | Pali Rohár <pali@kernel.org> | 2022-05-27 22:15:24 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-06-06 18:01:21 -0400 |
commit | b62450cf229c50ad2ce819dd02a09726909cc89a (patch) | |
tree | a8315fd7fca59a0cff90ba0343d73c3f15e18c50 /drivers/serial/serial_bcm6345.c | |
parent | 24272ffd505be0597703032dbdd8ffdd7ef7a1a9 (diff) | |
download | u-boot-b62450cf229c50ad2ce819dd02a09726909cc89a.tar.gz u-boot-b62450cf229c50ad2ce819dd02a09726909cc89a.tar.bz2 u-boot-b62450cf229c50ad2ce819dd02a09726909cc89a.zip |
serial: Replace CONFIG_DEBUG_UART_BASE by CONFIG_VAL(DEBUG_UART_BASE)
CONFIG_VAL(DEBUG_UART_BASE) expands to CONFIG_DEBUG_UART_BASE or
CONFIG_SPL_DEBUG_UART_BASE or CONFIG_TPL_DEBUG_UART_BASE and allows boards
to set different values for SPL, TPL and U-Boot Proper.
For ns16550 driver this support is there since commit d293759d55cc
("serial: ns16550: Add support for SPL_DEBUG_UART_BASE").
Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'drivers/serial/serial_bcm6345.c')
-rw-r--r-- | drivers/serial/serial_bcm6345.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/serial_bcm6345.c b/drivers/serial/serial_bcm6345.c index f08e91ff3b..2359656a23 100644 --- a/drivers/serial/serial_bcm6345.c +++ b/drivers/serial/serial_bcm6345.c @@ -269,7 +269,7 @@ U_BOOT_DRIVER(bcm6345_serial) = { #ifdef CONFIG_DEBUG_UART_BCM6345 static inline void _debug_uart_init(void) { - void __iomem *base = (void __iomem *)CONFIG_DEBUG_UART_BASE; + void __iomem *base = (void __iomem *)CONFIG_VAL(DEBUG_UART_BASE); bcm6345_serial_init(base, CONFIG_DEBUG_UART_CLOCK, CONFIG_BAUDRATE); } @@ -285,7 +285,7 @@ static inline void wait_xfered(void __iomem *base) static inline void _debug_uart_putc(int ch) { - void __iomem *base = (void __iomem *)CONFIG_DEBUG_UART_BASE; + void __iomem *base = (void __iomem *)CONFIG_VAL(DEBUG_UART_BASE); wait_xfered(base); writel(ch, base + UART_FIFO_REG); |