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 | |
Tom Rini | 5dc7f61 | 2021-06-03 09:39:02 -0400 | [diff] [blame] | 10 | #include <config.h> |
11 | |||||
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 12 | /* Architecture-specific global data */ |
13 | struct arch_global_data { | ||||
Heiko Schocher | f285074 | 2012-10-24 13:48:22 +0200 | [diff] [blame] | 14 | #ifdef CONFIG_SYS_I2C_FSL |
Simon Glass | c2baaec | 2012-12-13 20:48:49 +0000 | [diff] [blame] | 15 | unsigned long i2c1_clk; |
16 | unsigned long i2c2_clk; | ||||
17 | #endif | ||||
Simon Glass | 568a7b6 | 2012-12-13 20:49:07 +0000 | [diff] [blame] | 18 | #ifdef CONFIG_EXTRA_CLOCK |
19 | unsigned long inp_clk; | ||||
20 | unsigned long vco_clk; | ||||
21 | unsigned long flb_clk; | ||||
22 | #endif | ||||
Angelo Dureghello | 95a6998 | 2018-01-25 22:42:52 +0100 | [diff] [blame] | 23 | #ifdef CONFIG_MCF5441x |
24 | unsigned long sdhc_clk; | ||||
25 | #endif | ||||
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 26 | }; |
27 | |||||
Simon Glass | b666b4b | 2012-12-13 20:49:17 +0000 | [diff] [blame] | 28 | #include <asm-generic/global_data.h> |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 29 | |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 30 | #if 0 |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 31 | extern gd_t *global_data; |
32 | #define DECLARE_GLOBAL_DATA_PTR gd_t *gd = global_data | ||||
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 33 | #else |
34 | #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("d7") | ||||
35 | #endif | ||||
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 36 | |
37 | #endif /* __ASM_GBL_DATA_H */ |