linux-mips
[Top] [All Lists]

[PATCH 1/2] AR7: use correct UART port type

To: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 1/2] AR7: use correct UART port type
From: Florian Fainelli <florian@openwrt.org>
Date: Sun, 16 May 2010 15:25:17 +0200
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:reply-to:to :subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; bh=WtIfv6SZwknq0AQlqf3pLl5IP76GbS53SjHV1SZw55U=; b=PPpJ6eRCOYs2xAMMrJfNrjrVKUorA0KPYZvNVTnTiiyz2WD8ShVUTTOt3m0v6PMIPS 39g70lQgp1/oLx5aAlotFJqrrd/XoRtIUF7SnuwcwOB1awJfaG1Ax0Z/TikEkMq5t04Z pXERXoyx8hryc+ggT9Y0zkOw3/jNAbvX3Iib8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:reply-to:to:subject:date:user-agent:mime-version :content-type:content-transfer-encoding:message-id; b=cr1YSzi1Fc49rbDazbbmGCBu74q7q9i2aLa1OFieLfrrJisDojJV+H7QV3xwXnegYu mTTZQv7V7SGO2TyRZnlWWJg/vM2MSXEABZuSIbUZKOvzc6t8YM/ClHV5owyi8CxDkC6w lurfGDgCky6C4itkdE5PYZc9wE18coYznZQRM=
Original-recipient: rfc822;linux-mips@linux-mips.org
Reply-to: Florian Fainelli <florian@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.12.4 (Linux/2.6.33-2-686; KDE/4.3.4; i686; ; )
PORT_AR7 has the correct TRIG flag (UART_FCR_R_TRIG_00) as well as UART_CAP_AFE
being set. This fixes UART on TNETD7300 revision 0x02, which would otherwise
mangle some characters, no side effects on other revisions.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
 arch/mips/ar7/platform.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c
index 566f2d7..8f31d1d 100644
--- a/arch/mips/ar7/platform.c
+++ b/arch/mips/ar7/platform.c
@@ -542,7 +542,7 @@ static int __init ar7_register_uarts(void)
        if (IS_ERR(bus_clk))
                panic("unable to get bus clk\n");
 
-       uart_port.type          = PORT_16550A;
+       uart_port.type          = PORT_AR7;
        uart_port.uartclk       = clk_get_rate(bus_clk) / 2;
        uart_port.iotype        = UPIO_MEM32;
        uart_port.regshift      = 2;
-- 
1.7.1


<Prev in Thread] Current Thread [Next in Thread>