diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2012-05-01 07:00:17 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2012-05-01 07:00:17 +0000 |
commit | 880de62f91bcffe7f1c7f16c9463e10853fa2524 (patch) | |
tree | 058bb1c73786a7bf492cc1a554effe4692a9b50e /target/linux/coldfire/patches/015-Add-driver-to-support-ten-UART-devices-on-MCF5441x.patch | |
parent | 7a8d12bafaf8b882d0278156e5f22d0a396687e2 (diff) | |
download | mtk-20170518-880de62f91bcffe7f1c7f16c9463e10853fa2524.zip mtk-20170518-880de62f91bcffe7f1c7f16c9463e10853fa2524.tar.gz mtk-20170518-880de62f91bcffe7f1c7f16c9463e10853fa2524.tar.bz2 |
switch to 2.6.38
SVN-Revision: 31546
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.patch | 104 |
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 0000000..6fa3e59 --- /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) + |