forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
09950b6
commit bfa0b52
Showing
7 changed files
with
1,123 additions
and
0 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 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 |
Oops, something went wrong.