]> git.sur5r.net Git - u-boot/commitdiff
ARM: make timer variables in gt_t available for all ARM platforms
authorPrafulla Wadaskar <prafulla@marvell.com>
Wed, 1 Dec 2010 12:16:52 +0000 (17:46 +0530)
committerWolfgang Denk <wd@denx.de>
Thu, 9 Dec 2010 10:01:16 +0000 (11:01 +0100)
All code that attemots to access variables in BSS before relocation
(for example directly or indirectly by board_init_f()) needs to be
fixed. Especially timer.c needs to fix on most of the ARM platforms.

This patch makes timer related variables in gd_t available for
all ARM implementations.

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
Edited commit message.
Signed-off-by: Wolfgang Denk <wd@denx.de>
arch/arm/include/asm/global_data.h

index e459a5dc9494d63857b8fbcbf7b7680a50398326..2a84d27a4e15e10a86cc5842eae25e80d21981e1 100644 (file)
@@ -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;