diff options
author | Prafulla Wadaskar <prafulla@marvell.com> | 2010-12-01 17:46:52 +0530 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-12-09 11:01:16 +0100 |
commit | f9de0997d773699fb4bda1c1ad7462aa2fcd00e9 (patch) | |
tree | 29fc628a46d09c0b6455a92208d373f69b70f703 | |
parent | b9c5081d7d6ebc3290813675ca8771f4471edb85 (diff) | |
download | u-boot-imx-f9de0997d773699fb4bda1c1ad7462aa2fcd00e9.zip u-boot-imx-f9de0997d773699fb4bda1c1ad7462aa2fcd00e9.tar.gz u-boot-imx-f9de0997d773699fb4bda1c1ad7462aa2fcd00e9.tar.bz2 |
ARM: make timer variables in gt_t available for all ARM platforms
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>
-rw-r--r-- | 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 e459a5d..2a84d27 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; |