mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
Drop the log buffer
This does not appear to be used by any boards. Before introducing a new log system, remove this old one. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
0ad0458c76
commit
c5404b64fb
12 changed files with 5 additions and 436 deletions
|
@ -30,7 +30,6 @@
|
|||
#if defined(CONFIG_CMD_KGDB)
|
||||
#include <kgdb.h>
|
||||
#endif
|
||||
#include <logbuff.h>
|
||||
#include <malloc.h>
|
||||
#include <mapmem.h>
|
||||
#ifdef CONFIG_BITBANGMII
|
||||
|
@ -200,19 +199,6 @@ static int initr_addr_map(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LOGBUFFER
|
||||
unsigned long logbuffer_base(void)
|
||||
{
|
||||
return gd->ram_top - LOGBUFF_LEN;
|
||||
}
|
||||
|
||||
static int initr_logbuffer(void)
|
||||
{
|
||||
logbuff_init_ptrs();
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_POST
|
||||
static int initr_post_backlog(void)
|
||||
{
|
||||
|
@ -628,7 +614,7 @@ static int initr_ide(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_PRAM) || defined(CONFIG_LOGBUFFER)
|
||||
#if defined(CONFIG_PRAM)
|
||||
/*
|
||||
* Export available size of memory for Linux, taking into account the
|
||||
* protected RAM at top of memory
|
||||
|
@ -640,10 +626,6 @@ int initr_mem(void)
|
|||
|
||||
# ifdef CONFIG_PRAM
|
||||
pram = env_get_ulong("pram", 10, CONFIG_PRAM);
|
||||
# endif
|
||||
# if defined(CONFIG_LOGBUFFER) && !defined(CONFIG_ALT_LB_ADDR)
|
||||
/* Also take the logbuffer into account (pram is in kB) */
|
||||
pram += (LOGBUFF_LEN + LOGBUFF_OVERHEAD) / 1024;
|
||||
# endif
|
||||
sprintf(memsz, "%ldk", (long int) ((gd->ram_size / 1024) - pram));
|
||||
env_set("mem", memsz);
|
||||
|
@ -753,9 +735,6 @@ static init_fnc_t init_sequence_r[] = {
|
|||
board_early_init_r,
|
||||
#endif
|
||||
INIT_FUNC_WATCHDOG_RESET
|
||||
#ifdef CONFIG_LOGBUFFER
|
||||
initr_logbuffer,
|
||||
#endif
|
||||
#ifdef CONFIG_POST
|
||||
initr_post_backlog,
|
||||
#endif
|
||||
|
@ -877,7 +856,7 @@ static init_fnc_t init_sequence_r[] = {
|
|||
INIT_FUNC_WATCHDOG_RESET
|
||||
initr_bedbug,
|
||||
#endif
|
||||
#if defined(CONFIG_PRAM) || defined(CONFIG_LOGBUFFER)
|
||||
#if defined(CONFIG_PRAM)
|
||||
initr_mem,
|
||||
#endif
|
||||
#ifdef CONFIG_PS2KBD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue