switch to 2.6.38
[openwrt/openwrt.git] / target / linux / coldfire / patches / 015-Add-driver-to-support-ten-UART-devices-on-MCF5441x.patch
1 From a42f35579c21ffdda461031a5d2d210e27eb506a Mon Sep 17 00:00:00 2001
2 From: Alison Wang <b18965@freescale.com>
3 Date: Thu, 4 Aug 2011 09:59:43 +0800
4 Subject: [PATCH 15/52] Add driver to support ten UART devices on MCF5441x
5
6 Test CPU board: UART0(J1), UART4(J3)
7 Test SER2 board: UART1(J11), UART2(J31)
8
9 Signed-off-by: Alison Wang <b18965@freescale.com>
10 ---
11 drivers/tty/serial/Kconfig | 70 ++++++++++++++++++++++++++++++++++++++++++++
12 drivers/tty/serial/mcf.c | 2 +-
13 2 files changed, 71 insertions(+), 1 deletions(-)
14
15 --- a/drivers/tty/serial/Kconfig
16 +++ b/drivers/tty/serial/Kconfig
17 @@ -1070,6 +1070,76 @@ config SERIAL_MCF_CONSOLE
18 help
19 Enable a ColdFire internal serial port to be the system console.
20
21 +config SERIAL_MCF_UART0
22 + bool "Coldfire UART0 device support"
23 + depends on SERIAL_MCF && M5441X
24 + default y
25 + help
26 + Enable ColdFire UART0 device configuration
27 +
28 +config SERIAL_MCF_UART1
29 + bool "Coldfire UART1 device support"
30 + depends on SERIAL_MCF && M5441X
31 + default n
32 + help
33 + Enable ColdFire UART1 device configuration
34 +
35 +config SERIAL_MCF_UART2
36 + bool "Coldfire UART2 device support"
37 + depends on SERIAL_MCF && M5441X
38 + default n
39 + help
40 + Enable ColdFire UART2 device configuration
41 +
42 +config SERIAL_MCF_UART3
43 + bool "Coldfire UART3 device support"
44 + depends on SERIAL_MCF && M5441X
45 + default n
46 + help
47 + Enable ColdFire UART3 device configuration
48 +
49 +config SERIAL_MCF_UART4
50 + bool "Coldfire UART4 device support"
51 + depends on SERIAL_MCF && M5441X
52 + default n
53 + help
54 + Enable ColdFire UART4 device configuration
55 +
56 +config SERIAL_MCF_UART5
57 + bool "Coldfire UART5 device support"
58 + depends on SERIAL_MCF && M5441X
59 + default n
60 + help
61 + Enable ColdFire UART5 device configuration
62 +
63 +config SERIAL_MCF_UART6
64 + bool "Coldfire UART6 device support"
65 + depends on SERIAL_MCF && M5441X
66 + default n
67 + help
68 + Enable ColdFire UART6 device configuration
69 +
70 +config SERIAL_MCF_UART7
71 + bool "Coldfire UART7 device support"
72 + depends on SERIAL_MCF && M5441X
73 + default n
74 + help
75 + Enable ColdFire UART7 device configuration
76 +
77 +config SERIAL_MCF_UART8
78 + bool "Coldfire UART8 device support"
79 + depends on SERIAL_MCF && M5441X
80 + default n
81 + help
82 + Enable ColdFire UART8 device configuration
83 +
84 +config SERIAL_MCF_UART9
85 + bool "Coldfire UART9 device support"
86 + depends on SERIAL_MCF && M5441X
87 + default n
88 + help
89 + Enable ColdFire UART9 device configuration
90 +
91 config SERIAL_68360_SMC
92 bool "68360 SMC uart support"
93 depends on M68360
94 --- a/drivers/tty/serial/mcf.c
95 +++ b/drivers/tty/serial/mcf.c
96 @@ -527,7 +527,7 @@ static const struct uart_ops mcf_uart_op
97 .verify_port = mcf_verify_port,
98 };
99
100 -static struct mcf_uart mcf_ports[4];
101 +static struct mcf_uart mcf_ports[MAX_PORT_NUM];
102
103 #define MCF_MAXPORTS ARRAY_SIZE(mcf_ports)
104