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:
@@ -36,7 +36,7 @@ typedef struct global_data {
|
||||
#if defined(CONFIG_LCD) || defined(CONFIG_VIDEO)
|
||||
unsigned long fb_base; /* Base address of framebuffer mem */
|
||||
#endif
|
||||
#if defined(CONFIG_POST) || defined(CONFIG_LOGBUFFER)
|
||||
#if defined(CONFIG_POST)
|
||||
unsigned long post_log_word; /* Record POST activities */
|
||||
unsigned long post_log_res; /* success of POST test */
|
||||
unsigned long post_init_f_time; /* When post_init_f started */
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
/*
|
||||
* (C) Copyright 2002-2007
|
||||
* Detlev Zundel, dzu@denx.de.
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
#ifndef _LOGBUFF_H
|
||||
#define _LOGBUFF_H
|
||||
|
||||
#ifdef CONFIG_LOGBUFFER
|
||||
|
||||
#define LOGBUFF_MAGIC 0xc0de4ced /* Forced by code, eh! */
|
||||
#define LOGBUFF_LEN (16384) /* Must be 16k right now */
|
||||
#define LOGBUFF_MASK (LOGBUFF_LEN-1)
|
||||
#define LOGBUFF_OVERHEAD (4096) /* Logbuffer overhead for extra info */
|
||||
#define LOGBUFF_RESERVE (LOGBUFF_LEN+LOGBUFF_OVERHEAD)
|
||||
|
||||
/* The mapping used here has to be the same as in setup_ext_logbuff ()
|
||||
in linux/kernel/printk */
|
||||
|
||||
typedef struct {
|
||||
union {
|
||||
struct {
|
||||
unsigned long tag;
|
||||
unsigned long start;
|
||||
unsigned long con;
|
||||
unsigned long end;
|
||||
unsigned long chars;
|
||||
} v2;
|
||||
struct {
|
||||
unsigned long dummy;
|
||||
unsigned long tag;
|
||||
unsigned long start;
|
||||
unsigned long size;
|
||||
unsigned long chars;
|
||||
} v1;
|
||||
};
|
||||
unsigned char buf[0];
|
||||
} logbuff_t;
|
||||
|
||||
int drv_logbuff_init (void);
|
||||
void logbuff_init_ptrs (void);
|
||||
void logbuff_log(char *msg);
|
||||
void logbuff_reset (void);
|
||||
unsigned long logbuffer_base (void);
|
||||
|
||||
#endif /* CONFIG_LOGBUFFER */
|
||||
|
||||
#endif /* _LOGBUFF_H */
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
#if defined(CONFIG_POST) || defined(CONFIG_LOGBUFFER)
|
||||
#if defined(CONFIG_POST)
|
||||
|
||||
#ifndef CONFIG_POST_EXTERNAL_WORD_FUNCS
|
||||
#ifdef CONFIG_SYS_POST_WORD_ADDR
|
||||
@@ -58,7 +58,7 @@ extern ulong post_word_load(void);
|
||||
extern void post_word_store(ulong value);
|
||||
|
||||
#endif /* CONFIG_POST_EXTERNAL_WORD_FUNCS */
|
||||
#endif /* defined (CONFIG_POST) || defined(CONFIG_LOGBUFFER) */
|
||||
#endif /* defined (CONFIG_POST) */
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#ifdef CONFIG_POST
|
||||
|
||||
Reference in New Issue
Block a user