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> |
Stefan Roese | 9eff8a9 | 2020-12-11 17:05:23 +0100 | [diff] [blame] | 11 | #include <asm/types.h> |
| 12 | |
| 13 | struct octeon_eeprom_mac_addr { |
| 14 | u8 mac_addr_base[6]; |
| 15 | u8 count; |
| 16 | }; |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 17 | |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 18 | /* Architecture-specific global data */ |
| 19 | struct arch_global_data { |
Paul Burton | 8d6600b | 2016-01-29 13:54:52 +0000 | [diff] [blame] | 20 | #ifdef CONFIG_DYNAMIC_IO_PORT_BASE |
| 21 | unsigned long io_port_base; |
| 22 | #endif |
Wills Wang | 833a1a8 | 2016-03-16 16:59:52 +0800 | [diff] [blame] | 23 | #ifdef CONFIG_ARCH_ATH79 |
| 24 | unsigned long id; |
| 25 | unsigned long soc; |
| 26 | unsigned long rev; |
| 27 | unsigned long ver; |
| 28 | #endif |
Paul Burton | dc2037e | 2016-09-21 11:18:48 +0100 | [diff] [blame] | 29 | #ifdef CONFIG_SYS_CACHE_SIZE_AUTO |
| 30 | unsigned short l1i_line_size; |
| 31 | unsigned short l1d_line_size; |
| 32 | #endif |
Paul Burton | 8156078 | 2016-09-21 11:18:54 +0100 | [diff] [blame] | 33 | #ifdef CONFIG_MIPS_L2_CACHE |
| 34 | unsigned short l2_line_size; |
| 35 | #endif |
developer | 7c28736 | 2020-04-21 09:28:32 +0200 | [diff] [blame] | 36 | #ifdef CONFIG_ARCH_MTMIPS |
| 37 | unsigned long timer_freq; |
| 38 | #endif |
Stefan Roese | 9eff8a9 | 2020-12-11 17:05:23 +0100 | [diff] [blame] | 39 | #ifdef CONFIG_ARCH_OCTEON |
| 40 | struct octeon_eeprom_mac_addr mac_desc; |
| 41 | #endif |
Simon Glass | 3ac47d7 | 2012-12-13 20:48:30 +0000 | [diff] [blame] | 42 | }; |
| 43 | |
Simon Glass | 9b9ba9a | 2012-12-13 20:49:19 +0000 | [diff] [blame] | 44 | #include <asm-generic/global_data.h> |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 45 | |
wdenk | 874ac26 | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 46 | #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("k0") |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 47 | |
| 48 | #endif /* __ASM_GBL_DATA_H */ |