Patchwork [U-Boot] post, arm: make post support for arm compile clean

login
register
mail settings
Submitter Heiko Schocher
Date Sept. 15, 2011, 5:30 a.m.
Message ID <1316064659-5266-1-git-send-email-hs@denx.de>
Download mbox | patch
Permalink /patch/114741/
State Superseded
Delegated to: Albert ARIBAUD
Headers show

Comments

Heiko Schocher - Sept. 15, 2011, 5:30 a.m.
Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
---
 arch/arm/include/asm/global_data.h |    4 ++++
 arch/arm/lib/board.c               |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)

Patch

diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h
index 4fc51fd..a6e2ab9 100644
--- a/arch/arm/include/asm/global_data.h
+++ b/arch/arm/include/asm/global_data.h
@@ -41,6 +41,10 @@  typedef	struct	global_data {
 	unsigned long	env_addr;	/* Address  of Environment struct */
 	unsigned long	env_valid;	/* Checksum of Environment valid? */
 	unsigned long	fb_base;	/* base address of frame buffer */
+#if defined(CONFIG_POST) || defined(CONFIG_LOGBUFFER)
+	unsigned long	post_log_word;  /* Record POST activities */
+	unsigned long	post_init_f_time;  /* When post_init_f started */
+#endif
 #ifdef CONFIG_FSL_ESDHC
 	unsigned long	sdhc_clk;
 #endif
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index f888548..d67e415 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -64,6 +64,10 @@ 
 #include <logbuff.h>
 #endif
 
+#if defined(CONFIG_POST)
+#include <post.h>
+#endif
+
 DECLARE_GLOBAL_DATA_PTR;
 
 ulong monitor_flash_len;