mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-27 02:24:35 +02:00
7e7649baa9
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31546 3c298f89-4303-0410-b956-a3cf2f4a3e73
105 lines
2.7 KiB
Diff
105 lines
2.7 KiB
Diff
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)
|
|
|