summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/include/mach/debug_ll.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-08-25 17:14:57 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-09-05 10:15:48 +0200
commit4960dc9db00fcf5058196dbcb94c2f139999bd2e (patch)
tree9d61a2eab6283efb10dc7fc57a8578d7189609ee /arch/arm/mach-imx/include/mach/debug_ll.h
parentabd545d2f9b91268ed90879d929b0e5e055d574d (diff)
downloadbarebox-4960dc9db00fcf5058196dbcb94c2f139999bd2e.tar.gz
barebox-4960dc9db00fcf5058196dbcb94c2f139999bd2e.tar.xz
rework debug_ll
Convert to static inline functions and use lower case letters for function names. Also, include mach/debug_ll.h when an architecture provides support for debug_ll, not only when it's actually enabled. This allows architecures to put some UART initialization code into mach/debug_ll.h which is compiled out when debug_ll is disabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/include/mach/debug_ll.h')
-rw-r--r--arch/arm/mach-imx/include/mach/debug_ll.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/include/mach/debug_ll.h b/arch/arm/mach-imx/include/mach/debug_ll.h
index 0bb28ee6ea..f34eaa139f 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>
+#ifdef CONFIG_DEBUG_LL
+
#ifdef CONFIG_DEBUG_IMX1_UART
#define IMX_DEBUG_SOC MX1
#elif defined CONFIG_DEBUG_IMX21_UART
@@ -61,5 +63,5 @@ static inline void PUTC_LL(int c)
writel(c, base + URTX0);
}
-
+#endif /* CONFIG_DEBUG_LL */
#endif /* __MACH_DEBUG_LL_H__ */