]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/include/asm/global_data.h
merged tx6dl-devel into denx master branch
[karo-tx-uboot.git] / arch / arm / include / asm / global_data.h
1 /*
2  * (C) Copyright 2002-2010
3  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 #ifndef __ASM_GBL_DATA_H
9 #define __ASM_GBL_DATA_H
10
11 #ifdef CONFIG_OMAP
12 #include <asm/omap_boot.h>
13 #endif
14
15 /* Architecture-specific global data */
16 struct arch_global_data {
17 #if defined(CONFIG_FSL_ESDHC)
18         u32 sdhc_clk;
19 #endif
20 #ifdef CONFIG_VIDEO_IPUV3
21         unsigned int    ipu_hw_rev;
22 #endif
23 #ifdef CONFIG_AT91FAMILY
24         /* "static data" needed by at91's clock.c */
25         unsigned long   cpu_clk_rate_hz;
26         unsigned long   main_clk_rate_hz;
27         unsigned long   mck_rate_hz;
28         unsigned long   plla_rate_hz;
29         unsigned long   pllb_rate_hz;
30         unsigned long   at91_pllb_usb_init;
31 #endif
32         /* "static data" needed by most of timer.c on ARM platforms */
33         unsigned long timer_rate_hz;
34         unsigned long tbu;
35         unsigned long tbl;
36         unsigned long lastinc;
37         unsigned long long timer_reset_value;
38 #ifdef CONFIG_IXP425
39         unsigned long timestamp;
40 #endif
41 #if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
42         unsigned long tlb_addr;
43         unsigned long tlb_size;
44 #endif
45
46 #ifdef CONFIG_OMAP
47         struct omap_boot_parameters omap_boot_params;
48 #endif
49 };
50
51 #include <asm-generic/global_data.h>
52
53 #define DECLARE_GLOBAL_DATA_PTR     register volatile gd_t *gd asm ("r8")
54
55 #endif /* __ASM_GBL_DATA_H */