aa0be8191ae98d95d4a71a0be81d69f5e54b9e5d
[oweals/u-boot.git] / arch / m68k / include / asm / global_data.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2002 - 2010
4  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5  */
6
7 #ifndef __ASM_GBL_DATA_H
8 #define __ASM_GBL_DATA_H
9
10 /* Architecture-specific global data */
11 struct arch_global_data {
12 #ifdef CONFIG_SYS_I2C_FSL
13         unsigned long   i2c1_clk;
14         unsigned long   i2c2_clk;
15 #endif
16 #ifdef CONFIG_EXTRA_CLOCK
17         unsigned long inp_clk;
18         unsigned long vco_clk;
19         unsigned long flb_clk;
20 #endif
21 };
22
23 #include <asm-generic/global_data.h>
24
25 #if 0
26 extern gd_t *global_data;
27 #define DECLARE_GLOBAL_DATA_PTR     gd_t *gd = global_data
28 #else
29 #define DECLARE_GLOBAL_DATA_PTR     register volatile gd_t *gd asm ("d7")
30 #endif
31
32 #endif /* __ASM_GBL_DATA_H */