summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorDirk Behme <dirk.behme@de.bosch.com>2012-04-27 12:15:45 +0400
committerShawn Guo <shawn.guo@linaro.org>2012-05-11 11:17:57 +0400
commit785d7fab3eb0c39bcd8086055e7bd144c48158e4 (patch)
tree09acce24a08b86cb4034dd5369dfb1e40a632f65 /arch/arm/mach-imx
parentef44180680aafb29f50654f3325cf7791fa5433d (diff)
downloadlinux-785d7fab3eb0c39bcd8086055e7bd144c48158e4.tar.xz
ARM: imx6: Add UART2 for low-level debug
To be able to enable early debugging on boards using the UART2 for the console, add the option for early debugging on UART2. Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r--arch/arm/mach-imx/lluart.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/lluart.c b/arch/arm/mach-imx/lluart.c
index 0213f8dcee81..c40a34c00489 100644
--- a/arch/arm/mach-imx/lluart.c
+++ b/arch/arm/mach-imx/lluart.c
@@ -17,6 +17,12 @@
#include <mach/hardware.h>
static struct map_desc imx_lluart_desc = {
+#ifdef CONFIG_DEBUG_IMX6Q_UART2
+ .virtual = MX6Q_IO_P2V(MX6Q_UART2_BASE_ADDR),
+ .pfn = __phys_to_pfn(MX6Q_UART2_BASE_ADDR),
+ .length = MX6Q_UART2_SIZE,
+ .type = MT_DEVICE,
+#endif
#ifdef CONFIG_DEBUG_IMX6Q_UART4
.virtual = MX6Q_IO_P2V(MX6Q_UART4_BASE_ADDR),
.pfn = __phys_to_pfn(MX6Q_UART4_BASE_ADDR),