2 * (C) Copyright 2002 - 2010
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef __ASM_GBL_DATA_H
9 #define __ASM_GBL_DATA_H
11 /* Architecture-specific global data */
12 struct arch_global_data {
13 #ifdef CONFIG_SYS_I2C_FSL
14 unsigned long i2c1_clk;
15 unsigned long i2c2_clk;
17 #ifdef CONFIG_EXTRA_CLOCK
18 unsigned long inp_clk;
19 unsigned long vco_clk;
20 unsigned long flb_clk;
24 #include <asm-generic/global_data.h>
27 extern gd_t *global_data;
28 #define DECLARE_GLOBAL_DATA_PTR gd_t *gd = global_data
30 #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("d7")
33 #endif /* __ASM_GBL_DATA_H */