drivers: serial: Kconfig.usart_sam: Fix number of ports
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:
parent
8480627d14
commit
da72a3028e
|
@ -32,5 +32,7 @@ config USART_SAM_PORT_1
|
|||
config USART_SAM_PORT_2
|
||||
bool "Enable USART2"
|
||||
depends on USART_SAM
|
||||
depends on SOC_SERIES_SAME70 || \
|
||||
SOC_SERIES_SAMV71
|
||||
help
|
||||
Enable USART2 at boot
|
||||
|
|
Loading…
Reference in a new issue