diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2015-05-06 12:31:56 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-05-07 09:49:37 +0200 |
commit | 089a70dc9c5edb424a6392259129016435acf162 (patch) | |
tree | b885ad3ef87f2cddb00ce1fa84a5a6af35c925e5 /arch/arm/mach-imx/include | |
parent | 97afd89b435f43d87d195a8ff38f57a0aa5de6dd (diff) | |
download | barebox-089a70dc9c5edb424a6392259129016435acf162.tar.gz barebox-089a70dc9c5edb424a6392259129016435acf162.tar.xz |
i.MX: Move UART definitions into a separate file
Move UART definitions into a separate file to avoid redefinition in
<mach/debug_ll.h> and magical constants in low level UART
initialization code.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/include')
-rw-r--r-- | arch/arm/mach-imx/include/mach/debug_ll.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/mach-imx/include/mach/debug_ll.h b/arch/arm/mach-imx/include/mach/debug_ll.h index f34eaa139f..31371e2bba 100644 --- a/arch/arm/mach-imx/include/mach/debug_ll.h +++ b/arch/arm/mach-imx/include/mach/debug_ll.h @@ -13,6 +13,8 @@ #include <mach/imx53-regs.h> #include <mach/imx6-regs.h> +#include <serial/imx-uart.h> + #ifdef CONFIG_DEBUG_LL #ifdef CONFIG_DEBUG_IMX1_UART @@ -40,14 +42,6 @@ #define __IMX_UART_BASE(soc, num) soc##_UART##num##_BASE_ADDR #define IMX_UART_BASE(soc, num) __IMX_UART_BASE(soc, num) -#define URTX0 0x40 /* Transmitter Register */ - -#define UCR1 0x80 /* Control Register 1 */ -#define UCR1_UARTEN (1 << 0) /* UART enabled */ - -#define USR2 0x98 /* Status Register 2 */ -#define USR2_TXDC (1 << 3) /* Transmitter complete */ - static inline void PUTC_LL(int c) { void __iomem *base = (void *)IMX_UART_BASE(IMX_DEBUG_SOC, |