MIPS: lantiq: add serial port support
Subsystems (2)
PATCH v6 1/1 MIPS: lantiq: add serial port support
This patch adds the driver for the 2 serial ports found inside the Lantiq SoC family
---
Changes in V2
* small cleanups
* use global register access macros
* properly register memory resources
Changes in V3
* whitespace
* change __iomem void to void __iomem
* multiline comments
* use pr_* macros instead of printk
Changes in V4
* remove unused defines
* clean code that requests the interrupts
* add linux-serial to the CC list
Changes in V6
* spinlock code that accesses registers properly
* properly use/handle refcounting of struct tty_struct
* clear termios flags that are not supported by the driver/hardware
* use ttyLTQ instead of ttyS and let the major/minor be assigned dynamically
This patch should be merged via the MIPS tree
drivers/tty/serial/Kconfig | 8 + drivers/tty/serial/Makefile | 1 + drivers/tty/serial/lantiq.c | 756 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 765 insertions(+), 0 deletions(-) create mode 100644 drivers/tty/serial/lantiq.c
drivers/tty/serial/Kconfig +8 -0
@@ -1391,6 +1391,14 @@ config SERIAL_OF_PLATFORM_NWPSERIAL_CONSOLE help Support for Console on the NWP serial ports. +config SERIAL_LANTIQ + bool "Lantiq serial driver" + depends on LANTIQ + select SERIAL_CORE + select SERIAL_CORE_CONSOLE + help + Support for console and UART on Lantiq SoCs. + config SERIAL_QE tristate "Freescale QUICC Engine serial port support" depends on QUICC_ENGINE
drivers/tty/serial/Makefile +1 -0
@@ -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_LANTIQ) += lantiq.o
drivers/tty/serial/lantiq.c new file +756 -0
756 lines not on this page · raw message
Signature · 1 line
1.7.2.3
Quoted 6 lines · John Crispin
Quoted 3 lines
Acked-by Alan Cox <[email protected]>Hi Alan,
thanks alot :)
Thanks everybody; queued for 2.6.40.
Ralf