Patchwork [U-Boot,v2] x86: Add a pointer to the global data structure to point to the device tree

login
register
mail settings
Submitter Gabe Black
Date Dec. 6, 2011, 1:58 a.m.
Message ID <1323136704-24205-1-git-send-email-gabeblack@chromium.org>
Download mbox | patch
Permalink /patch/129494/
State Superseded, archived
Delegated to: Simon Glass
Headers show

Comments

Gabe Black - Dec. 6, 2011, 1:58 a.m.
This change adds a pointer to the global data structure in x86 to point to
the device tree. This mirrors an identical pointer in ARM.

Signed-off-by: Gabe Black <gabeblack@chromium.org>
---
Changes in v2:
Update the name of the pointer to what ARM is now using.

 arch/x86/include/asm/global_data.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_data.h
index 05a2139..2130f37 100644
--- a/arch/x86/include/asm/global_data.h
+++ b/arch/x86/include/asm/global_data.h
@@ -53,6 +53,7 @@  typedef	struct global_data {
 	unsigned long	start_addr_sp;	/* start_addr_stackpointer */
 	phys_size_t	ram_size;	/* RAM size */
 	unsigned long	reset_status;	/* reset status register at boot */
+	const void	*fdt_blob;	/* Our device tree, NULL if none */
 	void		**jt;		/* jump table */
 	char		env_buf[32];	/* buffer for getenv() before reloc. */
 } gd_t;