Skip to content

Commit eb07e3a

Browse files
Kartik Rajputgregkh
authored andcommitted
serial: tegra-utc: Add driver for Tegra UART Trace Controller (UTC)
The Tegra264 SoC supports the UART Trace Controller (UTC), which allows multiple firmware clients (up to 16) to share a single physical UART. Each client is provided with its own interrupt and has access to a 128-character wide FIFO for both transmit (TX) and receive (RX) operations. Add tegra-utc driver to support Tegra UART Trace Controller (UTC) client. Signed-off-by: Kartik Rajput <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5b28371 commit eb07e3a

File tree

3 files changed

+649
-0
lines changed

3 files changed

+649
-0
lines changed

drivers/tty/serial/Kconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,29 @@ config SERIAL_TEGRA_TCU_CONSOLE
287287

288288
If unsure, say Y.
289289

290+
config SERIAL_TEGRA_UTC
291+
tristate "NVIDIA Tegra UART Trace Controller"
292+
depends on ARCH_TEGRA || COMPILE_TEST
293+
select SERIAL_CORE
294+
help
295+
Support for Tegra UTC (UART Trace controller) client serial port.
296+
297+
UTC is a HW based serial port that allows multiplexing multiple data
298+
streams of up to 16 UTC clients into a single hardware serial port.
299+
300+
config SERIAL_TEGRA_UTC_CONSOLE
301+
bool "Support for console on a Tegra UTC serial port"
302+
depends on SERIAL_TEGRA_UTC
303+
select SERIAL_CORE_CONSOLE
304+
default SERIAL_TEGRA_UTC
305+
help
306+
If you say Y here, it will be possible to use a Tegra UTC client as
307+
the system console (the system console is the device which receives
308+
all kernel messages and warnings and which allows logins in single
309+
user mode).
310+
311+
If unsure, say Y.
312+
290313
config SERIAL_MAX3100
291314
tristate "MAX3100/3110/3111/3222 support"
292315
depends on SPI

drivers/tty/serial/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ obj-$(CONFIG_SERIAL_STM32) += stm32-usart.o
8686
obj-$(CONFIG_SERIAL_SUNPLUS) += sunplus-uart.o
8787
obj-$(CONFIG_SERIAL_TEGRA) += serial-tegra.o
8888
obj-$(CONFIG_SERIAL_TEGRA_TCU) += tegra-tcu.o
89+
obj-$(CONFIG_SERIAL_TEGRA_UTC) += tegra-utc.o
8990
obj-$(CONFIG_SERIAL_TIMBERDALE) += timbuart.o
9091
obj-$(CONFIG_SERIAL_TXX9) += serial_txx9.o
9192
obj-$(CONFIG_SERIAL_UARTLITE) += uartlite.o

0 commit comments

Comments
 (0)