Skip to content

Commit 5059632

Browse files
ttmutkartben
authored andcommitted
drivers: serial: uart_max32: Add async mode support
This commit adds asynchronous mode support to MAX32 UART driver. Each direction uses a single DMA channel that is assigned in devicetree configuration. Asynchronous mode also depends on interrupts to refresh receive timeouts. Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
1 parent 70d5d38 commit 5059632

File tree

3 files changed

+562
-26
lines changed

3 files changed

+562
-26
lines changed

drivers/serial/Kconfig.max32

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ config UART_MAX32
1010
select SERIAL_HAS_DRIVER
1111
select SERIAL_SUPPORT_INTERRUPT
1212
select PINCTRL
13+
select SERIAL_SUPPORT_ASYNC if DT_HAS_ADI_MAX32_DMA_ENABLED
14+
select DMA if UART_ASYNC_API
1315
help
1416
This option enables the UART driver for MAX32 family of
1517
processors.

0 commit comments

Comments
 (0)