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
6 Test CPU board: UART0(J1), UART4(J3)
7 Test SER2 board: UART1(J11), UART2(J31)
9 Signed-off-by: Alison Wang <b18965@freescale.com>
11 drivers/tty/serial/Kconfig | 70 ++++++++++++++++++++++++++++++++++++++++++++
12 drivers/tty/serial/mcf.c | 2 +-
13 2 files changed, 71 insertions(+), 1 deletions(-)
15 --- a/drivers/tty/serial/Kconfig
16 +++ b/drivers/tty/serial/Kconfig
17 @@ -1070,6 +1070,76 @@ config SERIAL_MCF_CONSOLE
19 Enable a ColdFire internal serial port to be the system console.
21 +config SERIAL_MCF_UART0
22 + bool "Coldfire UART0 device support"
23 + depends on SERIAL_MCF && M5441X
26 + Enable ColdFire UART0 device configuration
28 +config SERIAL_MCF_UART1
29 + bool "Coldfire UART1 device support"
30 + depends on SERIAL_MCF && M5441X
33 + Enable ColdFire UART1 device configuration
35 +config SERIAL_MCF_UART2
36 + bool "Coldfire UART2 device support"
37 + depends on SERIAL_MCF && M5441X
40 + Enable ColdFire UART2 device configuration
42 +config SERIAL_MCF_UART3
43 + bool "Coldfire UART3 device support"
44 + depends on SERIAL_MCF && M5441X
47 + Enable ColdFire UART3 device configuration
49 +config SERIAL_MCF_UART4
50 + bool "Coldfire UART4 device support"
51 + depends on SERIAL_MCF && M5441X
54 + Enable ColdFire UART4 device configuration
56 +config SERIAL_MCF_UART5
57 + bool "Coldfire UART5 device support"
58 + depends on SERIAL_MCF && M5441X
61 + Enable ColdFire UART5 device configuration
63 +config SERIAL_MCF_UART6
64 + bool "Coldfire UART6 device support"
65 + depends on SERIAL_MCF && M5441X
68 + Enable ColdFire UART6 device configuration
70 +config SERIAL_MCF_UART7
71 + bool "Coldfire UART7 device support"
72 + depends on SERIAL_MCF && M5441X
75 + Enable ColdFire UART7 device configuration
77 +config SERIAL_MCF_UART8
78 + bool "Coldfire UART8 device support"
79 + depends on SERIAL_MCF && M5441X
82 + Enable ColdFire UART8 device configuration
84 +config SERIAL_MCF_UART9
85 + bool "Coldfire UART9 device support"
86 + depends on SERIAL_MCF && M5441X
89 + Enable ColdFire UART9 device configuration
91 config SERIAL_68360_SMC
92 bool "68360 SMC uart support"
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,
100 -static struct mcf_uart mcf_ports[4];
101 +static struct mcf_uart mcf_ports[MAX_PORT_NUM];
103 #define MCF_MAXPORTS ARRAY_SIZE(mcf_ports)