aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@freescale.com>2014-05-11 09:53:48 -0400
committerShawn Guo <shawn.guo@freescale.com>2014-05-16 03:35:14 -0400
commit74368e81b1198a0c40e150554faf984941b7997c (patch)
treef58eea6d45c59a53d1faacd255f2c727f21b7d34 /arch
parent8da4d6b2f7988d1742ea5b38a0fbdb01814f3596 (diff)
ARM: imx: add low-level debug support for imx6sx
Enable low-level debug support for i.MX6 SoloX by adding the debug port definitions for the SoC. Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/Kconfig.debug13
-rw-r--r--arch/arm/include/debug/imx-uart.h11
2 files changed, 22 insertions, 2 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 00c69503da22..4dd565f84f6f 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -317,6 +317,13 @@ choice
317 Say Y here if you want kernel low-level debugging support 317 Say Y here if you want kernel low-level debugging support
318 on i.MX6SL. 318 on i.MX6SL.
319 319
320 config DEBUG_IMX6SX_UART
321 bool "i.MX6SX Debug UART"
322 depends on SOC_IMX6SX
323 help
324 Say Y here if you want kernel low-level debugging support
325 on i.MX6SX.
326
320 config DEBUG_KEYSTONE_UART0 327 config DEBUG_KEYSTONE_UART0
321 bool "Kernel low-level debugging on KEYSTONE2 using UART0" 328 bool "Kernel low-level debugging on KEYSTONE2 using UART0"
322 depends on ARCH_KEYSTONE 329 depends on ARCH_KEYSTONE
@@ -935,7 +942,8 @@ config DEBUG_IMX_UART_PORT
935 DEBUG_IMX51_UART || \ 942 DEBUG_IMX51_UART || \
936 DEBUG_IMX53_UART || \ 943 DEBUG_IMX53_UART || \
937 DEBUG_IMX6Q_UART || \ 944 DEBUG_IMX6Q_UART || \
938 DEBUG_IMX6SL_UART 945 DEBUG_IMX6SL_UART || \
946 DEBUG_IMX6SX_UART
939 default 1 947 default 1
940 depends on ARCH_MXC 948 depends on ARCH_MXC
941 help 949 help
@@ -979,7 +987,8 @@ config DEBUG_LL_INCLUDE
979 DEBUG_IMX51_UART || \ 987 DEBUG_IMX51_UART || \
980 DEBUG_IMX53_UART ||\ 988 DEBUG_IMX53_UART ||\
981 DEBUG_IMX6Q_UART || \ 989 DEBUG_IMX6Q_UART || \
982 DEBUG_IMX6SL_UART 990 DEBUG_IMX6SL_UART || \
991 DEBUG_IMX6SX_UART
983 default "debug/msm.S" if DEBUG_MSM_UART 992 default "debug/msm.S" if DEBUG_MSM_UART
984 default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART 993 default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART
985 default "debug/sirf.S" if DEBUG_SIRFPRIMA2_UART1 || DEBUG_SIRFMARCO_UART1 994 default "debug/sirf.S" if DEBUG_SIRFPRIMA2_UART1 || DEBUG_SIRFMARCO_UART1
diff --git a/arch/arm/include/debug/imx-uart.h b/arch/arm/include/debug/imx-uart.h
index 42b823cd2d22..032a316eb802 100644
--- a/arch/arm/include/debug/imx-uart.h
+++ b/arch/arm/include/debug/imx-uart.h
@@ -81,6 +81,15 @@
81#define IMX6SL_UART_BASE_ADDR(n) IMX6SL_UART##n##_BASE_ADDR 81#define IMX6SL_UART_BASE_ADDR(n) IMX6SL_UART##n##_BASE_ADDR
82#define IMX6SL_UART_BASE(n) IMX6SL_UART_BASE_ADDR(n) 82#define IMX6SL_UART_BASE(n) IMX6SL_UART_BASE_ADDR(n)
83 83
84#define IMX6SX_UART1_BASE_ADDR 0x02020000
85#define IMX6SX_UART2_BASE_ADDR 0x021e8000
86#define IMX6SX_UART3_BASE_ADDR 0x021ec000
87#define IMX6SX_UART4_BASE_ADDR 0x021f0000
88#define IMX6SX_UART5_BASE_ADDR 0x021f4000
89#define IMX6SX_UART6_BASE_ADDR 0x022a0000
90#define IMX6SX_UART_BASE_ADDR(n) IMX6SX_UART##n##_BASE_ADDR
91#define IMX6SX_UART_BASE(n) IMX6SX_UART_BASE_ADDR(n)
92
84#define IMX_DEBUG_UART_BASE(soc) soc##_UART_BASE(CONFIG_DEBUG_IMX_UART_PORT) 93#define IMX_DEBUG_UART_BASE(soc) soc##_UART_BASE(CONFIG_DEBUG_IMX_UART_PORT)
85 94
86#ifdef CONFIG_DEBUG_IMX1_UART 95#ifdef CONFIG_DEBUG_IMX1_UART
@@ -103,6 +112,8 @@
103#define UART_PADDR IMX_DEBUG_UART_BASE(IMX6Q) 112#define UART_PADDR IMX_DEBUG_UART_BASE(IMX6Q)
104#elif defined(CONFIG_DEBUG_IMX6SL_UART) 113#elif defined(CONFIG_DEBUG_IMX6SL_UART)
105#define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SL) 114#define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SL)
115#elif defined(CONFIG_DEBUG_IMX6SX_UART)
116#define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SX)
106#endif 117#endif
107 118
108#endif /* __DEBUG_IMX_UART_H */ 119#endif /* __DEBUG_IMX_UART_H */