diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2013-03-29 01:07:34 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-04-01 08:42:17 -0400 |
commit | 1f629564d08d44e1960800f96b1c6ad19e44b4ae (patch) | |
tree | 841e63f0ed6d155a3d2a9babc89beeafe43e3fd7 /arch/arm/mach-mxs | |
parent | 69d75a02db28c8bb04a4a70b1a577d571fc8e800 (diff) |
ARM: mxs: use debug_ll_io_init for low-level debug
The only user of the static mapping done in mx23_map_io and mx28_map_io
is low-level debug now. Use debug_ll_io_init() instead, so that the
static mapping is used nowhere and can be removed completely later.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-mxs')
-rw-r--r-- | arch/arm/mach-mxs/include/mach/debug-macro.S | 9 | ||||
-rw-r--r-- | arch/arm/mach-mxs/mach-mxs.c | 5 |
2 files changed, 6 insertions, 8 deletions
diff --git a/arch/arm/mach-mxs/include/mach/debug-macro.S b/arch/arm/mach-mxs/include/mach/debug-macro.S index 90c6b7836ad3..d86951551ca1 100644 --- a/arch/arm/mach-mxs/include/mach/debug-macro.S +++ b/arch/arm/mach-mxs/include/mach/debug-macro.S | |||
@@ -11,16 +11,13 @@ | |||
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <mach/mx23.h> | ||
15 | #include <mach/mx28.h> | ||
16 | |||
17 | #ifdef CONFIG_DEBUG_IMX23_UART | 14 | #ifdef CONFIG_DEBUG_IMX23_UART |
18 | #define UART_PADDR MX23_DUART_BASE_ADDR | 15 | #define UART_PADDR 0x80070000 |
19 | #elif defined (CONFIG_DEBUG_IMX28_UART) | 16 | #elif defined (CONFIG_DEBUG_IMX28_UART) |
20 | #define UART_PADDR MX28_DUART_BASE_ADDR | 17 | #define UART_PADDR 0x80074000 |
21 | #endif | 18 | #endif |
22 | 19 | ||
23 | #define UART_VADDR MXS_IO_ADDRESS(UART_PADDR) | 20 | #define UART_VADDR 0xfe100000 |
24 | 21 | ||
25 | .macro addruart, rp, rv, tmp | 22 | .macro addruart, rp, rv, tmp |
26 | ldr \rp, =UART_PADDR @ physical | 23 | ldr \rp, =UART_PADDR @ physical |
diff --git a/arch/arm/mach-mxs/mach-mxs.c b/arch/arm/mach-mxs/mach-mxs.c index c192fd62ebef..069049200eb4 100644 --- a/arch/arm/mach-mxs/mach-mxs.c +++ b/arch/arm/mach-mxs/mach-mxs.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/phy.h> | 27 | #include <linux/phy.h> |
28 | #include <linux/pinctrl/consumer.h> | 28 | #include <linux/pinctrl/consumer.h> |
29 | #include <asm/mach/arch.h> | 29 | #include <asm/mach/arch.h> |
30 | #include <asm/mach/map.h> | ||
30 | #include <asm/mach/time.h> | 31 | #include <asm/mach/time.h> |
31 | #include <asm/system_misc.h> | 32 | #include <asm/system_misc.h> |
32 | #include <mach/common.h> | 33 | #include <mach/common.h> |
@@ -507,7 +508,7 @@ static const char *imx28_dt_compat[] __initdata = { | |||
507 | }; | 508 | }; |
508 | 509 | ||
509 | DT_MACHINE_START(IMX23, "Freescale i.MX23 (Device Tree)") | 510 | DT_MACHINE_START(IMX23, "Freescale i.MX23 (Device Tree)") |
510 | .map_io = mx23_map_io, | 511 | .map_io = debug_ll_io_init, |
511 | .init_irq = irqchip_init, | 512 | .init_irq = irqchip_init, |
512 | .handle_irq = icoll_handle_irq, | 513 | .handle_irq = icoll_handle_irq, |
513 | .init_time = imx23_timer_init, | 514 | .init_time = imx23_timer_init, |
@@ -517,7 +518,7 @@ DT_MACHINE_START(IMX23, "Freescale i.MX23 (Device Tree)") | |||
517 | MACHINE_END | 518 | MACHINE_END |
518 | 519 | ||
519 | DT_MACHINE_START(IMX28, "Freescale i.MX28 (Device Tree)") | 520 | DT_MACHINE_START(IMX28, "Freescale i.MX28 (Device Tree)") |
520 | .map_io = mx28_map_io, | 521 | .map_io = debug_ll_io_init, |
521 | .init_irq = irqchip_init, | 522 | .init_irq = irqchip_init, |
522 | .handle_irq = icoll_handle_irq, | 523 | .handle_irq = icoll_handle_irq, |
523 | .init_time = imx28_timer_init, | 524 | .init_time = imx28_timer_init, |