Skip to content

Commit 20c305f

Browse files
Anson HuangShawn Guo
authored andcommitted
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>
1 parent 022d071 commit 20c305f

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

‎arch/arm/Kconfig.debug‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,13 @@ choice
411411
Say Y here if you want kernel low-level debugging support
412412
on i.MX6SX.
413413

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+
414421
config DEBUG_IMX7D_UART
415422
bool "i.MX7D Debug UART"
416423
depends on SOC_IMX7D
@@ -1269,6 +1276,7 @@ config DEBUG_IMX_UART_PORT
12691276
DEBUG_IMX6Q_UART || \
12701277
DEBUG_IMX6SL_UART || \
12711278
DEBUG_IMX6SX_UART || \
1279+
DEBUG_IMX6UL_UART || \
12721280
DEBUG_IMX7D_UART
12731281
default 1
12741282
depends on ARCH_MXC
@@ -1320,6 +1328,7 @@ config DEBUG_LL_INCLUDE
13201328
DEBUG_IMX6Q_UART || \
13211329
DEBUG_IMX6SL_UART || \
13221330
DEBUG_IMX6SX_UART || \
1331+
DEBUG_IMX6UL_UART || \
13231332
DEBUG_IMX7D_UART
13241333
default "debug/ks8695.S" if DEBUG_KS8695_UART
13251334
default "debug/msm.S" if DEBUG_QCOM_UARTDM

‎arch/arm/include/debug/imx-uart.h‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,17 @@
9090
#define IMX6SX_UART_BASE_ADDR(n) IMX6SX_UART##n##_BASE_ADDR
9191
#define IMX6SX_UART_BASE(n) IMX6SX_UART_BASE_ADDR(n)
9292

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+
93104
#define IMX7D_UART1_BASE_ADDR 0x30860000
94105
#define IMX7D_UART2_BASE_ADDR 0x30890000
95106
#define IMX7D_UART3_BASE_ADDR 0x30880000
@@ -124,6 +135,8 @@
124135
#define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SL)
125136
#elif defined(CONFIG_DEBUG_IMX6SX_UART)
126137
#define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SX)
138+
#elif defined(CONFIG_DEBUG_IMX6UL_UART)
139+
#define UART_PADDR IMX_DEBUG_UART_BASE(IMX6UL)
127140
#elif defined(CONFIG_DEBUG_IMX7D_UART)
128141
#define UART_PADDR IMX_DEBUG_UART_BASE(IMX7D)
129142

0 commit comments

Comments
 (0)