aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/debug
diff options
context:
space:
mode:
authorAnson Huang <b20788@freescale.com>2015-05-06 11:16:07 -0400
committerShawn Guo <shawn.guo@linaro.org>2015-06-03 02:49:35 -0400
commit52d7aec2b8831deae7c0010ed24664d3544e0098 (patch)
tree0ece1cf21697963630cebbcd42dcd11c8d065adb /arch/arm/include/debug
parent666c884418f7b314b3ddf3214ec0ad0aadf81c84 (diff)
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>
Diffstat (limited to 'arch/arm/include/debug')
-rw-r--r--arch/arm/include/debug/imx-uart.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/arch/arm/include/debug/imx-uart.h b/arch/arm/include/debug/imx-uart.h
index 032a316eb802..66f736f74684 100644
--- a/arch/arm/include/debug/imx-uart.h
+++ b/arch/arm/include/debug/imx-uart.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2012 Freescale Semiconductor, Inc. 2 * Copyright (C) 2012-2015 Freescale Semiconductor, Inc.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify 4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as 5 * it under the terms of the GNU General Public License version 2 as
@@ -90,6 +90,16 @@
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 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
93#define IMX_DEBUG_UART_BASE(soc) soc##_UART_BASE(CONFIG_DEBUG_IMX_UART_PORT) 103#define IMX_DEBUG_UART_BASE(soc) soc##_UART_BASE(CONFIG_DEBUG_IMX_UART_PORT)
94 104
95#ifdef CONFIG_DEBUG_IMX1_UART 105#ifdef CONFIG_DEBUG_IMX1_UART
@@ -114,6 +124,9 @@
114#define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SL) 124#define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SL)
115#elif defined(CONFIG_DEBUG_IMX6SX_UART) 125#elif defined(CONFIG_DEBUG_IMX6SX_UART)
116#define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SX) 126#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
117#endif 130#endif
118 131
119#endif /* __DEBUG_IMX_UART_H */ 132#endif /* __DEBUG_IMX_UART_H */