Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 2 | /* |
Wolfgang Denk | f710efd | 2010-07-24 20:22:02 +0200 | [diff] [blame] | 3 | * (C) Copyright 2002 - 2010 |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 4 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __ASM_GBL_DATA_H |
| 8 | #define __ASM_GBL_DATA_H |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 9 | |
| 10 | /* Architecture-specific global data */ |
| 11 | struct arch_global_data { |
Heiko Schocher | f285074 | 2012-10-24 13:48:22 +0200 | [diff] [blame] | 12 | #ifdef CONFIG_SYS_I2C_FSL |
Simon Glass | c2baaec | 2012-12-13 20:48:49 +0000 | [diff] [blame] | 13 | unsigned long i2c1_clk; |
| 14 | unsigned long i2c2_clk; |
| 15 | #endif |
Simon Glass | 568a7b6 | 2012-12-13 20:49:07 +0000 | [diff] [blame] | 16 | #ifdef CONFIG_EXTRA_CLOCK |
| 17 | unsigned long inp_clk; |
| 18 | unsigned long vco_clk; |
| 19 | unsigned long flb_clk; |
| 20 | #endif |
Angelo Dureghello | 95a6998 | 2018-01-25 22:42:52 +0100 | [diff] [blame] | 21 | #ifdef CONFIG_MCF5441x |
| 22 | unsigned long sdhc_clk; |
| 23 | #endif |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 24 | }; |
| 25 | |
Simon Glass | b666b4b | 2012-12-13 20:49:17 +0000 | [diff] [blame] | 26 | #include <asm-generic/global_data.h> |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 27 | |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 28 | #if 0 |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 29 | extern gd_t *global_data; |
| 30 | #define DECLARE_GLOBAL_DATA_PTR gd_t *gd = global_data |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 31 | #else |
| 32 | #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("d7") |
| 33 | #endif |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 34 | |
| 35 | #endif /* __ASM_GBL_DATA_H */ |