[U-Boot] [RFC PATCH 15/19] Add fields required by x86 to global_data

Simon Glass sjg at chromium.org
Wed Dec 28 07:35:56 CET 2011


These two fields are needed for x86.

Signed-off-by: Simon Glass <sjg at chromium.org>
---
 include/asm-generic/global_data.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index 16fee5a..99750a8 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -50,6 +50,10 @@ typedef struct global_data {
 #endif
 	unsigned long	env_addr;	/* Address  of Environment struct */
 	unsigned long	env_valid;	/* Checksum of Environment valid? */
+#ifdef CONFIG_X86
+	unsigned long	cpu_clk;	/* CPU clock in Hz!		*/
+	unsigned long	bus_clk;
+#endif
 	unsigned long	fb_base;	/* base address of frame buffer */
 #ifdef CONFIG_FSL_ESDHC
 	unsigned long	sdhc_clk;
-- 
1.7.3.1



More information about the U-Boot mailing list