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

39 lines
788 B
Plaintext

# Atmel SAM USART configuration options
# Copyright (c) 2016 Piotr Mienkowski
# SPDX-License-Identifier: Apache-2.0
menuconfig USART_SAM
bool "Atmel SAM MCU family USART driver"
depends on SOC_FAMILY_SAM
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help
This option enables the USARTx driver for Atmel SAM MCUs.
# ---------- Port 0 ----------
config USART_SAM_PORT_0
bool "Enable USART0"
depends on USART_SAM
help
Enable USART0 at boot
# ---------- Port 1 ----------
config USART_SAM_PORT_1
bool "Enable USART1"
depends on USART_SAM
help
Enable USART1 at boot
# ---------- Port 2 ----------
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