diff options
| author | Robert Marko <[email protected]> | 2026-01-12 14:12:42 +0100 |
|---|---|---|
| committer | Eugen Hristev <[email protected]> | 2026-02-04 14:12:56 +0200 |
| commit | 52be03bdf713807fea7f362c1b9cffe9ead34c18 (patch) | |
| tree | 0a3dcf1e3c7949e58330c440e991dc0ced8d55b4 /drivers/serial | |
| parent | a155dbc9f2bb2f060531ec7f9565cde0e6d92b25 (diff) | |
serial: atmel-usart: add support for skiping debug UART init
Currently, atmel-usart does not respect CONFIG_DEBUG_UART_SKIP_INIT so
it will always configure the debug UART.
However, this is unwanted on platforms on which TF-A or some other firmware
has already configured the debug UART.
This will be used for Microchip LAN969x support, so simply return early if
CONFIG_DEBUG_UART_SKIP_INIT is set.
Signed-off-by: Robert Marko <[email protected]>
Diffstat (limited to 'drivers/serial')
| -rw-r--r-- | drivers/serial/atmel_usart.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/serial/atmel_usart.c b/drivers/serial/atmel_usart.c index fb1c76fea8d..e1db4dfe00d 100644 --- a/drivers/serial/atmel_usart.c +++ b/drivers/serial/atmel_usart.c @@ -318,6 +318,9 @@ static inline void _debug_uart_init(void) { atmel_usart3_t *usart = (atmel_usart3_t *)CONFIG_VAL(DEBUG_UART_BASE); + if (IS_ENABLED(CONFIG_DEBUG_UART_SKIP_INIT)) + return; + _atmel_serial_init(usart, CONFIG_DEBUG_UART_CLOCK, CONFIG_BAUDRATE); } |
