aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2010-05-15 19:15:03 +0000
committerFlorian Fainelli <florian@openwrt.org>2010-05-15 19:15:03 +0000
commit06a4afce30de556c16169d7174d5e5765eb3a50d (patch)
treed0d10b5abee80549d0e3f16a3672e2e695cf6c6b /target
parent85118b7bffd572472ae4370597a8ad707a329dba (diff)
downloadupstream-06a4afce30de556c16169d7174d5e5765eb3a50d.tar.gz
upstream-06a4afce30de556c16169d7174d5e5765eb3a50d.tar.bz2
upstream-06a4afce30de556c16169d7174d5e5765eb3a50d.zip
[ar7] use correct port type, which sets the correct receive fifo trigger options (#7095)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21457 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar7/patches-2.6.32/140-uart_port_ar7.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/target/linux/ar7/patches-2.6.32/140-uart_port_ar7.patch b/target/linux/ar7/patches-2.6.32/140-uart_port_ar7.patch
new file mode 100644
index 0000000000..12c9483d75
--- /dev/null
+++ b/target/linux/ar7/patches-2.6.32/140-uart_port_ar7.patch
@@ -0,0 +1,30 @@
+ AR7: use correct UART port type
+
+ PORT_AR7 has the correct TRIG flag (UART_FCR_R_TRIG_00) as well as UART_CAP_AFE
+ being set. This fixes kernel console on TNETD7300 revision 0x02 and has no side
+ effects on other revisions of the chip.
+
+ Signed-off-by: Florian Fainelli <florian@openwrt.org>
+
+Index: linux-2.6.32.12/arch/mips/ar7/platform.c
+===================================================================
+--- linux-2.6.32.12.orig/arch/mips/ar7/platform.c 2010-05-15 18:01:11.000000000 +0200
++++ linux-2.6.32.12/arch/mips/ar7/platform.c 2010-05-15 18:02:44.000000000 +0200
+@@ -509,7 +509,7 @@
+
+ memset(uart_port, 0, sizeof(struct uart_port) * 2);
+
+- uart_port[0].type = PORT_16550A;
++ uart_port[0].type = PORT_AR7;
+ uart_port[0].line = 0;
+ uart_port[0].irq = AR7_IRQ_UART0;
+ uart_port[0].uartclk = ar7_bus_freq() / 2;
+@@ -524,7 +524,7 @@
+
+ /* Only TNETD73xx have a second serial port */
+ if (ar7_has_second_uart()) {
+- uart_port[1].type = PORT_16550A;
++ uart_port[1].type = PORT_AR7;
+ uart_port[1].line = 1;
+ uart_port[1].irq = AR7_IRQ_UART1;
+ uart_port[1].uartclk = ar7_bus_freq() / 2;