blob: 188055e9d3142c5cccd308bc0aa1c4d4ce21b8f9 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
wdenkabf7a7c2003-12-08 01:34:36 +00002/*
Wolfgang Denkf710efd2010-07-24 20:22:02 +02003 * (C) Copyright 2002 - 2010
wdenkabf7a7c2003-12-08 01:34:36 +00004 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
wdenkabf7a7c2003-12-08 01:34:36 +00005 */
6
7#ifndef __ASM_GBL_DATA_H
8#define __ASM_GBL_DATA_H
Simon Glass3ac47d72012-12-13 20:48:30 +00009
10/* Architecture-specific global data */
11struct arch_global_data {
Heiko Schocherf2850742012-10-24 13:48:22 +020012#ifdef CONFIG_SYS_I2C_FSL
Simon Glassc2baaec2012-12-13 20:48:49 +000013 unsigned long i2c1_clk;
14 unsigned long i2c2_clk;
15#endif
Simon Glass568a7b62012-12-13 20:49:07 +000016#ifdef CONFIG_EXTRA_CLOCK
17 unsigned long inp_clk;
18 unsigned long vco_clk;
19 unsigned long flb_clk;
20#endif
Angelo Dureghello95a69982018-01-25 22:42:52 +010021#ifdef CONFIG_MCF5441x
22 unsigned long sdhc_clk;
23#endif
Simon Glass3ac47d72012-12-13 20:48:30 +000024};
25
Simon Glassb666b4b2012-12-13 20:49:17 +000026#include <asm-generic/global_data.h>
wdenkabf7a7c2003-12-08 01:34:36 +000027
wdenke65527f2004-02-12 00:47:09 +000028#if 0
wdenkabf7a7c2003-12-08 01:34:36 +000029extern gd_t *global_data;
30#define DECLARE_GLOBAL_DATA_PTR gd_t *gd = global_data
wdenke65527f2004-02-12 00:47:09 +000031#else
32#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("d7")
33#endif
wdenkabf7a7c2003-12-08 01:34:36 +000034
35#endif /* __ASM_GBL_DATA_H */