drivers: serial: Kconfig.uart_sam: Enable support to SAMV71

SAMV71 uses same driver of SAME70 and this enables the feature. Since
driver is shared with other devices, it must be enabled conditionally
based on the number of instances. This avoid show invalid options for
devices with lower port count like SAM4S/SAM4E.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
Gerson Fernando Budke 2020-02-07 23:19:29 -03:00 committed by Johan Hedberg
parent 24a7cdea98
commit 8480627d14

View file

@ -28,10 +28,11 @@ config UART_SAM_PORT_1
help
Enable UART1 at boot.
choice UART_SAME70_PORT_1_PIN_TX
choice UART_SAM_PORT_1_PIN_TX
prompt "TX pin"
depends on SOC_SERIES_SAME70
depends on UART_SAM_PORT_1
depends on SOC_SERIES_SAME70 || \
SOC_SERIES_SAMV71
config UART_SAM_PORT_1_PIN_TX_PA4
bool "PA4"
@ -48,6 +49,8 @@ endchoice
config UART_SAM_PORT_2
bool "Enable UART2"
depends on UART_SAM
depends on SOC_SERIES_SAME70 || \
SOC_SERIES_SAMV71
help
Enable UART2 at boot
@ -56,13 +59,16 @@ config UART_SAM_PORT_2
config UART_SAM_PORT_3
bool "Enable UART3"
depends on UART_SAM
depends on SOC_SERIES_SAME70 || \
SOC_SERIES_SAMV71
help
Enable UART3 at boot
choice UART_SAME70_PORT_3_PIN_TX
choice UART_SAM_PORT_3_PIN_TX
prompt "TX pin"
depends on SOC_SERIES_SAME70
depends on UART_SAM_PORT_3
depends on SOC_SERIES_SAME70 || \
SOC_SERIES_SAMV71
config UART_SAM_PORT_3_PIN_TX_PD30
bool "PD30"
@ -76,13 +82,16 @@ endchoice
config UART_SAM_PORT_4
bool "Enable UART4"
depends on UART_SAM
depends on SOC_SERIES_SAME70 || \
SOC_SERIES_SAMV71
help
Enable UART4 at boot
choice UART_SAME70_PORT_4_PIN_TX
choice UART_SAM_PORT_4_PIN_TX
prompt "TX pin"
depends on SOC_SERIES_SAME70
depends on UART_SAM_PORT_4
depends on SOC_SERIES_SAME70 || \
SOC_SERIES_SAMV71
config UART_SAM_PORT_4_PIN_TX_PD3
bool "PD3"