summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/include/mach/iomap.h
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2010-08-06 14:29:14 -0700
committerColin Cross <ccross@android.com>2011-02-09 21:56:59 -0800
commitd377eb0d95e4a7333afeb5ca4ba8554160480263 (patch)
tree9e6d8999a3e1da827da3186af4eabca4c008ea48 /arch/arm/mach-tegra/include/mach/iomap.h
parent100b33c8bd8a3235fd0b7948338d6cbb3db3c63d (diff)
downloadblackbird-op-linux-d377eb0d95e4a7333afeb5ca4ba8554160480263.tar.gz
blackbird-op-linux-d377eb0d95e4a7333afeb5ca4ba8554160480263.zip
ARM: tegra: Centralize macros to define debug uart base
Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/iomap.h')
-rw-r--r--arch/arm/mach-tegra/include/mach/iomap.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/iomap.h b/arch/arm/mach-tegra/include/mach/iomap.h
index 44a4f4bcf91f..325eca37348f 100644
--- a/arch/arm/mach-tegra/include/mach/iomap.h
+++ b/arch/arm/mach-tegra/include/mach/iomap.h
@@ -221,4 +221,18 @@
#define TEGRA_SDMMC4_BASE 0xC8000600
#define TEGRA_SDMMC4_SIZE SZ_512
+#if defined(CONFIG_TEGRA_DEBUG_UART_NONE)
+# define TEGRA_DEBUG_UART_BASE 0
+#elif defined(CONFIG_TEGRA_DEBUG_UARTA)
+# define TEGRA_DEBUG_UART_BASE TEGRA_UARTA_BASE
+#elif defined(CONFIG_TEGRA_DEBUG_UARTB)
+# define TEGRA_DEBUG_UART_BASE TEGRA_UARTB_BASE
+#elif defined(CONFIG_TEGRA_DEBUG_UARTC)
+# define TEGRA_DEBUG_UART_BASE TEGRA_UARTC_BASE
+#elif defined(CONFIG_TEGRA_DEBUG_UARTD)
+# define TEGRA_DEBUG_UART_BASE TEGRA_UARTD_BASE
+#elif defined(CONFIG_TEGRA_DEBUG_UARTE)
+# define TEGRA_DEBUG_UART_BASE TEGRA_UARTE_BASE
+#endif
+
#endif
OpenPOWER on IntegriCloud