diff options
| author | Simon Glass <sjg@chromium.org> | 2013-06-11 11:14:42 -0700 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2013-06-26 10:16:41 -0400 | 
| commit | 71c52dba2bf42937e6c6b736393eeecb11f10d8f (patch) | |
| tree | 9d16c328b39782abb71b42cfeb0dedb211016e66 /include | |
| parent | 5c2aeac5ae3556fd75e63596740d9ce0faf7afa4 (diff) | |
| download | olio-uboot-2014.01-71c52dba2bf42937e6c6b736393eeecb11f10d8f.tar.xz olio-uboot-2014.01-71c52dba2bf42937e6c6b736393eeecb11f10d8f.zip | |
Add trace support to generic board
Add hooks for tracing to generic board, including:
- allow early tracing to start early as possible in U-Boot
- reserve memory for trace buffer
- copy early trace buffer to main trace buffer after relocation
- setup full tracing support after relocation
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-generic/global_data.h | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 3e9ca1182..8cfc3fa77 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -82,6 +82,9 @@ typedef struct global_data {  	unsigned long fdt_size;	/* Space reserved for relocated FDT */  	void **jt;		/* jump table */  	char env_buf[32];	/* buffer for getenv() before reloc. */ +#ifdef CONFIG_TRACE +	void		*trace_buff;	/* The trace buffer */ +#endif  	struct arch_global_data arch;	/* architecture-specific data */  } gd_t;  #endif |