From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Thompson Date: Thu, 02 Dec 2010 11:54:27 +0000 Subject: [U-Boot] [PATCH] ARM: make timer variables in gt_t available for all ARM platforms In-Reply-To: <1291205812-5491-1-git-send-email-prafulla@marvell.com> References: <1291205812-5491-1-git-send-email-prafulla@marvell.com> Message-ID: <4CF788F3.9000403@ge.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 01/12/10 12:16, Prafulla Wadaskar wrote: > After ARM relocation, > any code executed directly or indirectly by board_init_f() have > global (BSS) variables need to be fixed. mostly timer.c needs to > fix on most of the ARM platforms. > > This patch makes timer related variables in gd_t available for > all ARM implementation > > Signed-off-by: Prafulla Wadaskar > --- > arch/arm/include/asm/global_data.h | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h > index ada3fbb..efb502e 100644 > --- a/arch/arm/include/asm/global_data.h > +++ b/arch/arm/include/asm/global_data.h > @@ -55,7 +55,9 @@ typedef struct global_data { > unsigned long plla_rate_hz; > unsigned long pllb_rate_hz; > unsigned long at91_pllb_usb_init; > - /* "static data" needed by at91's timer.c */ > +#endif > +#ifdef CONFIG_ARM > + /* "static data" needed by most of timer.c on ARM platforms */ > unsigned long timer_rate_hz; > unsigned long tbl; > unsigned long tbu; This file is ARM specific. Doesn't this mean CONFIG_ARM is always defined here? Regards, Nick.