diff options
author | Anson Huang <b20788@freescale.com> | 2015-07-09 14:09:47 -0400 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2015-07-14 03:06:19 -0400 |
commit | 20c305f66077d2e646b23336d4404261dc283cf9 (patch) | |
tree | cd1cb08a721e6e990c1703cbf5657c155fb88bb3 | |
parent | 022d0716bb7e8e0f11eff4ee65fb1e62ffe8f6e1 (diff) |
ARM: imx: add low-level debug support for i.mx6ul
Enable low-level debug support for i.MX6UL by adding the
debug port definitions for the SoC.
Singed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Frank Li <Frank.Li@freescale.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
-rw-r--r-- | arch/arm/Kconfig.debug | 9 | ||||
-rw-r--r-- | arch/arm/include/debug/imx-uart.h | 13 |
2 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index f1b157971366..f21daa87ce18 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -411,6 +411,13 @@ choice | |||
411 | Say Y here if you want kernel low-level debugging support | 411 | Say Y here if you want kernel low-level debugging support |
412 | on i.MX6SX. | 412 | on i.MX6SX. |
413 | 413 | ||
414 | config DEBUG_IMX6UL_UART | ||
415 | bool "i.MX6UL Debug UART" | ||
416 | depends on SOC_IMX6UL | ||
417 | help | ||
418 | Say Y here if you want kernel low-level debugging support | ||
419 | on i.MX6UL. | ||
420 | |||
414 | config DEBUG_IMX7D_UART | 421 | config DEBUG_IMX7D_UART |
415 | bool "i.MX7D Debug UART" | 422 | bool "i.MX7D Debug UART" |
416 | depends on SOC_IMX7D | 423 | depends on SOC_IMX7D |
@@ -1269,6 +1276,7 @@ config DEBUG_IMX_UART_PORT | |||
1269 | DEBUG_IMX6Q_UART || \ | 1276 | DEBUG_IMX6Q_UART || \ |
1270 | DEBUG_IMX6SL_UART || \ | 1277 | DEBUG_IMX6SL_UART || \ |
1271 | DEBUG_IMX6SX_UART || \ | 1278 | DEBUG_IMX6SX_UART || \ |
1279 | DEBUG_IMX6UL_UART || \ | ||
1272 | DEBUG_IMX7D_UART | 1280 | DEBUG_IMX7D_UART |
1273 | default 1 | 1281 | default 1 |
1274 | depends on ARCH_MXC | 1282 | depends on ARCH_MXC |
@@ -1320,6 +1328,7 @@ config DEBUG_LL_INCLUDE | |||
1320 | DEBUG_IMX6Q_UART || \ | 1328 | DEBUG_IMX6Q_UART || \ |
1321 | DEBUG_IMX6SL_UART || \ | 1329 | DEBUG_IMX6SL_UART || \ |
1322 | DEBUG_IMX6SX_UART || \ | 1330 | DEBUG_IMX6SX_UART || \ |
1331 | DEBUG_IMX6UL_UART || \ | ||
1323 | DEBUG_IMX7D_UART | 1332 | DEBUG_IMX7D_UART |
1324 | default "debug/ks8695.S" if DEBUG_KS8695_UART | 1333 | default "debug/ks8695.S" if DEBUG_KS8695_UART |
1325 | default "debug/msm.S" if DEBUG_QCOM_UARTDM | 1334 | default "debug/msm.S" if DEBUG_QCOM_UARTDM |
diff --git a/arch/arm/include/debug/imx-uart.h b/arch/arm/include/debug/imx-uart.h index 66f736f74684..bce58e975ad1 100644 --- a/arch/arm/include/debug/imx-uart.h +++ b/arch/arm/include/debug/imx-uart.h | |||
@@ -90,6 +90,17 @@ | |||
90 | #define IMX6SX_UART_BASE_ADDR(n) IMX6SX_UART##n##_BASE_ADDR | 90 | #define IMX6SX_UART_BASE_ADDR(n) IMX6SX_UART##n##_BASE_ADDR |
91 | #define IMX6SX_UART_BASE(n) IMX6SX_UART_BASE_ADDR(n) | 91 | #define IMX6SX_UART_BASE(n) IMX6SX_UART_BASE_ADDR(n) |
92 | 92 | ||
93 | #define IMX6UL_UART1_BASE_ADDR 0x02020000 | ||
94 | #define IMX6UL_UART2_BASE_ADDR 0x021e8000 | ||
95 | #define IMX6UL_UART3_BASE_ADDR 0x021ec000 | ||
96 | #define IMX6UL_UART4_BASE_ADDR 0x021f0000 | ||
97 | #define IMX6UL_UART5_BASE_ADDR 0x021f4000 | ||
98 | #define IMX6UL_UART6_BASE_ADDR 0x021fc000 | ||
99 | #define IMX6UL_UART7_BASE_ADDR 0x02018000 | ||
100 | #define IMX6UL_UART8_BASE_ADDR 0x02024000 | ||
101 | #define IMX6UL_UART_BASE_ADDR(n) IMX6UL_UART##n##_BASE_ADDR | ||
102 | #define IMX6UL_UART_BASE(n) IMX6UL_UART_BASE_ADDR(n) | ||
103 | |||
93 | #define IMX7D_UART1_BASE_ADDR 0x30860000 | 104 | #define IMX7D_UART1_BASE_ADDR 0x30860000 |
94 | #define IMX7D_UART2_BASE_ADDR 0x30890000 | 105 | #define IMX7D_UART2_BASE_ADDR 0x30890000 |
95 | #define IMX7D_UART3_BASE_ADDR 0x30880000 | 106 | #define IMX7D_UART3_BASE_ADDR 0x30880000 |
@@ -124,6 +135,8 @@ | |||
124 | #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SL) | 135 | #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SL) |
125 | #elif defined(CONFIG_DEBUG_IMX6SX_UART) | 136 | #elif defined(CONFIG_DEBUG_IMX6SX_UART) |
126 | #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SX) | 137 | #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SX) |
138 | #elif defined(CONFIG_DEBUG_IMX6UL_UART) | ||
139 | #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6UL) | ||
127 | #elif defined(CONFIG_DEBUG_IMX7D_UART) | 140 | #elif defined(CONFIG_DEBUG_IMX7D_UART) |
128 | #define UART_PADDR IMX_DEBUG_UART_BASE(IMX7D) | 141 | #define UART_PADDR IMX_DEBUG_UART_BASE(IMX7D) |
129 | 142 | ||