Patchwork [U-Boot,04/12] x86: Add an fdt pointer to the global data structure

login
register
mail settings
Submitter Simon Glass
Date Oct. 20, 2012, 10:33 p.m.
Message ID <1350772396-28946-5-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/192959/
State Accepted, archived
Delegated to: Simon Glass
Headers show

Comments

Simon Glass - Oct. 20, 2012, 10:33 p.m.
From: Gabe Black <gabeblack@chromium.org>

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>
Signed-off-by: Simon Glass <sjg@chromium.org>
---
 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 3c79508..d3b6031 100644
--- a/arch/x86/include/asm/global_data.h
+++ b/arch/x86/include/asm/global_data.h
@@ -57,6 +57,7 @@  typedef	struct global_data {
 	unsigned long	new_gd_addr;	/* New location of Global Data */
 	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;