aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2013-10-29 01:15:51 -0400
committerShawn Guo <shawn.guo@linaro.org>2013-12-09 00:18:18 -0500
commitad364a7014cb2548ccc7fabc2c1f63e41cb6dd67 (patch)
tree140b9564738e81954b71e898a6fd3c1a3c302c36
parent188652b49ff1d2fe0fb6aaea37f07f7410e497db (diff)
ARM: imx: add debug uart support for IMX50 SoC
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> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
-rw-r--r--arch/arm/Kconfig.debug9
-rw-r--r--arch/arm/include/debug/imx-uart.h10
2 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 5765abf5ce84..df56c7e65a6d 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -255,6 +255,13 @@ choice
255 Say Y here if you want kernel low-level debugging support 255 Say Y here if you want kernel low-level debugging support
256 on i.MX35. 256 on i.MX35.
257 257
258 config DEBUG_IMX50_UART
259 bool "i.MX50 Debug UART"
260 depends on SOC_IMX50
261 help
262 Say Y here if you want kernel low-level debugging support
263 on i.MX50.
264
258 config DEBUG_IMX51_UART 265 config DEBUG_IMX51_UART
259 bool "i.MX51 Debug UART" 266 bool "i.MX51 Debug UART"
260 depends on SOC_IMX51 267 depends on SOC_IMX51
@@ -897,6 +904,7 @@ config DEBUG_IMX_UART_PORT
897 DEBUG_IMX21_IMX27_UART || \ 904 DEBUG_IMX21_IMX27_UART || \
898 DEBUG_IMX31_UART || \ 905 DEBUG_IMX31_UART || \
899 DEBUG_IMX35_UART || \ 906 DEBUG_IMX35_UART || \
907 DEBUG_IMX50_UART || \
900 DEBUG_IMX51_UART || \ 908 DEBUG_IMX51_UART || \
901 DEBUG_IMX53_UART || \ 909 DEBUG_IMX53_UART || \
902 DEBUG_IMX6Q_UART || \ 910 DEBUG_IMX6Q_UART || \
@@ -931,6 +939,7 @@ config DEBUG_LL_INCLUDE
931 DEBUG_IMX21_IMX27_UART || \ 939 DEBUG_IMX21_IMX27_UART || \
932 DEBUG_IMX31_UART || \ 940 DEBUG_IMX31_UART || \
933 DEBUG_IMX35_UART || \ 941 DEBUG_IMX35_UART || \
942 DEBUG_IMX50_UART || \
934 DEBUG_IMX51_UART || \ 943 DEBUG_IMX51_UART || \
935 DEBUG_IMX53_UART ||\ 944 DEBUG_IMX53_UART ||\
936 DEBUG_IMX6Q_UART || \ 945 DEBUG_IMX6Q_UART || \
diff --git a/arch/arm/include/debug/imx-uart.h b/arch/arm/include/debug/imx-uart.h
index 29da84e183f4..42b823cd2d22 100644
--- a/arch/arm/include/debug/imx-uart.h
+++ b/arch/arm/include/debug/imx-uart.h
@@ -43,6 +43,14 @@
43#define IMX35_UART_BASE_ADDR(n) IMX35_UART##n##_BASE_ADDR 43#define IMX35_UART_BASE_ADDR(n) IMX35_UART##n##_BASE_ADDR
44#define IMX35_UART_BASE(n) IMX35_UART_BASE_ADDR(n) 44#define IMX35_UART_BASE(n) IMX35_UART_BASE_ADDR(n)
45 45
46#define IMX50_UART1_BASE_ADDR 0x53fbc000
47#define IMX50_UART2_BASE_ADDR 0x53fc0000
48#define IMX50_UART3_BASE_ADDR 0x5000c000
49#define IMX50_UART4_BASE_ADDR 0x53ff0000
50#define IMX50_UART5_BASE_ADDR 0x63f90000
51#define IMX50_UART_BASE_ADDR(n) IMX50_UART##n##_BASE_ADDR
52#define IMX50_UART_BASE(n) IMX50_UART_BASE_ADDR(n)
53
46#define IMX51_UART1_BASE_ADDR 0x73fbc000 54#define IMX51_UART1_BASE_ADDR 0x73fbc000
47#define IMX51_UART2_BASE_ADDR 0x73fc0000 55#define IMX51_UART2_BASE_ADDR 0x73fc0000
48#define IMX51_UART3_BASE_ADDR 0x7000c000 56#define IMX51_UART3_BASE_ADDR 0x7000c000
@@ -85,6 +93,8 @@
85#define UART_PADDR IMX_DEBUG_UART_BASE(IMX31) 93#define UART_PADDR IMX_DEBUG_UART_BASE(IMX31)
86#elif defined(CONFIG_DEBUG_IMX35_UART) 94#elif defined(CONFIG_DEBUG_IMX35_UART)
87#define UART_PADDR IMX_DEBUG_UART_BASE(IMX35) 95#define UART_PADDR IMX_DEBUG_UART_BASE(IMX35)
96#elif defined(CONFIG_DEBUG_IMX50_UART)
97#define UART_PADDR IMX_DEBUG_UART_BASE(IMX50)
88#elif defined(CONFIG_DEBUG_IMX51_UART) 98#elif defined(CONFIG_DEBUG_IMX51_UART)
89#define UART_PADDR IMX_DEBUG_UART_BASE(IMX51) 99#define UART_PADDR IMX_DEBUG_UART_BASE(IMX51)
90#elif defined(CONFIG_DEBUG_IMX53_UART) 100#elif defined(CONFIG_DEBUG_IMX53_UART)