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

ARM: imx: enable low-level debug support for imx6sl

Enable low-level debug support for i.MX6 SoloLite by adding the debug
port definitions for the SoC.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>

Shawn Guo 34e8a16b 45fe6810

+21 -2
+11 -2
arch/arm/Kconfig.debug
··· 251 251 Say Y here if you want kernel low-level debugging support 252 252 on i.MX6Q/DL. 253 253 254 + config DEBUG_IMX6SL_UART 255 + bool "i.MX6SL Debug UART" 256 + depends on SOC_IMX6SL 257 + help 258 + Say Y here if you want kernel low-level debugging support 259 + on i.MX6SL. 260 + 254 261 config DEBUG_MMP_UART2 255 262 bool "Kernel low-level debugging message via MMP UART2" 256 263 depends on ARCH_MMP ··· 539 532 DEBUG_IMX35_UART || \ 540 533 DEBUG_IMX51_UART || \ 541 534 DEBUG_IMX53_UART || \ 542 - DEBUG_IMX6Q_UART 535 + DEBUG_IMX6Q_UART || \ 536 + DEBUG_IMX6SL_UART 543 537 default 1 544 538 depends on ARCH_MXC 545 539 help ··· 639 631 DEBUG_IMX35_UART || \ 640 632 DEBUG_IMX51_UART || \ 641 633 DEBUG_IMX53_UART ||\ 642 - DEBUG_IMX6Q_UART 634 + DEBUG_IMX6Q_UART || \ 635 + DEBUG_IMX6SL_UART 643 636 default "debug/mvebu.S" if DEBUG_MVEBU_UART 644 637 default "debug/mxs.S" if DEBUG_IMX23_UART || DEBUG_IMX28_UART 645 638 default "debug/nomadik.S" if DEBUG_NOMADIK_UART
+10
arch/arm/include/debug/imx-uart.h
··· 65 65 #define IMX6Q_UART_BASE_ADDR(n) IMX6Q_UART##n##_BASE_ADDR 66 66 #define IMX6Q_UART_BASE(n) IMX6Q_UART_BASE_ADDR(n) 67 67 68 + #define IMX6SL_UART1_BASE_ADDR 0x02020000 69 + #define IMX6SL_UART2_BASE_ADDR 0x02024000 70 + #define IMX6SL_UART3_BASE_ADDR 0x02034000 71 + #define IMX6SL_UART4_BASE_ADDR 0x02038000 72 + #define IMX6SL_UART5_BASE_ADDR 0x02018000 73 + #define IMX6SL_UART_BASE_ADDR(n) IMX6SL_UART##n##_BASE_ADDR 74 + #define IMX6SL_UART_BASE(n) IMX6SL_UART_BASE_ADDR(n) 75 + 68 76 #define IMX_DEBUG_UART_BASE(soc) soc##_UART_BASE(CONFIG_DEBUG_IMX_UART_PORT) 69 77 70 78 #ifdef CONFIG_DEBUG_IMX1_UART ··· 91 83 #define UART_PADDR IMX_DEBUG_UART_BASE(IMX53) 92 84 #elif defined(CONFIG_DEBUG_IMX6Q_UART) 93 85 #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6Q) 86 + #elif defined(CONFIG_DEBUG_IMX6SL_UART) 87 + #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SL) 94 88 #endif 95 89 96 90 #endif /* __DEBUG_IMX_UART_H */