zephyr/drivers/serial/Kconfig.intel_lw
Teoh Shi Lin bfa0b52a84 drivers: serial: uart_intel_lw: add driver
Enable driver for intel lw uart.

Changes from review:
- refactor spinlock to inside of loop
- use menuconfig for kconfig
- add CONFIG_UART_INTEL_LW_AUTO_LINE_CTRL_POLL

Signed-off-by: Teoh Shi Lin <shi.lin.teoh@intel.com>
2023-10-21 11:54:23 +02:00

31 lines
1 KiB
Plaintext

# Copyright (c) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
menuconfig UART_INTEL_LW
bool "Intel Lightweight UART driver"
depends on DT_HAS_INTEL_LW_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help
Enable the Intel Lightweight UART driver, that can be built into Intel NiosV CPU designs.
if UART_INTEL_LW
config UART_INTEL_LW_EOP
bool "Include end of packet register"
depends on UART_DRV_CMD && UART_INTERRUPT_DRIVEN
help
Use driver command CMD_ENABLE_EOP and CMD_DISABLE_EOP to use the feature.
config UART_INTEL_LW_AUTO_LINE_CTRL_POLL
bool "Auto set RTS signal during poll out"
depends on UART_LINE_CTRL
help
Assert RTS before polling out a character,
and deassert RTS after the character is polled out.
Please note that this is not suitable, when polling out several characters.
Please use uart_drv_cmd with CMD_POLL_ASSERT_RTS before polling out.
Then use CMD_POLL_DEASSERT_RTS to resume normal operation after polling.
endif # UART_INTEL_LW