blob: b55c91e613abac55f4d9d0cb2ba0c18a27b8aa2d [file] [log] [blame]
wdenkabf7a7c2003-12-08 01:34:36 +00001/*
Wolfgang Denkf710efd2010-07-24 20:22:02 +02002 * (C) Copyright 2002 - 2010
wdenkabf7a7c2003-12-08 01:34:36 +00003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenkabf7a7c2003-12-08 01:34:36 +00006 */
7
8#ifndef __ASM_GBL_DATA_H
9#define __ASM_GBL_DATA_H
Simon Glass3ac47d72012-12-13 20:48:30 +000010
11/* Architecture-specific global data */
12struct arch_global_data {
Heiko Schocherf2850742012-10-24 13:48:22 +020013#ifdef CONFIG_SYS_I2C_FSL
Simon Glassc2baaec2012-12-13 20:48:49 +000014 unsigned long i2c1_clk;
15 unsigned long i2c2_clk;
16#endif
Simon Glass568a7b62012-12-13 20:49:07 +000017#ifdef CONFIG_EXTRA_CLOCK
18 unsigned long inp_clk;
19 unsigned long vco_clk;
20 unsigned long flb_clk;
21#endif
Simon Glass3ac47d72012-12-13 20:48:30 +000022};
23
Simon Glassb666b4b2012-12-13 20:49:17 +000024#include <asm-generic/global_data.h>
wdenkabf7a7c2003-12-08 01:34:36 +000025
wdenke65527f2004-02-12 00:47:09 +000026#if 0
wdenkabf7a7c2003-12-08 01:34:36 +000027extern gd_t *global_data;
28#define DECLARE_GLOBAL_DATA_PTR gd_t *gd = global_data
wdenke65527f2004-02-12 00:47:09 +000029#else
30#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("d7")
31#endif
wdenkabf7a7c2003-12-08 01:34:36 +000032
33#endif /* __ASM_GBL_DATA_H */