blob: 273e843c4ae6c152fbad661431593eab82bbaaa6 [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
Tom Rini5dc7f612021-06-03 09:39:02 -040010#include <config.h>
11
Simon Glass3ac47d72012-12-13 20:48:30 +000012/* Architecture-specific global data */
13struct arch_global_data {
Heiko Schocherf2850742012-10-24 13:48:22 +020014#ifdef CONFIG_SYS_I2C_FSL
Simon Glassc2baaec2012-12-13 20:48:49 +000015 unsigned long i2c1_clk;
16 unsigned long i2c2_clk;
17#endif
Simon Glass568a7b62012-12-13 20:49:07 +000018#ifdef CONFIG_EXTRA_CLOCK
19 unsigned long inp_clk;
20 unsigned long vco_clk;
21 unsigned long flb_clk;
22#endif
Angelo Dureghello95a69982018-01-25 22:42:52 +010023#ifdef CONFIG_MCF5441x
24 unsigned long sdhc_clk;
25#endif
Simon Glass3ac47d72012-12-13 20:48:30 +000026};
27
Simon Glassb666b4b2012-12-13 20:49:17 +000028#include <asm-generic/global_data.h>
wdenkabf7a7c2003-12-08 01:34:36 +000029
wdenke65527f2004-02-12 00:47:09 +000030#if 0
wdenkabf7a7c2003-12-08 01:34:36 +000031extern gd_t *global_data;
32#define DECLARE_GLOBAL_DATA_PTR gd_t *gd = global_data
wdenke65527f2004-02-12 00:47:09 +000033#else
34#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("d7")
35#endif
wdenkabf7a7c2003-12-08 01:34:36 +000036
37#endif /* __ASM_GBL_DATA_H */