diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-08-19 00:56:59 -0400 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2011-10-17 05:02:52 -0400 |
commit | f350b86121c7a004a5f866333fa1d23fe30263a6 (patch) | |
tree | 9b8dc0312aaef46faf84f723c7412095dca13326 /arch/arm/mach-mxs | |
parent | 1285b8f89a0553695f4ff5f167d8b4afe91af906 (diff) |
arm/imx: use Kconfig choice for low-level debug UART selection
Now that the DEBUG_LL UART can be selected by a Kconfig choice,
simplify the #ifdefery in debug-macro.S and add entries to the
top-level Kconfig.debug instead.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/mach-mxs')
-rw-r--r-- | arch/arm/mach-mxs/include/mach/debug-macro.S | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/arch/arm/mach-mxs/include/mach/debug-macro.S b/arch/arm/mach-mxs/include/mach/debug-macro.S index 79650a1ad78d..6d9870448c3d 100644 --- a/arch/arm/mach-mxs/include/mach/debug-macro.S +++ b/arch/arm/mach-mxs/include/mach/debug-macro.S | |||
@@ -14,17 +14,9 @@ | |||
14 | #include <mach/mx23.h> | 14 | #include <mach/mx23.h> |
15 | #include <mach/mx28.h> | 15 | #include <mach/mx28.h> |
16 | 16 | ||
17 | #ifdef CONFIG_SOC_IMX23 | 17 | #ifdef CONFIG_DEBUG_IMX23_UART |
18 | #ifdef UART_PADDR | ||
19 | #error "CONFIG_DEBUG_LL is incompatible with multiple archs" | ||
20 | #endif | ||
21 | #define UART_PADDR MX23_DUART_BASE_ADDR | 18 | #define UART_PADDR MX23_DUART_BASE_ADDR |
22 | #endif | 19 | #elif defined (CONFIG_DEBUG_IMX28_UART) |
23 | |||
24 | #ifdef CONFIG_SOC_IMX28 | ||
25 | #ifdef UART_PADDR | ||
26 | #error "CONFIG_DEBUG_LL is incompatible with multiple archs" | ||
27 | #endif | ||
28 | #define UART_PADDR MX28_DUART_BASE_ADDR | 20 | #define UART_PADDR MX28_DUART_BASE_ADDR |
29 | #endif | 21 | #endif |
30 | 22 | ||