]> git.sur5r.net Git - u-boot/commit
console: Implement pre-console buffer
authorGraeme Russ <graeme.russ@gmail.com>
Thu, 1 Sep 2011 00:48:27 +0000 (00:48 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 5 Oct 2011 20:03:09 +0000 (22:03 +0200)
commit9558b48af006a34d3ab7f0bd13a76b97acd45e47
treed2fbeae7e5f2ef15cc7194fd21d504229259f2de
parentcc9abfe4ceb360e9adedc4ed44eae0fcc3fd184c
console: Implement pre-console buffer

Allow redirection of console output prior to console initialisation to a
temporary buffer.

To enable this functionality, the board (or arch) must define:
 - CONFIG_PRE_CONSOLE_BUFFER - Enable pre-console buffer
 - CONFIG_PRE_CON_BUF_ADDR - Base address of pre-console buffer
 - CONFIG_PRE_CON_BUF_SZ - Size of pre-console buffer (in bytes)

The pre-console buffer will buffer the last CONFIG_PRE_CON_BUF_SZ bytes
Any earlier characters are silently dropped.
13 files changed:
README
arch/arm/include/asm/global_data.h
arch/avr32/include/asm/global_data.h
arch/blackfin/include/asm/global_data.h
arch/m68k/include/asm/global_data.h
arch/microblaze/include/asm/global_data.h
arch/mips/include/asm/global_data.h
arch/nios2/include/asm/global_data.h
arch/powerpc/include/asm/global_data.h
arch/sh/include/asm/global_data.h
arch/sparc/include/asm/global_data.h
arch/x86/include/asm/global_data.h
common/console.c