diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-12-07 16:43:12 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-12-07 16:43:12 +0100 |
commit | 0ae4b1e82778ac6df74a06eacffe2f9373b95ee3 (patch) | |
tree | 99c668fbb04a4f626f0e686c3aa1df9a64e464b6 /include | |
parent | c3a84a3f760b3892501591f5a6b037611477dc9f (diff) | |
parent | 2ff02e7aa1a4f9f59c8786e9fdade070a8e7fd79 (diff) | |
download | barebox-0ae4b1e82778ac6df74a06eacffe2f9373b95ee3.tar.gz barebox-0ae4b1e82778ac6df74a06eacffe2f9373b95ee3.tar.xz |
Merge branch 'for-next/imx'
Conflicts:
arch/arm/mach-imx/include/mach/devices-imx53.h
Diffstat (limited to 'include')
-rw-r--r-- | include/debug_ll.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/include/debug_ll.h b/include/debug_ll.h index c7445731d6..f0034ba06a 100644 --- a/include/debug_ll.h +++ b/include/debug_ll.h @@ -1,4 +1,5 @@ -/* debug_ll.h +/* + * debug_ll.h * * written by Marc Singer * 12 Feb 2005 @@ -20,9 +21,16 @@ #define __INCLUDE_DEBUG_LL_H__ #if defined (CONFIG_DEBUG_LL) + +/* + * mach/debug_ll.h should implement PUTC_LL. This can be a macro or a static + * inline function. Note that several SoCs expect the UART to be initialized + * by a debugger or a first stage bootloader. You won't see anything without + * this initialization. Depending on the PUTC_LL implementation the board might + * also hang in PUTC_LL without proper initialization. + */ # include <mach/debug_ll.h> -#define PUTC_LL(x) putc(x) # define PUTHEX_LL(value) ({ unsigned long v = (unsigned long) (value); \ int i; unsigned char ch; \ for (i = 8; i--; ) {\ @@ -30,6 +38,11 @@ ch += (ch >= 10) ? 'a' - 10 : '0';\ PUTC_LL (ch); }}) +/* + * Be careful with PUTS_LL, it only works if the binary is running at the + * link address which often is not the case during early startup. If in doubt + * don't use it. + */ static __inline__ void PUTS_LL(const char * str) { while (*str) { |