2017-03-23 08:45:32 +08:00
|
|
|
# Kconfig - Atmel SAM UART configuration options
|
|
|
|
#
|
|
|
|
# Copyright (c) 2017 Piotr Mienkowski
|
2018-02-20 13:58:07 +08:00
|
|
|
# Copyright (c) 2018 Justin Watson
|
2017-03-23 08:45:32 +08:00
|
|
|
# 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
|
2018-02-20 13:58:07 +08:00
|
|
|
select SERIAL_SUPPORT_INTERRUPT
|
2017-03-23 08:45:32 +08:00
|
|
|
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
|
2017-06-30 07:44:38 +08:00
|
|
|
Enable UART0 at boot.
|
2017-03-23 08:45:32 +08:00
|
|
|
|
|
|
|
# ---------- Port 1 ----------
|
|
|
|
|
|
|
|
config UART_SAM_PORT_1
|
|
|
|
bool "Enable UART1"
|
|
|
|
depends on UART_SAM
|
|
|
|
help
|
2017-06-30 07:44:38 +08:00
|
|
|
Enable UART1 at boot.
|
2017-03-23 08:45:32 +08:00
|
|
|
|
|
|
|
if UART_SAM_PORT_1
|
|
|
|
|
2017-05-19 05:57:02 +08:00
|
|
|
choice UART_SAME70_PORT_1_PIN_TX
|
2017-03-23 08:45:32 +08:00
|
|
|
prompt "TX pin"
|
2017-05-19 05:57:02 +08:00
|
|
|
depends on SOC_SERIES_SAME70
|
2017-03-23 08:45:32 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
endif # UART_SAM_PORT_1
|
|
|
|
|
|
|
|
# ---------- Port 2 ----------
|
|
|
|
|
|
|
|
config UART_SAM_PORT_2
|
|
|
|
bool "Enable UART2"
|
|
|
|
depends on UART_SAM
|
|
|
|
help
|
2017-06-30 07:44:38 +08:00
|
|
|
Enable UART2 at boot
|
2017-03-23 08:45:32 +08:00
|
|
|
|
|
|
|
# ---------- Port 3 ----------
|
|
|
|
|
|
|
|
config UART_SAM_PORT_3
|
|
|
|
bool "Enable UART3"
|
|
|
|
depends on UART_SAM
|
|
|
|
help
|
2017-06-30 07:44:38 +08:00
|
|
|
Enable UART3 at boot
|
2017-03-23 08:45:32 +08:00
|
|
|
|
|
|
|
if UART_SAM_PORT_3
|
|
|
|
|
2017-05-19 05:57:02 +08:00
|
|
|
choice UART_SAME70_PORT_3_PIN_TX
|
2017-03-23 08:45:32 +08:00
|
|
|
prompt "TX pin"
|
2017-05-19 05:57:02 +08:00
|
|
|
depends on SOC_SERIES_SAME70
|
2017-03-23 08:45:32 +08:00
|
|
|
|
|
|
|
config UART_SAM_PORT_3_PIN_TX_PD30
|
|
|
|
bool "PD30"
|
|
|
|
|
|
|
|
config UART_SAM_PORT_3_PIN_TX_PD31
|
|
|
|
bool "PD31"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
endif # UART_SAM_PORT_3
|
|
|
|
|
|
|
|
# ---------- Port 4 ----------
|
|
|
|
|
|
|
|
config UART_SAM_PORT_4
|
|
|
|
bool "Enable UART4"
|
|
|
|
depends on UART_SAM
|
|
|
|
help
|
2017-06-30 07:44:38 +08:00
|
|
|
Enable UART4 at boot
|
2017-03-23 08:45:32 +08:00
|
|
|
|
|
|
|
if UART_SAM_PORT_4
|
|
|
|
|
2017-05-19 05:57:02 +08:00
|
|
|
choice UART_SAME70_PORT_4_PIN_TX
|
2017-03-23 08:45:32 +08:00
|
|
|
prompt "TX pin"
|
2017-05-19 05:57:02 +08:00
|
|
|
depends on SOC_SERIES_SAME70
|
2017-03-23 08:45:32 +08:00
|
|
|
|
|
|
|
config UART_SAM_PORT_4_PIN_TX_PD3
|
|
|
|
bool "PD3"
|
|
|
|
|
|
|
|
config UART_SAM_PORT_4_PIN_TX_PD19
|
|
|
|
bool "PD19"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
endif # UART_SAM_PORT_4
|