Skip to contentSkip to conversation

tty/serial: add support for Xilinx PS UART

PATCH New [email protected] 1 participant 1 message Apr 30, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v6 1/1 tty/serial: add support for Xilinx PS UART

From: John Linn <[email protected]>

The Xilinx PS Uart is used on the new ARM based SoC. This UART is not compatible with others such that a seperate driver is required.

---

V6

Removed legal footer issues. My apologies Greg.
2nd send really has it removed. Thanks Greg KH.

V5 Changes

Removed NO_IRQ which was causing a compile error for non-ARM architectures as found by Greg KH.

V4 Changes

Small update based on input from Alan Cox in the area of the baud rate setup. Thanks for his input and patience.

V3 Changes

Minor updates based on input from Michal Simek and Joe Perches. Mostly formatting changes other than minor OF change from Michal. Thanks for their input.

V2 Changes

Updated based on Alan Cox and Greg KH comments. Thanks for their input. I hope I corrected everything as expected.

1. Now using dynamic device nodes so Doc*/devices.txt removed from patch.
2. Other minor updates based on Alan's input.

 drivers/tty/serial/Kconfig         |   13 +
 drivers/tty/serial/Makefile        |    1 +
 drivers/tty/serial/xilinx_uartps.c | 1113 ++++++++++++++++++++++++++++++++++++
 include/linux/serial_core.h        |    3 +
 4 files changed, 1130 insertions(+), 0 deletions(-)
 create mode 100644 drivers/tty/serial/xilinx_uartps.c
drivers/tty/serial/Kconfig +13 -0
index 80484af..84876ec 100644
@@ -1612,4 +1612,17 @@ config SERIAL_MXS_AUART_CONSOLE
 	help
 	  Enable a MXS AUART port to be the system console.
 
+config SERIAL_XILINX_PS_UART
+	tristate "Xilinx PS UART support"
+	select SERIAL_CORE
+	help
+	  This driver supports the Xilinx PS UART port.
+
+config SERIAL_XILINX_PS_UART_CONSOLE
+	bool "Xilinx PS UART console support"
+	depends on SERIAL_XILINX_PS_UART=y
+	select SERIAL_CORE_CONSOLE
+	help
+	  Enable a Xilinx PS UART port to be the system console.
+
 endmenu
drivers/tty/serial/Makefile +1 -0
index fee0690..aafddf1 100644
@@ -94,3 +94,4 @@ obj-$(CONFIG_SERIAL_IFX6X60)  	+= ifx6x60.o
 obj-$(CONFIG_SERIAL_PCH_UART)	+= pch_uart.o
 obj-$(CONFIG_SERIAL_MSM_SMD)	+= msm_smd_tty.o
 obj-$(CONFIG_SERIAL_MXS_AUART) += mxs-auart.o
+obj-$(CONFIG_SERIAL_XILINX_PS_UART) += xilinx_uartps.o
drivers/tty/serial/xilinx_uartps.c new file +1113 -0

1,113 lines not on this page · raw message

include/linux/serial_core.h +3 -0
index 758c5b0..95d479b 100644
@@ -202,6 +202,9 @@
 /* VIA VT8500 SoC */
 #define PORT_VT8500	97
 
+/* Xilinx PSS UART */
+#define PORT_XUARTPS	98
+
 #ifdef __KERNEL__
 
 #include <linux/compiler.h>
Signature · 1 line
1.5.4.7