1# Copyright (c) 2023 Intel Corporation
2# SPDX-License-Identifier: Apache-2.0
3
4menuconfig UART_INTEL_LW
5	bool "Intel Lightweight UART driver"
6	depends on DT_HAS_INTEL_LW_UART_ENABLED
7	select SERIAL_HAS_DRIVER
8	select SERIAL_SUPPORT_INTERRUPT
9	help
10	  Enable the Intel Lightweight UART driver, that can be built into Intel NiosV CPU designs.
11
12if UART_INTEL_LW
13
14config UART_INTEL_LW_EOP
15	bool "Include end of packet register"
16	depends on UART_DRV_CMD && UART_INTERRUPT_DRIVEN
17	help
18	  Use driver command CMD_ENABLE_EOP and CMD_DISABLE_EOP to use the feature.
19
20config UART_INTEL_LW_AUTO_LINE_CTRL_POLL
21	bool "Auto set RTS signal during poll out"
22	depends on UART_LINE_CTRL
23	help
24	  Assert RTS before polling out a character,
25	  and deassert RTS after the character is polled out.
26	  Please note that this is not suitable, when polling out several characters.
27	  Please use uart_drv_cmd with CMD_POLL_ASSERT_RTS before polling out.
28	  Then use CMD_POLL_DEASSERT_RTS to resume normal operation after polling.
29
30endif # UART_INTEL_LW
31