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