From: Kevin Hickey <khickey@rmicorp.com>
To: linux-mips@linux-mips.org, ralf@linux-mips.org
Cc: Kevin Hickey <khickey@rmicorp.com>
Subject: [PATCH v3 3/5] Alchemy: Au1300/DB1300 UART support
Date: Wed, 8 Apr 2009 18:36:06 -0500 [thread overview]
Message-ID: <1239233768-11927-4-git-send-email-khickey@rmicorp.com> (raw)
In-Reply-To: <1239233768-11927-3-git-send-email-khickey@rmicorp.com>
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
config MACH_ALCHEMY
bool "Alchemy processor based machines"
+ select SYS_HAS_EARLY_PRINTK
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[] = {
#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
/* 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
--
1.5.4.3
next prev parent reply other threads:[~2009-04-08 23:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-08 23:36 [PATCH v3 0/5] Alchemy: Basic Au1300 and DB1300 support Kevin Hickey
2009-04-08 23:36 ` [PATCH v3 1/5] Alchemy: Initial Au1300 and DBAu1300 support Kevin Hickey
2009-04-08 23:36 ` [PATCH v3 2/5] Alchemy: Au1300 new interrupt controller Kevin Hickey
2009-04-08 23:36 ` Kevin Hickey [this message]
2009-04-08 23:36 ` [PATCH v3 4/5] Alchemy: Au1300/DB1300 peripheral resource declarations Kevin Hickey
2009-04-08 23:36 ` [PATCH v3 5/5] Alchemy: Au1300: Add LCD framebuffer support Kevin Hickey
2009-04-09 10:07 ` [PATCH v3 2/5] Alchemy: Au1300 new interrupt controller Manuel Lauss
2009-04-09 10:07 ` Manuel Lauss
2009-04-09 14:27 ` Kevin Hickey
2009-04-09 15:15 ` Manuel Lauss
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1239233768-11927-4-git-send-email-khickey@rmicorp.com \
--to=khickey@rmicorp.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox