linux-mips
[Top] [All Lists]

[PATCH -queue v2] MIPS: Alchemy: UARTs are of type 16550A

To: Linux-MIPS <linux-mips@linux-mips.org>, Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH -queue v2] MIPS: Alchemy: UARTs are of type 16550A
From: Manuel Lauss <manuel.lauss@googlemail.com>
Date: Wed, 28 Oct 2009 21:49:46 +0100
Cc: Manuel Lauss <manuel.lauss@gmail.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=rDKbGwNMf5qhMRUcwjfsa0duvvWXJIARIVHLMeJfqO8=; b=EMCUm8TjSM89LbONYC6VRm2HGwbf2bj1VAQQGjzltGl8gKTPDZql5HvCs0Ed6AoosR gvv5OEM+Hf3ZUeJd4kuyfyMokkYFldHtrE0eJccThCfvxBGwDDnvbhgKnEfMHo8kgkwC mrV2uCYV38Qh8LwEyus2xeE0Cyn1xS93iCCWk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=iPJs/yKtVKyAnAWVjHURPIGKxKfEgP4bCklPEAgaTWTpO1oMz6aATYvnjn7W4Z2YAp XYslQaD8Udq285OYGI6Thr+Me7FJRze6FrdIdm7d6JGWZtSjji54BGHLJpSninvfhIXU 0mxaJP/3G58FD5VN3tddtutSPLFEJgqs2Ljag=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
UART autodetection breaks on the Au1300 but the IP blocks are identical,
at least according to the datasheets.  Help the 8250 driver by passing
on uart type information via platform data.

Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
---
On top of the other alchemy patches in mips-queue.

 arch/mips/alchemy/common/platform.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/mips/alchemy/common/platform.c 
b/arch/mips/alchemy/common/platform.c
index 195e5b3..3be14b0 100644
--- a/arch/mips/alchemy/common/platform.c
+++ b/arch/mips/alchemy/common/platform.c
@@ -26,7 +26,9 @@
                .irq            = _irq,                         \
                .regshift       = 2,                            \
                .iotype         = UPIO_AU,                      \
-               .flags          = UPF_SKIP_TEST | UPF_IOREMAP   \
+               .flags          = UPF_SKIP_TEST | UPF_IOREMAP | \
+                                 UPF_FIXED_TYPE,               \
+               .type           = PORT_16550A,                  \
        }
 
 static struct plat_serial8250_port au1x00_uart_data[] = {
-- 
1.6.5


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH -queue v2] MIPS: Alchemy: UARTs are of type 16550A, Manuel Lauss <=