1# Copyright (c) 2017-2023 Intel Corporation
2# SPDX-License-Identifier: Apache-2.0
3
4config UART_ALTERA_JTAG
5	bool "Nios II/NiosV JTAG UART driver"
6	default y
7	depends on DT_HAS_ALTR_JTAG_UART_ENABLED
8	select SERIAL_HAS_DRIVER
9	help
10	  Enable the Altera JTAG UART driver, built in to many Nios II/NiosV CPU
11	  designs.
12
13config UART_ALTERA_JTAG_HAL
14	bool "JTAG UART driver using Altera HAL API"
15	depends on UART_ALTERA_JTAG && NIOS2
16	help
17	  This is not available for NiosV CPU, as only the HAL for Nios II CPU is ported.
18	  Enabling this will disable poll_in and interrupt driven api.
19
20config UART_ALTERA_JTAG_SUPPORT_INTERRUPT
21	bool
22	depends on UART_ALTERA_JTAG
23	default y if !UART_ALTERA_JTAG_HAL
24	select SERIAL_SUPPORT_INTERRUPT
25	help
26	  This is a helper config. Altera JTAG UART driver will support interrupt,
27	  if UART_ALTERA_JTAG_HAL is disabled.
28