summaryrefslogtreecommitdiffstats
path: root/target/linux/coldfire/patches/015-Add-driver-to-support-ten-UART-devices-on-MCF5441x.patch
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-05-01 07:00:17 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-05-01 07:00:17 +0000
commit7e7649baa9de9d592a76e150970e3079d7610138 (patch)
tree7e3c3b52269e3c7564c6a88d67dc4ea6219b041c /target/linux/coldfire/patches/015-Add-driver-to-support-ten-UART-devices-on-MCF5441x.patch
parent7877ca154f130fe0c83a5f151320c3ce902195d1 (diff)
[coldfire]: switch to 2.6.38
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31546 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/coldfire/patches/015-Add-driver-to-support-ten-UART-devices-on-MCF5441x.patch')
-rw-r--r--target/linux/coldfire/patches/015-Add-driver-to-support-ten-UART-devices-on-MCF5441x.patch104
1 files changed, 104 insertions, 0 deletions
diff --git a/target/linux/coldfire/patches/015-Add-driver-to-support-ten-UART-devices-on-MCF5441x.patch b/target/linux/coldfire/patches/015-Add-driver-to-support-ten-UART-devices-on-MCF5441x.patch
new file mode 100644
index 000000000..6fa3e5987
--- /dev/null
+++ b/target/linux/coldfire/patches/015-Add-driver-to-support-ten-UART-devices-on-MCF5441x.patch
@@ -0,0 +1,104 @@
+From a42f35579c21ffdda461031a5d2d210e27eb506a Mon Sep 17 00:00:00 2001
+From: Alison Wang <b18965@freescale.com>
+Date: Thu, 4 Aug 2011 09:59:43 +0800
+Subject: [PATCH 15/52] Add driver to support ten UART devices on MCF5441x
+
+Test CPU board: UART0(J1), UART4(J3)
+Test SER2 board: UART1(J11), UART2(J31)
+
+Signed-off-by: Alison Wang <b18965@freescale.com>
+---
+ drivers/tty/serial/Kconfig | 70 ++++++++++++++++++++++++++++++++++++++++++++
+ drivers/tty/serial/mcf.c | 2 +-
+ 2 files changed, 71 insertions(+), 1 deletions(-)
+
+--- a/drivers/tty/serial/Kconfig
++++ b/drivers/tty/serial/Kconfig
+@@ -1070,6 +1070,76 @@ config SERIAL_MCF_CONSOLE
+ help
+ Enable a ColdFire internal serial port to be the system console.
+
++config SERIAL_MCF_UART0
++ bool "Coldfire UART0 device support"
++ depends on SERIAL_MCF && M5441X
++ default y
++ help
++ Enable ColdFire UART0 device configuration
++
++config SERIAL_MCF_UART1
++ bool "Coldfire UART1 device support"
++ depends on SERIAL_MCF && M5441X
++ default n
++ help
++ Enable ColdFire UART1 device configuration
++
++config SERIAL_MCF_UART2
++ bool "Coldfire UART2 device support"
++ depends on SERIAL_MCF && M5441X
++ default n
++ help
++ Enable ColdFire UART2 device configuration
++
++config SERIAL_MCF_UART3
++ bool "Coldfire UART3 device support"
++ depends on SERIAL_MCF && M5441X
++ default n
++ help
++ Enable ColdFire UART3 device configuration
++
++config SERIAL_MCF_UART4
++ bool "Coldfire UART4 device support"
++ depends on SERIAL_MCF && M5441X
++ default n
++ help
++ Enable ColdFire UART4 device configuration
++
++config SERIAL_MCF_UART5
++ bool "Coldfire UART5 device support"
++ depends on SERIAL_MCF && M5441X
++ default n
++ help
++ Enable ColdFire UART5 device configuration
++
++config SERIAL_MCF_UART6
++ bool "Coldfire UART6 device support"
++ depends on SERIAL_MCF && M5441X
++ default n
++ help
++ Enable ColdFire UART6 device configuration
++
++config SERIAL_MCF_UART7
++ bool "Coldfire UART7 device support"
++ depends on SERIAL_MCF && M5441X
++ default n
++ help
++ Enable ColdFire UART7 device configuration
++
++config SERIAL_MCF_UART8
++ bool "Coldfire UART8 device support"
++ depends on SERIAL_MCF && M5441X
++ default n
++ help
++ Enable ColdFire UART8 device configuration
++
++config SERIAL_MCF_UART9
++ bool "Coldfire UART9 device support"
++ depends on SERIAL_MCF && M5441X
++ default n
++ help
++ Enable ColdFire UART9 device configuration
++
+ config SERIAL_68360_SMC
+ bool "68360 SMC uart support"
+ depends on M68360
+--- a/drivers/tty/serial/mcf.c
++++ b/drivers/tty/serial/mcf.c
+@@ -527,7 +527,7 @@ static const struct uart_ops mcf_uart_op
+ .verify_port = mcf_verify_port,
+ };
+
+-static struct mcf_uart mcf_ports[4];
++static struct mcf_uart mcf_ports[MAX_PORT_NUM];
+
+ #define MCF_MAXPORTS ARRAY_SIZE(mcf_ports)
+