summaryrefslogtreecommitdiff
path: root/target/linux/coldfire/patches/015-Add-driver-to-support-ten-UART-devices-on-MCF5441x.patch
blob: 6fa3e598775bf8ef92e82159186e1395b856a010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
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)