blob: 5f576ba16f9adce3ff8054d2a3c32007297ad7dc [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
Angelo Dureghello219702a2023-02-07 21:28:00 +010026#if defined(CONFIG_FSL_ESDHC)
27 u32 sdhc_per_clk;
28#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 */