[U-Boot] [PATCH 3/7] dm: sandbox: Add necessary GD sections
Marek Vasut
marex at denx.de
Tue Aug 21 18:00:49 CEST 2012
Add GD sections necessary for driver model operation.
Signed-off-by: Marek Vasut <marex at denx.de>
---
arch/sandbox/include/asm/global_data.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/sandbox/include/asm/global_data.h b/arch/sandbox/include/asm/global_data.h
index 581fd2f..77c7508 100644
--- a/arch/sandbox/include/asm/global_data.h
+++ b/arch/sandbox/include/asm/global_data.h
@@ -25,6 +25,9 @@
#ifndef __ASM_GBL_DATA_H
#define __ASM_GBL_DATA_H
+
+#include <linux/list.h>
+
/*
* The following data structure is placed in some memory wich is
* available very early after boot (like DPRAM on MPC8xx/MPC82xx, or
@@ -43,6 +46,12 @@ typedef struct global_data {
unsigned long fb_base; /* base address of frame buffer */
u8 *ram_buf; /* emulated RAM buffer */
phys_size_t ram_size; /* RAM size */
+
+#ifdef CONFIG_DM
+ struct instance *dm_root; /* Root instance for Driver Model */
+ struct list_head core_root; /* Head of core tree */
+#endif
+
const void *fdt_blob; /* Our device tree, NULL if none */
void **jt; /* jump table */
char env_buf[32]; /* buffer for getenv() before reloc. */
--
1.7.10.4
More information about the U-Boot
mailing list