diff mbox

[U-Boot,v4,1/8] POST/arm: adaptations needed for POST on ARM to work

Message ID 1315837122-11952-2-git-send-email-valentin.longchamp@keymile.com
State Accepted
Delegated to: Wolfgang Denk
Headers show

Commit Message

Valentin Longchamp Sept. 12, 2011, 2:18 p.m. UTC
For post to run on ARM, 3 things are needed:
- post_log_word to be defined in gd
- a post.h include in arch/arm/lib/board.c

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
---
Changes for v2:
 - introduced CONFIG_POST_EXTERNAL_WORD_FUNCS
Changes for v3:
 - removed CONFIG_POST_EXTERNAL_WORD_FUNCS. This is now in a separate
   patch
---
 arch/arm/include/asm/global_data.h |    4 ++++
 arch/arm/lib/board.c               |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)

Comments

Wolfgang Denk Oct. 5, 2011, 6:51 p.m. UTC | #1
Dear Valentin Longchamp,

In message <1315837122-11952-2-git-send-email-valentin.longchamp@keymile.com> you wrote:
> For post to run on ARM, 3 things are needed:
> - post_log_word to be defined in gd
> - a post.h include in arch/arm/lib/board.c
> 
> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
> Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
> Acked-by: Mike Frysinger <vapier@gentoo.org>
> ---
> Changes for v2:
>  - introduced CONFIG_POST_EXTERNAL_WORD_FUNCS
> Changes for v3:
>  - removed CONFIG_POST_EXTERNAL_WORD_FUNCS. This is now in a separate
>    patch
> ---
>  arch/arm/include/asm/global_data.h |    4 ++++
>  arch/arm/lib/board.c               |    2 ++
>  2 files changed, 6 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h
index 4fc51fd..b2c336a 100644
--- a/arch/arm/include/asm/global_data.h
+++ b/arch/arm/include/asm/global_data.h
@@ -75,6 +75,10 @@  typedef	struct	global_data {
 #endif
 	void		**jt;		/* jump table */
 	char		env_buf[32];	/* buffer for getenv() before reloc. */
+#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
 } gd_t;
 
 /*
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index a7fb251..44ff2f8 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -48,6 +48,8 @@ 
 #include <nand.h>
 #include <onenand_uboot.h>
 #include <mmc.h>
+#include <post.h>
+#include <logbuff.h>
 
 #ifdef CONFIG_BITBANGMII
 #include <miiphy.h>