2003-12-08 01:34:36 +00:00
|
|
|
/*
|
2010-07-24 18:22:02 +00:00
|
|
|
* (C) Copyright 2002 - 2010
|
2003-12-08 01:34:36 +00:00
|
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2003-12-08 01:34:36 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_GBL_DATA_H
|
|
|
|
#define __ASM_GBL_DATA_H
|
2012-12-13 20:48:30 +00:00
|
|
|
|
|
|
|
/* Architecture-specific global data */
|
|
|
|
struct arch_global_data {
|
2012-10-24 11:48:22 +00:00
|
|
|
#ifdef CONFIG_SYS_I2C_FSL
|
2012-12-13 20:48:49 +00:00
|
|
|
unsigned long i2c1_clk;
|
|
|
|
unsigned long i2c2_clk;
|
|
|
|
#endif
|
2012-12-13 20:49:07 +00:00
|
|
|
#ifdef CONFIG_EXTRA_CLOCK
|
|
|
|
unsigned long inp_clk;
|
|
|
|
unsigned long vco_clk;
|
|
|
|
unsigned long flb_clk;
|
|
|
|
#endif
|
2012-12-13 20:48:30 +00:00
|
|
|
};
|
|
|
|
|
2012-12-13 20:49:17 +00:00
|
|
|
#include <asm-generic/global_data.h>
|
2003-12-08 01:34:36 +00:00
|
|
|
|
2004-02-12 00:47:09 +00:00
|
|
|
#if 0
|
2003-12-08 01:34:36 +00:00
|
|
|
extern gd_t *global_data;
|
|
|
|
#define DECLARE_GLOBAL_DATA_PTR gd_t *gd = global_data
|
2004-02-12 00:47:09 +00:00
|
|
|
#else
|
|
|
|
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("d7")
|
|
|
|
#endif
|
2003-12-08 01:34:36 +00:00
|
|
|
|
|
|
|
#endif /* __ASM_GBL_DATA_H */
|