Skip to contentSkip to conversation

rt-imx-uart: RTserial driver for the UART's on the Freescale IMX SOCs

PATCH Applied Wolfgang Grandegger 2 participants 2 messages Aug 26, 2012 – Aug 28, 2012 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rt-imx-uart: RTserial driver for the UART's on the Freescale IMX SOCs

This RTserial driver is for the Freescale IMX internal UART compatible controllers. It has been tested with Freescale's 3.0.15 kernel on an i.MX53 and i.MX6Q board but it should work with more recent mainline kernel versions as well. The modem control and line state is handled similar to the 16550A UART, if possible. But this part is still weak and not very well tested.

---
 ksrc/drivers/serial/Kconfig       |    8 +
 ksrc/drivers/serial/Makefile      |    2 +
 ksrc/drivers/serial/rt_imx_uart.c | 1560 +++++++++++++++++++++++++++++++++++++
 3 files changed, 1570 insertions(+)
 create mode 100644 ksrc/drivers/serial/rt_imx_uart.c
ksrc/drivers/serial/Kconfig +8 -0
index edb4dfd..829d8f4 100644
@@ -69,4 +69,12 @@ config XENO_DRIVERS_MPC52XX_UART
 	help
 	Real-time UART driver for the PSC on the MPC5200 processor.
 
+config XENO_DRIVERS_IMX_UART
+	depends on XENO_SKIN_RTDM && (ARCH_IMX || ARCH_MXC)
+	tristate "RT IMX UART driver"
+	select RATIONAL
+	help
+	Real-time UART driver for the Freescale Semiconductor MXC Internal
+	UART compatible controllers.
+
 endmenu
ksrc/drivers/serial/Makefile +2 -0
index 5703907..9de6cf9 100644
@@ -6,9 +6,11 @@ EXTRA_CFLAGS += -D__IN_XENOMAI__ -Iinclude/xenomai
 
 obj-$(CONFIG_XENO_DRIVERS_16550A) += xeno_16550A.o
 obj-$(CONFIG_XENO_DRIVERS_MPC52XX_UART) += xeno_mpc52xx_uart.o
+obj-$(CONFIG_XENO_DRIVERS_IMX_UART) += xeno_imx_uart.o
 
 xeno_16550A-y := 16550A.o
 xeno_mpc52xx_uart-y := rt_mpc52xx_uart.o
+xeno_imx_uart-y := rt_imx_uart.o
 
 else
 
ksrc/drivers/serial/rt_imx_uart.c new file +1560 -0

1,560 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 6 lines · Wolfgang Grandegger

This RTserial driver is for the Freescale IMX internal UART compatible controllers. It has been tested with Freescale's 3.0.15 kernel on an i.MX53 and i.MX6Q board but it should work with more recent mainline kernel versions as well. The modem control and line state is handled similar to the 16550A UART, if possible. But this part is still weak and not very well tested.

Applied, thanks.

Signature · 1 line
                                                                Gilles.