diff options
-rw-r--r-- | arch/arm/mach-mx25/clock.c | 3 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/debug-macro.S | 4 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/mx25.h | 8 |
3 files changed, 8 insertions, 7 deletions
diff --git a/arch/arm/mach-mx25/clock.c b/arch/arm/mach-mx25/clock.c index 1a58cae4d5e8..02f82478075f 100644 --- a/arch/arm/mach-mx25/clock.c +++ b/arch/arm/mach-mx25/clock.c | |||
@@ -292,6 +292,9 @@ int __init mx25_clocks_init(void) | |||
292 | __raw_writel((1 << 19), CRM_BASE + CCM_CGCR0); | 292 | __raw_writel((1 << 19), CRM_BASE + CCM_CGCR0); |
293 | __raw_writel((0xf << 16) | (3 << 26), CRM_BASE + CCM_CGCR1); | 293 | __raw_writel((0xf << 16) | (3 << 26), CRM_BASE + CCM_CGCR1); |
294 | __raw_writel((1 << 5), CRM_BASE + CCM_CGCR2); | 294 | __raw_writel((1 << 5), CRM_BASE + CCM_CGCR2); |
295 | #if defined(CONFIG_DEBUG_LL) && !defined(CONFIG_DEBUG_ICEDCC) | ||
296 | clk_enable(&uart1_clk); | ||
297 | #endif | ||
295 | 298 | ||
296 | /* Clock source for lcdc and csi is upll */ | 299 | /* Clock source for lcdc and csi is upll */ |
297 | __raw_writel(__raw_readl(CRM_BASE+0x64) | (1 << 7) | (1 << 0), | 300 | __raw_writel(__raw_readl(CRM_BASE+0x64) | (1 << 7) | (1 << 0), |
diff --git a/arch/arm/plat-mxc/include/mach/debug-macro.S b/arch/arm/plat-mxc/include/mach/debug-macro.S index 0b6e11eaeb8c..25606409aabc 100644 --- a/arch/arm/plat-mxc/include/mach/debug-macro.S +++ b/arch/arm/plat-mxc/include/mach/debug-macro.S | |||
@@ -23,8 +23,8 @@ | |||
23 | #error "CONFIG_DEBUG_LL is incompatible with multiple archs" | 23 | #error "CONFIG_DEBUG_LL is incompatible with multiple archs" |
24 | #endif | 24 | #endif |
25 | #include <mach/mx25.h> | 25 | #include <mach/mx25.h> |
26 | #define UART_PADDR UART1_BASE_ADDR | 26 | #define UART_PADDR MX25_UART1_BASE_ADDR |
27 | #define UART_VADDR MX25_AIPS1_IO_ADDRESS(UART1_BASE_ADDR) | 27 | #define UART_VADDR MX25_AIPS1_IO_ADDRESS(MX25_UART1_BASE_ADDR) |
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | #ifdef CONFIG_ARCH_MX2 | 30 | #ifdef CONFIG_ARCH_MX2 |
diff --git a/arch/arm/plat-mxc/include/mach/mx25.h b/arch/arm/plat-mxc/include/mach/mx25.h index 2f2aad1032c1..11b044f5b10f 100644 --- a/arch/arm/plat-mxc/include/mach/mx25.h +++ b/arch/arm/plat-mxc/include/mach/mx25.h | |||
@@ -31,6 +31,9 @@ | |||
31 | IMX_IO_ADDRESS(x, MX25_AIPS2) ?: \ | 31 | IMX_IO_ADDRESS(x, MX25_AIPS2) ?: \ |
32 | IMX_IO_ADDRESS(x, MX25_AVIC)) | 32 | IMX_IO_ADDRESS(x, MX25_AVIC)) |
33 | 33 | ||
34 | #define MX25_AIPS1_IO_ADDRESS(x) \ | ||
35 | (((x) - MX25_AIPS1_BASE_ADDR) + MX25_AIPS1_BASE_ADDR_VIRT) | ||
36 | |||
34 | #define MX25_UART1_BASE_ADDR 0x43f90000 | 37 | #define MX25_UART1_BASE_ADDR 0x43f90000 |
35 | #define MX25_UART2_BASE_ADDR 0x43f94000 | 38 | #define MX25_UART2_BASE_ADDR 0x43f94000 |
36 | #define MX25_AUDMUX_BASE_ADDR 0x43fb0000 | 39 | #define MX25_AUDMUX_BASE_ADDR 0x43fb0000 |
@@ -70,9 +73,4 @@ | |||
70 | #define MX25_INT_UART1 45 | 73 | #define MX25_INT_UART1 45 |
71 | #define MX25_INT_FEC 57 | 74 | #define MX25_INT_FEC 57 |
72 | 75 | ||
73 | #if defined(IMX_NEEDS_DEPRECATED_SYMBOLS) | ||
74 | #define UART1_BASE_ADDR MX25_UART1_BASE_ADDR | ||
75 | #define UART2_BASE_ADDR MX25_UART2_BASE_ADDR | ||
76 | #endif | ||
77 | |||
78 | #endif /* ifndef __MACH_MX25_H__ */ | 76 | #endif /* ifndef __MACH_MX25_H__ */ |