From: gerg@uclinux.org (gerg at uclinux.org)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/8] ARM: imx: add debug uart support for IMX50 SoC
Date: Fri, 18 Oct 2013 16:04:13 +1000 [thread overview]
Message-ID: <1382076260-6422-2-git-send-email-gerg@uclinux.org> (raw)
In-Reply-To: <1382076260-6422-1-git-send-email-gerg@uclinux.org>
From: Greg Ungerer <gerg@uclinux.org>
Add appropriate UART address definitions and support defines for using the
UARTs of the Freescale IMX50 SoC as debug ports.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
---
arch/arm/Kconfig.debug | 9 +++++++++
arch/arm/include/debug/imx-uart.h | 10 ++++++++++
2 files changed, 19 insertions(+)
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 9762c84..b9c6c9b 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -255,6 +255,13 @@ choice
Say Y here if you want kernel low-level debugging support
on i.MX35.
+ config DEBUG_IMX50_UART
+ bool "i.MX50 Debug UART"
+ depends on SOC_IMX50
+ help
+ Say Y here if you want kernel low-level debugging support
+ on i.MX50.
+
config DEBUG_IMX51_UART
bool "i.MX51 Debug UART"
depends on SOC_IMX51
@@ -862,6 +869,7 @@ config DEBUG_IMX_UART_PORT
DEBUG_IMX21_IMX27_UART || \
DEBUG_IMX31_UART || \
DEBUG_IMX35_UART || \
+ DEBUG_IMX50_UART || \
DEBUG_IMX51_UART || \
DEBUG_IMX53_UART || \
DEBUG_IMX6Q_UART || \
@@ -891,6 +899,7 @@ config DEBUG_LL_INCLUDE
DEBUG_IMX21_IMX27_UART || \
DEBUG_IMX31_UART || \
DEBUG_IMX35_UART || \
+ DEBUG_IMX50_UART || \
DEBUG_IMX51_UART || \
DEBUG_IMX53_UART ||\
DEBUG_IMX6Q_UART || \
diff --git a/arch/arm/include/debug/imx-uart.h b/arch/arm/include/debug/imx-uart.h
index 29da84e..42b823c 100644
--- a/arch/arm/include/debug/imx-uart.h
+++ b/arch/arm/include/debug/imx-uart.h
@@ -43,6 +43,14 @@
#define IMX35_UART_BASE_ADDR(n) IMX35_UART##n##_BASE_ADDR
#define IMX35_UART_BASE(n) IMX35_UART_BASE_ADDR(n)
+#define IMX50_UART1_BASE_ADDR 0x53fbc000
+#define IMX50_UART2_BASE_ADDR 0x53fc0000
+#define IMX50_UART3_BASE_ADDR 0x5000c000
+#define IMX50_UART4_BASE_ADDR 0x53ff0000
+#define IMX50_UART5_BASE_ADDR 0x63f90000
+#define IMX50_UART_BASE_ADDR(n) IMX50_UART##n##_BASE_ADDR
+#define IMX50_UART_BASE(n) IMX50_UART_BASE_ADDR(n)
+
#define IMX51_UART1_BASE_ADDR 0x73fbc000
#define IMX51_UART2_BASE_ADDR 0x73fc0000
#define IMX51_UART3_BASE_ADDR 0x7000c000
@@ -85,6 +93,8 @@
#define UART_PADDR IMX_DEBUG_UART_BASE(IMX31)
#elif defined(CONFIG_DEBUG_IMX35_UART)
#define UART_PADDR IMX_DEBUG_UART_BASE(IMX35)
+#elif defined(CONFIG_DEBUG_IMX50_UART)
+#define UART_PADDR IMX_DEBUG_UART_BASE(IMX50)
#elif defined(CONFIG_DEBUG_IMX51_UART)
#define UART_PADDR IMX_DEBUG_UART_BASE(IMX51)
#elif defined(CONFIG_DEBUG_IMX53_UART)
--
1.8.1.4
next prev parent reply other threads:[~2013-10-18 6:04 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-18 6:04 [PATCH 0/8] ARM: imx: add IMX50 SoC support gerg at uclinux.org
2013-10-18 6:04 ` gerg at uclinux.org [this message]
2013-10-18 6:04 ` [PATCH 2/8] ARM: imx: add clocking support code for the IMX50 SoC gerg at uclinux.org
2013-10-22 12:27 ` Sascha Hauer
2013-10-23 3:19 ` Greg Ungerer
2013-10-23 9:19 ` Jason Cooper
2013-10-23 12:44 ` Greg Ungerer
2013-10-23 13:42 ` Jason Cooper
2013-10-24 15:11 ` Shawn Guo
2013-10-18 6:04 ` [PATCH 3/8] ARM: imx: add pinctrl " gerg at uclinux.org
2013-10-24 15:16 ` Shawn Guo
2013-10-18 6:04 ` [PATCH 4/8] ARM: imx: add support code for IMX50 based machines gerg at uclinux.org
2013-10-24 11:11 ` Rob Herring
2013-10-28 6:38 ` Greg Ungerer
2013-10-28 19:57 ` Rob Herring
2013-10-18 6:04 ` [PATCH 5/8] ARM: imx: allow configuration of the IMX50 SoC gerg at uclinux.org
2013-10-24 15:17 ` Shawn Guo
2013-10-18 6:04 ` [PATCH 6/8] ARM: dts: imx: add device tree pin definitions for the IMX50 gerg at uclinux.org
2013-10-18 6:04 ` [PATCH 7/8] ARM: dts: imx: add IMX50 SoC device tree bindings gerg at uclinux.org
2013-10-22 12:35 ` Sascha Hauer
2013-10-22 20:08 ` Matt Sealey
2013-10-22 21:57 ` Sascha Hauer
2013-10-22 22:42 ` Benoît Thébaudeau
2013-10-22 23:06 ` Matt Sealey
2013-10-23 0:17 ` Benoît Thébaudeau
2013-10-23 5:55 ` Greg Ungerer
2013-10-24 21:13 ` Matt Sealey
2013-10-23 5:40 ` Greg Ungerer
2013-10-24 15:26 ` Shawn Guo
2013-10-18 6:04 ` [PATCH 8/8] ARM: dts: imx: add device tree support for Freescale imx50evk board gerg at uclinux.org
2013-10-24 15:29 ` Shawn Guo
2013-10-23 9:14 ` [PATCH 0/8] ARM: imx: add IMX50 SoC support Jason Cooper
2013-10-23 12:39 ` Greg Ungerer
2013-10-24 15:00 ` Shawn Guo
2013-10-25 12:53 ` Greg Ungerer
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=1382076260-6422-2-git-send-email-gerg@uclinux.org \
--to=gerg@uclinux.org \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).