mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 02:29:01 +00:00
7f3182da16
Compile tested only. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46186
24 lines
802 B
Diff
24 lines
802 B
Diff
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;
|