summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorValentin Longchamp <valentin.longchamp@keymile.com>2011-09-02 04:59:03 +0000
committerWolfgang Denk <wd@denx.de>2011-10-05 22:03:10 +0200
commitea3681a6e4f8367354092ff55b74441007319aad (patch)
tree90c6da20f27babdda66490ebf63b6ef1d084d2cc /arch/arm
parent9558b48af006a34d3ab7f0bd13a76b97acd45e47 (diff)
downloadu-boot-imx-ea3681a6e4f8367354092ff55b74441007319aad.zip
u-boot-imx-ea3681a6e4f8367354092ff55b74441007319aad.tar.gz
u-boot-imx-ea3681a6e4f8367354092ff55b74441007319aad.tar.bz2
POST/arm: adaptations needed for POST on ARM to work
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> Cc: Mike Frysinger <vapier@gentoo.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/include/asm/global_data.h4
-rw-r--r--arch/arm/lib/board.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h
index b85b7fe..1264d30 100644
--- a/arch/arm/include/asm/global_data.h
+++ b/arch/arm/include/asm/global_data.h
@@ -78,6 +78,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 85320bc..0efea66 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>