zephyr/drivers/serial/Kconfig.uart_sam
Gerson Fernando Budke 8480627d14 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>
2020-03-10 14:43:36 +02:00

102 lines
1.9 KiB
Plaintext

# Atmel SAM UART configuration options
# Copyright (c) 2017 Piotr Mienkowski
# Copyright (c) 2018 Justin Watson
# SPDX-License-Identifier: Apache-2.0
menuconfig UART_SAM
bool "Atmel SAM MCU family UART driver"
depends on SOC_FAMILY_SAM
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help
This option enables the UARTx driver for Atmel SAM MCUs.
# ---------- Port 0 ----------
config UART_SAM_PORT_0
bool "Enable UART0"
depends on UART_SAM
help
Enable UART0 at boot.
# ---------- Port 1 ----------
config UART_SAM_PORT_1
bool "Enable UART1"
depends on UART_SAM
help
Enable UART1 at boot.
choice UART_SAM_PORT_1_PIN_TX
prompt "TX pin"
depends on UART_SAM_PORT_1
depends on SOC_SERIES_SAME70 || \
SOC_SERIES_SAMV71
config UART_SAM_PORT_1_PIN_TX_PA4
bool "PA4"
config UART_SAM_PORT_1_PIN_TX_PA6
bool "PA6"
config UART_SAM_PORT_1_PIN_TX_PD26
bool "PD26"
endchoice
# ---------- Port 2 ----------
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
# ---------- Port 3 ----------
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_SAM_PORT_3_PIN_TX
prompt "TX pin"
depends on UART_SAM_PORT_3
depends on SOC_SERIES_SAME70 || \
SOC_SERIES_SAMV71
config UART_SAM_PORT_3_PIN_TX_PD30
bool "PD30"
config UART_SAM_PORT_3_PIN_TX_PD31
bool "PD31"
endchoice
# ---------- Port 4 ----------
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_SAM_PORT_4_PIN_TX
prompt "TX pin"
depends on UART_SAM_PORT_4
depends on SOC_SERIES_SAME70 || \
SOC_SERIES_SAMV71
config UART_SAM_PORT_4_PIN_TX_PD3
bool "PD3"
config UART_SAM_PORT_4_PIN_TX_PD19
bool "PD19"
endchoice