diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-07-05 21:32:44 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-07-05 21:32:44 +0000 |
commit | 1c1077893daa3d9d9c5f09f0a6d5fa98148e83b2 (patch) | |
tree | d79c13dd30af1ae5d05339eaf253fa4fd1a0b25b /target/linux/ar7/patches-4.1/001-mips-ar7-fix-serial.patch | |
parent | 14b7aacbae204cac41f3b0eb986cfbc95e7102f2 (diff) | |
download | master-187ad058-1c1077893daa3d9d9c5f09f0a6d5fa98148e83b2.tar.gz master-187ad058-1c1077893daa3d9d9c5f09f0a6d5fa98148e83b2.tar.bz2 master-187ad058-1c1077893daa3d9d9c5f09f0a6d5fa98148e83b2.zip |
ar7: add linux 4.1 support
Compile tested only.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46186 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar7/patches-4.1/001-mips-ar7-fix-serial.patch')
-rw-r--r-- | target/linux/ar7/patches-4.1/001-mips-ar7-fix-serial.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/ar7/patches-4.1/001-mips-ar7-fix-serial.patch b/target/linux/ar7/patches-4.1/001-mips-ar7-fix-serial.patch new file mode 100644 index 0000000000..1aded9246c --- /dev/null +++ b/target/linux/ar7/patches-4.1/001-mips-ar7-fix-serial.patch @@ -0,0 +1,23 @@ +From 443ab715a40881d6c9ba11b027ba154bac904cb0 Mon Sep 17 00:00:00 2001 +From: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> +Date: Sat, 10 May 2014 23:19:08 +0200 +Subject: [PATCH] MIPS/AR7: ensure that serial ports are properly set up + +without UPF_FIXED_TYPE, the data from the PORT_AR7 uart_config entry is +never copied, resulting in a dead port. + +Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> +--- + arch/mips/ar7/platform.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/arch/mips/ar7/platform.c ++++ b/arch/mips/ar7/platform.c +@@ -577,6 +577,7 @@ static int __init ar7_register_uarts(voi + uart_port.type = PORT_AR7; + uart_port.uartclk = clk_get_rate(bus_clk) / 2; + uart_port.iotype = UPIO_MEM32; ++ uart_port.flags = UPF_FIXED_TYPE; + uart_port.regshift = 2; + + uart_port.line = 0; |