drivers/serial/Kconfig: Split serial Rx/Tx DMA.

This commit is contained in:
David Sidrane 2019-12-03 07:06:30 -06:00 committed by Gregory Nutt
parent d87295f328
commit f822107efb
4 changed files with 310 additions and 114 deletions

View file

@ -550,14 +550,14 @@ config UART_TXDMA
default n
select SERIAL_TXDMA
---help---
Enable DMA transfers on UART
Enable Tx DMA transfers on UART
config UART_RXDMA
bool "UART Rx DMA support"
default n
select SERIAL_RXDMA
---help---
Enable DMA transfers on UART
Enable Rx DMA transfers on UART
endmenu

View file

@ -133,12 +133,19 @@ config LPUART0_OFLOWCONTROL
---help---
Enable CTS flow control
config LPUART0_DMA
bool "LPUART0 DMA support"
config LPUART0_RXDMA
bool "LPUART0 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers
Enable Rx DMA transfers on LPUART0
config LPUART0_TXDMA
bool "LPUART0 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on LPUART0
endmenu
@ -222,12 +229,19 @@ config LPUART1_OFLOWCONTROL
---help---
Enable CTS flow control
config LPUART1_DMA
bool "LPUART1 DMA support"
config LPUART1_RXDMA
bool "LPUART1 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers
Enable Rx DMA transfers on LPUART1
config LPUART1_TXDMA
bool "LPUART1 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on LPUART1
endmenu
@ -313,12 +327,19 @@ config LPUART2_OFLOWCONTROL
---help---
Enable CTS flow control
config LPUART2_DMA
bool "LPUART2 DMA support"
config LPUART2_RXDMA
bool "LPUART2 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers
Enable Rx DMA transfers on LPUART2
config LPUART2_TXDMA
bool "LPUART2 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on LPUART2
endmenu
@ -402,12 +423,19 @@ config LPUART3_OFLOWCONTROL
---help---
Enable CTS flow control
config LPUART3_DMA
bool "LPUART3 DMA support"
config LPUART3_RXDMA
bool "LPUART3 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers
Enable Rx DMA transfers on LPUART3
config LPUART3_TXDMA
bool "LPUART3 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on LPUART3
endmenu
@ -491,12 +519,19 @@ config LPUART4_OFLOWCONTROL
---help---
Enable CTS flow control
config LPUART4_DMA
bool "LPUART4 DMA support"
config LPUART4_RXDMA
bool "LPUART4 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers
Enable Rx DMA transfers on LPUART4
config LPUART4_TXDMA
bool "LPUART4 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on LPUART4
endmenu
@ -580,12 +615,19 @@ config LPUART5_OFLOWCONTROL
---help---
Enable CTS flow control
config LPUART5_DMA
bool "LPUART5 DMA support"
config LPUART5_RXDMA
bool "LPUART5 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers
Enable Rx DMA transfers on LPUART5
config LPUART5_TXDMA
bool "LPUART5 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on LPUART5
endmenu
@ -669,12 +711,19 @@ config LPUART6_OFLOWCONTROL
---help---
Enable CTS flow control
config LPUART6_DMA
bool "LPUART6 DMA support"
config LPUART6_RXDMA
bool "LPUART6 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers
Enable Rx DMA transfers on LPUART6
config LPUART6_TXDMA
bool "LPUART6 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on LPUART6
endmenu
@ -758,12 +807,19 @@ config LPUART7_OFLOWCONTROL
---help---
Enable CTS flow control
config LPUART7_DMA
bool "LPUART7 DMA support"
config LPUART7_RXDMA
bool "LPUART7 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers
Enable Rx DMA transfers on LPUART7
config LPUART7_TXDMA
bool "LPUART7 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on LPUART7
endmenu
@ -847,11 +903,18 @@ config LPUART8_OFLOWCONTROL
---help---
Enable CTS flow control
config LPUART8_DMA
bool "LPUART8 DMA support"
config LPUART8_RXDMA
bool "LPUART8 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers
Enable Rx DMA transfers on LPUART8
config LPUART8_TXDMA
bool "LPUART8 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on LPUART8
endmenu

View file

@ -109,12 +109,19 @@ config UART0_OFLOWCONTROL
---help---
Enable UART0 CTS flow control
config UART0_DMA
bool "UART0 DMA support"
config UART0_RXDMA
bool "UART0 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on UART0
Enable Rx DMA transfers on UART0
config UART0_TXDMA
bool "UART0 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on UART0
endmenu
@ -174,12 +181,19 @@ config UART1_OFLOWCONTROL
---help---
Enable UART1 CTS flow control
config UART1_DMA
bool "UART1 DMA support"
config UART1_RXDMA
bool "UART1 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on UART1
Enable Rx DMA transfers on UART1
config UART1_TXDMA
bool "UART1 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on UART1
endmenu
@ -239,12 +253,19 @@ config UART2_OFLOWCONTROL
---help---
Enable UART2 CTS flow control
config UART2_DMA
bool "UART2 DMA support"
config UART2_RXDMA
bool "UART2 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on UART2
Enable Rx DMA transfers on UART2
config UART2_TXDMA
bool "UART2 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on UART2
endmenu
@ -304,12 +325,19 @@ config UART3_OFLOWCONTROL
---help---
Enable UART3 CTS flow control
config UART3_DMA
bool "UART3 DMA support"
config UART3_RXDMA
bool "UART3 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on UART3
Enable Rx DMA transfers on UART3
config UART3_TXDMA
bool "UART3 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on UART3
endmenu
@ -369,12 +397,19 @@ config UART4_OFLOWCONTROL
---help---
Enable UART4 CTS flow control
config UART4_DMA
bool "UART4 DMA support"
config UART4_RXDMA
bool "UART4 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on UART4
Enable Rx DMA transfers on UART4
config UART4_TXDMA
bool "UART4 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on UART4
endmenu
@ -434,12 +469,19 @@ config UART5_OFLOWCONTROL
---help---
Enable UART5 CTS flow control
config UART5_DMA
bool "UART5 DMA support"
config UART5_RXDMA
bool "UART5 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on UART5
Enable Rx DMA transfers on UART5
config UART5_TXDMA
bool "UART5 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on UART5
endmenu
@ -499,12 +541,19 @@ config UART6_OFLOWCONTROL
---help---
Enable UART6 CTS flow control
config UART6_DMA
bool "UART6 DMA support"
config UART6_RXDMA
bool "UART6 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on UART6
Enable Rx DMA transfers on UART6
config UART6_TXDMA
bool "UART6 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on UART6
endmenu
@ -564,12 +613,19 @@ config UART7_OFLOWCONTROL
---help---
Enable UART7 CTS flow control
config UART7_DMA
bool "UART7 DMA support"
config UART7_RXDMA
bool "UART7 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on UART7
Enable Rx DMA transfers on UART7
config UART7_TXDMA
bool "UART7 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on UART7
endmenu
@ -629,11 +685,18 @@ config UART8_OFLOWCONTROL
---help---
Enable UART8 CTS flow control
config UART8_DMA
bool "UART8 DMA support"
config UART8_RXDMA
bool "UART8 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on UART8
Enable Rx DMA transfers on UART8
config UART8_TXDMA
bool "UART8 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on UART8
endmenu

View file

@ -109,12 +109,19 @@ config USART0_OFLOWCONTROL
---help---
Enable USART0 CTS flow control
config USART0_DMA
bool "USART0 DMA support"
config USART0_RXDMA
bool "USART0 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on USART0
Enable Rx DMA transfers on USART0
config USART0_TXDMA
bool "USART0 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on USART0
endmenu
@ -174,12 +181,19 @@ config USART1_OFLOWCONTROL
---help---
Enable USART1 CTS flow control
config USART1_DMA
bool "USART1 DMA support"
config USART1_RXDMA
bool "USART1 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on USART1
Enable Rx DMA transfers on USART1
config USART1_TXDMA
bool "USART1 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on USART1
endmenu
@ -239,12 +253,19 @@ config USART2_OFLOWCONTROL
---help---
Enable USART2 CTS flow control
config USART2_DMA
bool "USART2 DMA support"
config USART2_RXDMA
bool "USART2 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on USART2
Enable Rx DMA transfers on USART2
config USART2_TXDMA
bool "USART2 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on USART2
endmenu
menu "USART3 Configuration"
@ -303,12 +324,19 @@ config USART3_OFLOWCONTROL
---help---
Enable USART3 CTS flow control
config USART3_DMA
bool "USART3 DMA support"
config USART3_RXDMA
bool "USART3 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on USART3
Enable Rx DMA transfers on USART3
config USART3_TXDMA
bool "USART3 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on USART3
endmenu
@ -368,12 +396,19 @@ config USART4_OFLOWCONTROL
---help---
Enable USART4 CTS flow control
config USART4_DMA
bool "USART4 DMA support"
config USART4_RXDMA
bool "USART4 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on USART4
Enable Rx DMA transfers on USART4
config USART4_TXDMA
bool "USART4 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on USART4
endmenu
@ -433,12 +468,19 @@ config USART5_OFLOWCONTROL
---help---
Enable USART5 CTS flow control
config USART5_DMA
bool "USART5 DMA support"
config USART5_RXDMA
bool "USART5 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on USART5
Enable Rx DMA transfers on USART5
config USART5_TXDMA
bool "USART5 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on USART5
endmenu
@ -498,12 +540,19 @@ config USART6_OFLOWCONTROL
---help---
Enable USART6 CTS flow control
config USART6_DMA
bool "USART6 DMA support"
config USART6_RXDMA
bool "USART6 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on USART6
Enable Rx DMA transfers on USART6
config USART6_TXDMA
bool "USART6 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on USART6
endmenu
@ -563,12 +612,19 @@ config USART7_OFLOWCONTROL
---help---
Enable USART7 CTS flow control
config USART7_DMA
bool "USART7 DMA support"
config USART7_RXDMA
bool "USART7 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on USART7
Enable Rx DMA transfers on USART7
config USART7_TXDMA
bool "USART7 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on USART7
endmenu
@ -628,12 +684,19 @@ config USART8_OFLOWCONTROL
---help---
Enable USART8 CTS flow control
config USART8_DMA
bool "USART8 DMA support"
config USART8_RXDMA
bool "USART8 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on USART8
Enable Rx DMA transfers on USART8
config USART8_TXDMA
bool "USART8 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on USART8
endmenu
@ -693,11 +756,18 @@ config USART9_OFLOWCONTROL
---help---
Enable USART9 CTS flow control
config USART9_DMA
bool "USART9 DMA support"
config USART9_RXDMA
bool "USART9 Rx DMA support"
default n
select SERIAL_DMA
select SERIAL_RXDMA
---help---
Enable DMA transfers on USART9
Enable Rx DMA transfers on USART9
config USART9_TXDMA
bool "USART9 Tx DMA support"
default n
select SERIAL_TXDMA
---help---
Enable Tx DMA transfers on USART9
endmenu