blob: 93efc722ba8a025ea684246859ee9922242eba33 [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 Rinidec7ea02024-05-20 13:35:03 -060010#include <asm/u-boot.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
Angelo Dureghello219702a2023-02-07 21:28:00 +010026#if defined(CONFIG_FSL_ESDHC)
Tom Rini2a526c32023-12-14 13:16:51 -050027 unsigned long sdhc_per_clk;
Angelo Dureghello219702a2023-02-07 21:28:00 +010028#endif
Simon Glass3ac47d72012-12-13 20:48:30 +000029};
30
Simon Glassb666b4b2012-12-13 20:49:17 +000031#include <asm-generic/global_data.h>
wdenkabf7a7c2003-12-08 01:34:36 +000032
wdenke65527f2004-02-12 00:47:09 +000033#if 0
wdenkabf7a7c2003-12-08 01:34:36 +000034extern gd_t *global_data;
35#define DECLARE_GLOBAL_DATA_PTR gd_t *gd = global_data
wdenke65527f2004-02-12 00:47:09 +000036#else
37#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("d7")
38#endif
wdenkabf7a7c2003-12-08 01:34:36 +000039
40#endif /* __ASM_GBL_DATA_H */