Skip to content

Commit 52d7aec

Browse files
Anson HuangShawn Guo
authored andcommitted
ARM: imx7d: add low level debug uart support
Add low level uart debug support for imx7d Signed-off-by: Frank Li <Frank.Li@freescale.com> Signed-off-by: Bai Ping <b51503@freescale.com> Signed-off-by: Anson Huang <b20788@freescale.com> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
1 parent 666c884 commit 52d7aec

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

‎arch/arm/Kconfig.debug‎

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

413+
config DEBUG_IMX7D_UART
414+
bool "i.MX7D Debug UART"
415+
depends on SOC_IMX7D
416+
help
417+
Say Y here if you want kernel low-level debugging support
418+
on i.MX7D.
419+
413420
config DEBUG_KEYSTONE_UART0
414421
bool "Kernel low-level debugging on KEYSTONE2 using UART0"
415422
depends on ARCH_KEYSTONE
@@ -1231,7 +1238,8 @@ config DEBUG_IMX_UART_PORT
12311238
DEBUG_IMX53_UART || \
12321239
DEBUG_IMX6Q_UART || \
12331240
DEBUG_IMX6SL_UART || \
1234-
DEBUG_IMX6SX_UART
1241+
DEBUG_IMX6SX_UART || \
1242+
DEBUG_IMX7D_UART
12351243
default 1
12361244
depends on ARCH_MXC
12371245
help
@@ -1281,7 +1289,8 @@ config DEBUG_LL_INCLUDE
12811289
DEBUG_IMX53_UART ||\
12821290
DEBUG_IMX6Q_UART || \
12831291
DEBUG_IMX6SL_UART || \
1284-
DEBUG_IMX6SX_UART
1292+
DEBUG_IMX6SX_UART || \
1293+
DEBUG_IMX7D_UART
12851294
default "debug/ks8695.S" if DEBUG_KS8695_UART
12861295
default "debug/msm.S" if DEBUG_QCOM_UARTDM
12871296
default "debug/netx.S" if DEBUG_NETX_UART

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2012 Freescale Semiconductor, Inc.
2+
* Copyright (C) 2012-2015 Freescale Semiconductor, Inc.
33
*
44
* This program is free software; you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License version 2 as
@@ -90,6 +90,16 @@
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 IMX7D_UART1_BASE_ADDR 0x30860000
94+
#define IMX7D_UART2_BASE_ADDR 0x30890000
95+
#define IMX7D_UART3_BASE_ADDR 0x30880000
96+
#define IMX7D_UART4_BASE_ADDR 0x30a60000
97+
#define IMX7D_UART5_BASE_ADDR 0x30a70000
98+
#define IMX7D_UART6_BASE_ADDR 0x30a80000
99+
#define IMX7D_UART7_BASE_ADDR 0x30a90000
100+
#define IMX7D_UART_BASE_ADDR(n) IMX7D_UART##n##_BASE_ADDR
101+
#define IMX7D_UART_BASE(n) IMX7D_UART_BASE_ADDR(n)
102+
93103
#define IMX_DEBUG_UART_BASE(soc) soc##_UART_BASE(CONFIG_DEBUG_IMX_UART_PORT)
94104

95105
#ifdef CONFIG_DEBUG_IMX1_UART
@@ -114,6 +124,9 @@
114124
#define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SL)
115125
#elif defined(CONFIG_DEBUG_IMX6SX_UART)
116126
#define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SX)
127+
#elif defined(CONFIG_DEBUG_IMX7D_UART)
128+
#define UART_PADDR IMX_DEBUG_UART_BASE(IMX7D)
129+
117130
#endif
118131

119132
#endif /* __DEBUG_IMX_UART_H */

0 commit comments

Comments
 (0)