1 /*
2  * (C) Copyright 2002-2010
3  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4  *
5  * SPDX-License-Identifier:	GPL-2.0+
6  */
7 
8 #ifndef	__ASM_GBL_DATA_H
9 #define __ASM_GBL_DATA_H
10 
11 #include <asm/regdef.h>
12 
13 /* Architecture-specific global data */
14 struct arch_global_data {
15 #ifdef CONFIG_DYNAMIC_IO_PORT_BASE
16 	unsigned long io_port_base;
17 #endif
18 #ifdef CONFIG_ARCH_ATH79
19 	unsigned long id;
20 	unsigned long soc;
21 	unsigned long rev;
22 	unsigned long ver;
23 #endif
24 #ifdef CONFIG_SYS_CACHE_SIZE_AUTO
25 	unsigned short l1i_line_size;
26 	unsigned short l1d_line_size;
27 #endif
28 #ifdef CONFIG_MIPS_L2_CACHE
29 	unsigned short l2_line_size;
30 #endif
31 };
32 
33 #include <asm-generic/global_data.h>
34 
35 #define DECLARE_GLOBAL_DATA_PTR     register volatile gd_t *gd asm ("k0")
36 
37 #endif /* __ASM_GBL_DATA_H */
38