Received: from mail.onstor.com (66.201.51.107) by exch1.onstor.net
 (10.0.0.225) with Microsoft SMTP Server id 8.1.311.2; Fri, 20 Mar 2009
 13:52:53 -0700
Received: from psmtp.com ([64.18.0.136]) by mail.onstor.com with Microsoft
 SMTPSVC(6.0.3790.3959);	 Fri, 20 Mar 2009 13:52:53 -0700
Received: from source ([213.58.128.207]) by exprod5mx292.postini.com
 ([64.18.4.11]) with SMTP;	Fri, 20 Mar 2009 15:52:53 CDT
Received: from localhost.localdomain ([127.0.0.1]:20375 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP	id S21369958AbZCTUwq
 (ORCPT <rfc822;andy.sharp@onstor.com>);	Fri, 20 Mar 2009 20:52:46 +0000
Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 20 Mar 2009 20:52:28
 +0000 (GMT)
Received: from mx1.rmicorp.com ([63.111.213.197]:60824 "EHLO mx1.rmicorp.com")
	by ftp.linux-mips.org with ESMTP id S21369890AbZCTUv5 (ORCPT
	<rfc822;linux-mips@linux-mips.org>); Fri, 20 Mar 2009 20:51:57 +0000
Received: from sark.razamicroelectronics.com ([10.8.0.254]) by mx1.rmicorp.com
 with Microsoft SMTPSVC(6.0.3790.3959);	 Fri, 20 Mar 2009 13:51:47 -0700
Received: from localhost.localdomain (unknown [10.8.0.60])	by
 sark.razamicroelectronics.com (Postfix) with ESMTP id 3B540EE76DA;	Fri, 20
 Mar 2009 14:11:47 -0600 (CST)
From: Kevin Hickey <khickey@rmicorp.com>
To: "ralf@linux-mips.org" <ralf@linux-mips.org>, "linux-mips@linux-mips.org"
	<linux-mips@linux-mips.org>
CC: Kevin Hickey <khickey@rmicorp.com>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Fri, 20 Mar 2009 13:51:43 -0700
Subject: [PATCH v2 3/6] Alchemy: Au1300/DB1300 UART support
Thread-Topic: [PATCH v2 3/6] Alchemy: Au1300/DB1300 UART support
Thread-Index: AcmpndbqMrTF/Ee2S+GXvsNe31JIqA==
Message-ID: <1237582306-10800-4-git-send-email-khickey@rmicorp.com>
References: <> <1237582306-10800-1-git-send-email-khickey@rmicorp.com>
 <1237582306-10800-2-git-send-email-khickey@rmicorp.com>
 <1237582306-10800-3-git-send-email-khickey@rmicorp.com>
In-Reply-To: <1237582306-10800-3-git-send-email-khickey@rmicorp.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 0b
X-MS-Exchange-Organization-AuthSource: exch1.onstor.net
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-originalarrivaltime: 20 Mar 2009 20:51:48.0493 (UTC)
 FILETIME=[B00643D0:01C9A99D]
errors-to: linux-mips-bounce@linux-mips.org
x-pstn-levels: (S:68.56224/99.90000 CV:99.9000 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-pstn-neptune: 0/0/0.00/0
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
x-ems-stamp: AV+MdXOC4N7HAjE3uFV3RQ==
x-list: linux-mips
x-archive-position: 22105
x-ecartis-version: Ecartis v1.0.0
x-original-sender: khickey@rmicorp.com
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

Adds support for the UART on the Au1300 SOC and the DB1300 board.  This
includes enabling EARLY_PRINTK for Alchemy.

Signed-off-by: Kevin Hickey <khickey@rmicorp.com>
---
 arch/mips/Kconfig                          |    1 +
 arch/mips/alchemy/common/platform.c        |    5 +++++
 arch/mips/include/asm/mach-au1x00/au1000.h |    5 +++++
 3 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index e61465a..b030770 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -21,6 +21,7 @@ choice
=20
 config MACH_ALCHEMY
 	bool "Alchemy processor based machines"
+	select SYS_HAS_EARLY_PRINTK
=20
 config BASLER_EXCITE
 	bool "Basler eXcite smart camera"
diff --git a/arch/mips/alchemy/common/platform.c b/arch/mips/alchemy/common=
/platform.c
index 5c76c64..78fd862 100644
--- a/arch/mips/alchemy/common/platform.c
+++ b/arch/mips/alchemy/common/platform.c
@@ -52,6 +52,11 @@ static struct plat_serial8250_port au1x00_uart_data[] =
=3D {
 #elif defined(CONFIG_SOC_AU1200)
 	PORT(UART0_ADDR, AU1200_UART0_INT),
 	PORT(UART1_ADDR, AU1200_UART1_INT),
+#elif defined(CONFIG_SOC_AU13XX)
+	PORT(UART2_ADDR, AU1300_IRQ_UART2 + GPINT_LINUX_IRQ_OFFSET),
+	PORT(UART0_ADDR, AU1300_IRQ_UART0 + GPINT_LINUX_IRQ_OFFSET),
+	PORT(UART1_ADDR, AU1300_IRQ_UART1 + GPINT_LINUX_IRQ_OFFSET),
+	PORT(UART3_ADDR, AU1300_IRQ_UART3 + GPINT_LINUX_IRQ_OFFSET),
 #endif
 #endif	/* CONFIG_SERIAL_8250_AU1X00 */
 	{ },
diff --git a/arch/mips/include/asm/mach-au1x00/au1000.h b/arch/mips/include=
/asm/mach-au1x00/au1000.h
index c7fe356..f669556 100644
--- a/arch/mips/include/asm/mach-au1x00/au1000.h
+++ b/arch/mips/include/asm/mach-au1x00/au1000.h
@@ -1277,7 +1277,12 @@ enum soc_au1200_ints {
 #define MAC_RX_BUFF3_ADDR	0x34
=20
 /* UARTS 0-3 */
+#ifdef CONFIG_SOC_AU13XX
+#define UART_BASE		UART2_ADDR
+#else
 #define UART_BASE		UART0_ADDR
+#endif
+
 #ifdef	CONFIG_SOC_AU1200
 #define UART_DEBUG_BASE 	UART1_ADDR
 #else
--=20
1.5.4.3


