summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2011-06-06 16:05:48 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:39:15 -0700
commit884ac36fd86c14097ffe98f0b79d5d3bb1e2e54f (patch)
tree236243f3e110c9501c93b9a4fca93ebc8e86d579
parentf961aa5af3fa2d12fb1d273a17694bde4b64d6a0 (diff)
Add some missing includes.
I suspect these includes where usually available because something else included them earlier or because they were brought in transitively. BUG=chrome-os-partner:3905 TEST=Built coreboot u-boot. Change-Id: Ib3de0d30b3707dd2469322b639224addb23839da Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: http://gerrit.chromium.org/gerrit/2185 Reviewed-by: Stefan Reinauer <reinauer@google.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org>
-rw-r--r--arch/x86/cpu/coreboot/sdram.c1
-rw-r--r--arch/x86/include/asm/global_data.h2
-rw-r--r--arch/x86/include/asm/u-boot.h3
3 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/cpu/coreboot/sdram.c b/arch/x86/cpu/coreboot/sdram.c
index 043226bde29..5a527a35b1b 100644
--- a/arch/x86/cpu/coreboot/sdram.c
+++ b/arch/x86/cpu/coreboot/sdram.c
@@ -23,6 +23,7 @@
*/
#include <asm/u-boot-x86.h>
+#include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_data.h
index f8a16d646fd..810c3755c5e 100644
--- a/arch/x86/include/asm/global_data.h
+++ b/arch/x86/include/asm/global_data.h
@@ -35,6 +35,8 @@
#ifndef __ASSEMBLY__
+#include <asm/u-boot.h>
+
typedef struct global_data {
bd_t *bd;
unsigned long flags;
diff --git a/arch/x86/include/asm/u-boot.h b/arch/x86/include/asm/u-boot.h
index a43b3aadedd..d084a3d1e4b 100644
--- a/arch/x86/include/asm/u-boot.h
+++ b/arch/x86/include/asm/u-boot.h
@@ -36,6 +36,9 @@
#ifndef _U_BOOT_H_
#define _U_BOOT_H_ 1
+#include <config.h>
+#include <compiler.h>
+
typedef struct bd_info {
unsigned long bi_memstart; /* start of DRAM memory */
phys_size_t bi_memsize; /* size of DRAM memory in bytes */