Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Anson Huang and committed by
Shawn Guo
20c305f6 022d0716

+22
+9
arch/arm/Kconfig.debug
··· 411 411 Say Y here if you want kernel low-level debugging support 412 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 421 config DEBUG_IMX7D_UART 415 422 bool "i.MX7D Debug UART" 416 423 depends on SOC_IMX7D ··· 1276 1269 DEBUG_IMX6Q_UART || \ 1277 1270 DEBUG_IMX6SL_UART || \ 1278 1271 DEBUG_IMX6SX_UART || \ 1272 + DEBUG_IMX6UL_UART || \ 1279 1273 DEBUG_IMX7D_UART 1280 1274 default 1 1281 1275 depends on ARCH_MXC ··· 1328 1320 DEBUG_IMX6Q_UART || \ 1329 1321 DEBUG_IMX6SL_UART || \ 1330 1322 DEBUG_IMX6SX_UART || \ 1323 + DEBUG_IMX6UL_UART || \ 1331 1324 DEBUG_IMX7D_UART 1332 1325 default "debug/ks8695.S" if DEBUG_KS8695_UART 1333 1326 default "debug/msm.S" if DEBUG_QCOM_UARTDM
+13
arch/arm/include/debug/imx-uart.h
··· 90 90 #define IMX6SX_UART_BASE_ADDR(n) IMX6SX_UART##n##_BASE_ADDR 91 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 104 #define IMX7D_UART1_BASE_ADDR 0x30860000 94 105 #define IMX7D_UART2_BASE_ADDR 0x30890000 95 106 #define IMX7D_UART3_BASE_ADDR 0x30880000 ··· 135 124 #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SL) 136 125 #elif defined(CONFIG_DEBUG_IMX6SX_UART) 137 126 #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SX) 127 + #elif defined(CONFIG_DEBUG_IMX6UL_UART) 128 + #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6UL) 138 129 #elif defined(CONFIG_DEBUG_IMX7D_UART) 139 130 #define UART_PADDR IMX_DEBUG_UART_BASE(IMX7D) 140 131