Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 2 | /* |
Wolfgang Denk | f710efd | 2010-07-24 20:22:02 +0200 | [diff] [blame] | 3 | * (C) Copyright 2002-2010 |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 4 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __ASM_GBL_DATA_H |
| 8 | #define __ASM_GBL_DATA_H |
| 9 | |
| 10 | #include <asm/regdef.h> |
| 11 | |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 12 | /* Architecture-specific global data */ |
| 13 | struct arch_global_data { |
Paul Burton | 8d6600b | 2016-01-29 13:54:52 +0000 | [diff] [blame] | 14 | #ifdef CONFIG_DYNAMIC_IO_PORT_BASE |
| 15 | unsigned long io_port_base; |
| 16 | #endif |
Wills Wang | 833a1a8 | 2016-03-16 16:59:52 +0800 | [diff] [blame] | 17 | #ifdef CONFIG_ARCH_ATH79 |
| 18 | unsigned long id; |
| 19 | unsigned long soc; |
| 20 | unsigned long rev; |
| 21 | unsigned long ver; |
| 22 | #endif |
Paul Burton | dc2037e | 2016-09-21 11:18:48 +0100 | [diff] [blame] | 23 | #ifdef CONFIG_SYS_CACHE_SIZE_AUTO |
| 24 | unsigned short l1i_line_size; |
| 25 | unsigned short l1d_line_size; |
| 26 | #endif |
Paul Burton | 8156078 | 2016-09-21 11:18:54 +0100 | [diff] [blame] | 27 | #ifdef CONFIG_MIPS_L2_CACHE |
| 28 | unsigned short l2_line_size; |
| 29 | #endif |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 30 | }; |
| 31 | |
Simon Glass | 9b9ba9a | 2012-12-13 20:49:19 +0000 | [diff] [blame] | 32 | #include <asm-generic/global_data.h> |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 33 | |
wdenk | 874ac26 | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 34 | #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("k0") |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 35 | |
| 36 | #endif /* __ASM_GBL_DATA_H */ |