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